Drools examples 6.0.3-SNAPSHOT

org.drools.games.wumpus
Class Hero

java.lang.Object
  extended by org.drools.games.wumpus.Thing
      extended by org.drools.games.wumpus.Hero

public class Hero
extends Thing


Constructor Summary
Hero(int row, int col)
           
 
Method Summary
 int getArrows()
           
 Direction getDirection()
           
 int getScore()
           
 boolean isGold()
           
 void setArrows(int arrows)
           
 void setDirection(Direction direction)
           
 void setGold(boolean gold)
           
 void setScore(int score)
           
 String toString()
           
 
Methods inherited from class org.drools.games.wumpus.Thing
getCol, getRow, setCol, setRow
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Hero

public Hero(int row,
            int col)
Method Detail

getArrows

public int getArrows()

setArrows

public void setArrows(int arrows)

getScore

public int getScore()

setScore

public void setScore(int score)

getDirection

public Direction getDirection()

setDirection

public void setDirection(Direction direction)

isGold

public boolean isGold()

setGold

public void setGold(boolean gold)

toString

public String toString()
Overrides:
toString in class Object

Drools examples 6.0.3-SNAPSHOT

Copyright © 2001-2015 JBoss by Red Hat. All Rights Reserved.