wworld
Class GridObjectType
java.lang.Object
|
+--wworld.GridObjectType
- public class GridObjectType
- extends java.lang.Object
This class describes the kinds of objects that can reside
in the wumpus world.
Method Summary |
int |
getObjectType()
|
java.lang.String |
toString()
Returns an String according to the type of the object. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
WUMPUS
public static final int WUMPUS
- See Also:
- Constant Field Values
PIT
public static final int PIT
- See Also:
- Constant Field Values
GOLD
public static final int GOLD
- See Also:
- Constant Field Values
OBSTACLE
public static final int OBSTACLE
- See Also:
- Constant Field Values
WALL
public static final int WALL
- See Also:
- Constant Field Values
AGENT
public static final int AGENT
- See Also:
- Constant Field Values
GridObjectType
public GridObjectType(int type)
getObjectType
public int getObjectType()
toString
public java.lang.String toString()
- Returns an String according to the type of the object.
- Overrides:
toString
in class java.lang.Object
- Returns:
- wumpus, pit, gold, obstacle, wall or agent string.