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.


Field Summary
static int AGENT
           
static int GOLD
           
static int OBSTACLE
           
static int PIT
           
static int WALL
           
static int WUMPUS
           
 
Constructor Summary
GridObjectType(int type)
           
 
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
 

Field Detail

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
Constructor Detail

GridObjectType

public GridObjectType(int type)
Method Detail

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.