|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectAIILE.gridworld.env.GridInfo
| Constructor Summary | |
GridInfo()
Creates a new instance of GridInfo |
|
GridInfo(Node cNode,
java.util.Vector sList)
|
|
GridInfo(Node cNode,
java.util.Vector sList,
boolean gFound,
boolean aShot,
boolean wDead)
|
|
| Method Summary | |
Node |
getCurrentNode()
Gets the current node |
java.util.List |
getSuccessorNodes()
Gets a list of successor nodes |
boolean |
isArrowShot()
This returns true if the arrow has been shot |
boolean |
isGoldPickedUp()
This returns true if the gold has been picked up |
boolean |
isWumpusDead()
This returns true if the Wumpus has died |
void |
setArrowShot(boolean b)
|
void |
setGoldPickedUp(boolean b)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public GridInfo()
public GridInfo(Node cNode,
java.util.Vector sList)
public GridInfo(Node cNode,
java.util.Vector sList,
boolean gFound,
boolean aShot,
boolean wDead)
| Method Detail |
public Node getCurrentNode()
EnvironmentInfo
getCurrentNode in interface EnvironmentInfopublic java.util.List getSuccessorNodes()
EnvironmentInfo
getSuccessorNodes in interface EnvironmentInfopublic boolean isArrowShot()
EnvironmentInfo
isArrowShot in interface EnvironmentInfopublic boolean isGoldPickedUp()
EnvironmentInfo
isGoldPickedUp in interface EnvironmentInfopublic void setArrowShot(boolean b)
public void setGoldPickedUp(boolean b)
public boolean isWumpusDead()
EnvironmentInfo
isWumpusDead in interface EnvironmentInfo
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||