|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--wworld.Directions
This class is used to describe the directions in which the moving objects in the World can face.
Field Summary | |
static int |
DOWN
|
static int |
LEFT
|
static int |
RIGHT
|
static int |
UP
|
Constructor Summary | |
Directions(int lookingTo)
Constructor for the facing or directions |
Method Summary | |
int |
getFacing()
Returns the direction that is represented by the object. |
void |
setFacing(int i)
Used to set the facing represented by this object. |
java.lang.String |
toString()
Returns the direction or facing of the object as String. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int RIGHT
public static final int UP
public static final int LEFT
public static final int DOWN
Constructor Detail |
public Directions(int lookingTo)
Method Detail |
public int getFacing()
public void setFacing(int i)
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |