|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--wworld.WorldObject
|
+--wworld.GridObject
Class specifying gridobject. The object gridObject extends worldObject and contains information of the location and original location where it resided at the start of the game.
| Constructor Summary | |
GridObject(int objType,
int someX,
int someY)
Constructor with setting of object type, location and original location |
|
| Method Summary | |
GridPoint |
getLocation()
Returns the current location of the gridObject |
GridPoint |
getOrigLocation()
Returns original location of the gridObject |
void |
setLocation(GridPoint p)
Sets the location of the gridObject to the gridpoint specified. |
void |
setLocation(int x,
int y)
Sets the location of the gridObject to the location (x,y) specified. |
| Methods inherited from class wworld.WorldObject |
getType, reset |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public GridObject(int objType,
int someX,
int someY)
| Method Detail |
public GridPoint getOrigLocation()
public GridPoint getLocation()
public void setLocation(GridPoint p)
public void setLocation(int x,
int y)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||