All Packages Class Hierarchy This Package Previous Next Index
Class sso.Tile
java.lang.Object
|
+----sso.Persistant
|
+----sso.GameObject
|
+----sso.Immobile
|
+----sso.Tile
- public class Tile
- extends Immobile
-
ANGLE
-
-
enterEffects
-
-
FLAT
-
-
handledEvents
-
-
IMPASSABLE
-
-
ROOF
-
-
STEP
-
-
VERTICAL
-
-
WET
-
-
x_c
-
-
y_c
-
-
z_c
-
-
Tile()
- Constructor.
-
accept(GameObject)
- Accept objects on this tile.
-
addEnterEffect(String)
- Add an enter effect (String classname)
-
createRows()
- Create the rows needed to store this object.
-
createTile()
- Factory method.
-
getEnterEffects()
- Get the enter effects
-
getTile(int, int)
- Get a tile from the database by x,y
-
getX()
- Return the x location of this.
-
getY()
- Return the y location of this.
-
getZ()
- Return the z location of this.
-
give(GameObject)
- Put the object in the inventory.
-
handleActionEvent(ActionEvent)
- Handle Action events.
-
init()
- Initializers for new tiles.
-
load()
- Load the tile from the database
-
loadTile(int)
- Load the tile.
-
main(String[])
- Tester
-
removeEnterEffect(String)
- Remove an enter effect (String classname)
-
setX(int)
- Set the X coordinate
-
setY(int)
- Set the Y coordinate
-
setZ(int)
- Set the Z coordinate
-
store()
- Store the Tile.
-
unregister()
- Unregister the tile.
x_c
protected int x_c
y_c
protected int y_c
z_c
protected int z_c
enterEffects
protected Vector enterEffects
handledEvents
protected Vector handledEvents
FLAT
public static final int FLAT
ANGLE
public static final int ANGLE
STEP
public static final int STEP
IMPASSABLE
public static final int IMPASSABLE
VERTICAL
public static final int VERTICAL
ROOF
public static final int ROOF
WET
public static final int WET
Tile
protected Tile()
- Constructor. Call a factory method instead.
createTile
public static Tile createTile()
- Factory method. Creates a new tile.
init
protected void init()
- Initializers for new tiles.
- Overrides:
- init in class Immobile
getX
public int getX()
- Return the x location of this.
OVERRIDE.
- Overrides:
- getX in class GameObject
setX
public void setX(int x)
- Set the X coordinate
getY
public int getY()
- Return the y location of this.
OVERRIDE.
- Overrides:
- getY in class GameObject
setY
public void setY(int y)
- Set the Y coordinate
getZ
public int getZ()
- Return the z location of this.
OVERRIDE.
- Overrides:
- getZ in class GameObject
setZ
public void setZ(int z)
- Set the Z coordinate
getEnterEffects
public Vector getEnterEffects()
- Get the enter effects
addEnterEffect
public void addEnterEffect(String effectClass)
- Add an enter effect (String classname)
removeEnterEffect
public void removeEnterEffect(String effectClass)
- Remove an enter effect (String classname)
accept
public boolean accept(GameObject spec)
- Accept objects on this tile.
Don't allow anything in this tile if an immobile is present
Only allow ONE PC in this tile at a time.
Allow many non-PCs in this tile at one time.
Override method.
- Overrides:
- accept in class GameObject
give
protected void give(GameObject spec)
- Put the object in the inventory. Start any effects.
OVERRIDE.
- Overrides:
- give in class GameObject
getTile
public static Tile getTile(int x,
int y)
- Get a tile from the database by x,y
handleActionEvent
public void handleActionEvent(ActionEvent evt)
- Handle Action events.
- Overrides:
- handleActionEvent in class GameObject
createRows
protected void createRows()
- Create the rows needed to store this object.
- Overrides:
- createRows in class Immobile
store
public void store()
- Store the Tile.
- Overrides:
- store in class Immobile
loadTile
public static Tile loadTile(int id)
- Load the tile. Factory method.
load
protected void load()
- Load the tile from the database
- Overrides:
- load in class Immobile
unregister
public void unregister()
- Unregister the tile.
- Overrides:
- unregister in class Immobile
main
public static void main(String args[])
- Tester
All Packages Class Hierarchy This Package Previous Next Index