atavism.agis.objects
Class ArenaGridBlock
java.lang.Object
atavism.agis.objects.ArenaGridBlock
- All Implemented Interfaces:
- java.io.Serializable
public class ArenaGridBlock
- extends java.lang.Object
- implements java.io.Serializable
The purpose of this class is to ensure only 1 object is in a square of the arena. When new objects are
being placed the grid block can be checked to ensure it is empty, and if not the new object cannot be placed.
- Author:
- Andrew
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ArenaGridBlock
public ArenaGridBlock()
ArenaGridBlock
public ArenaGridBlock(int x,
int y,
int z,
java.lang.Object object)
placeObjectInBlock
public boolean placeObjectInBlock(java.lang.Object object)
hasObject
public boolean hasObject()
getX
public int getX()
setX
public void setX(int x)
getY
public int getY()
setY
public void setY(int y)
getZ
public int getZ()
setZ
public void setZ(int z)
getObjectInBlock
public java.lang.Object getObjectInBlock()
setObjectInBlock
public void setObjectInBlock(java.lang.Object object)