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

Variable Index

 o ANGLE
 o enterEffects
 o FLAT
 o handledEvents
 o IMPASSABLE
 o ROOF
 o STEP
 o VERTICAL
 o WET
 o x_c
 o y_c
 o z_c

Constructor Index

 o Tile()
Constructor.

Method Index

 o accept(GameObject)
Accept objects on this tile.
 o addEnterEffect(String)
Add an enter effect (String classname)
 o createRows()
Create the rows needed to store this object.
 o createTile()
Factory method.
 o getEnterEffects()
Get the enter effects
 o getTile(int, int)
Get a tile from the database by x,y
 o getX()
Return the x location of this.
 o getY()
Return the y location of this.
 o getZ()
Return the z location of this.
 o give(GameObject)
Put the object in the inventory.
 o handleActionEvent(ActionEvent)
Handle Action events.
 o init()
Initializers for new tiles.
 o load()
Load the tile from the database
 o loadTile(int)
Load the tile.
 o main(String[])
Tester
 o removeEnterEffect(String)
Remove an enter effect (String classname)
 o setX(int)
Set the X coordinate
 o setY(int)
Set the Y coordinate
 o setZ(int)
Set the Z coordinate
 o store()
Store the Tile.
 o unregister()
Unregister the tile.

Variables

 o x_c
 protected int x_c
 o y_c
 protected int y_c
 o z_c
 protected int z_c
 o enterEffects
 protected Vector enterEffects
 o handledEvents
 protected Vector handledEvents
 o FLAT
 public static final int FLAT
 o ANGLE
 public static final int ANGLE
 o STEP
 public static final int STEP
 o IMPASSABLE
 public static final int IMPASSABLE
 o VERTICAL
 public static final int VERTICAL
 o ROOF
 public static final int ROOF
 o WET
 public static final int WET

Constructors

 o Tile
 protected Tile()
Constructor. Call a factory method instead.

Methods

 o createTile
 public static Tile createTile()
Factory method. Creates a new tile.

 o init
 protected void init()
Initializers for new tiles.

Overrides:
init in class Immobile
 o getX
 public int getX()
Return the x location of this. OVERRIDE.

Overrides:
getX in class GameObject
 o setX
 public void setX(int x)
Set the X coordinate

 o getY
 public int getY()
Return the y location of this. OVERRIDE.

Overrides:
getY in class GameObject
 o setY
 public void setY(int y)
Set the Y coordinate

 o getZ
 public int getZ()
Return the z location of this. OVERRIDE.

Overrides:
getZ in class GameObject
 o setZ
 public void setZ(int z)
Set the Z coordinate

 o getEnterEffects
 public Vector getEnterEffects()
Get the enter effects

 o addEnterEffect
 public void addEnterEffect(String effectClass)
Add an enter effect (String classname)

 o removeEnterEffect
 public void removeEnterEffect(String effectClass)
Remove an enter effect (String classname)

 o 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
 o give
 protected void give(GameObject spec)
Put the object in the inventory. Start any effects. OVERRIDE.

Overrides:
give in class GameObject
 o getTile
 public static Tile getTile(int x,
                            int y)
Get a tile from the database by x,y

 o handleActionEvent
 public void handleActionEvent(ActionEvent evt)
Handle Action events.

Overrides:
handleActionEvent in class GameObject
 o createRows
 protected void createRows()
Create the rows needed to store this object.

Overrides:
createRows in class Immobile
 o store
 public void store()
Store the Tile.

Overrides:
store in class Immobile
 o loadTile
 public static Tile loadTile(int id)
Load the tile. Factory method.

 o load
 protected void load()
Load the tile from the database

Overrides:
load in class Immobile
 o unregister
 public void unregister()
Unregister the tile.

Overrides:
unregister in class Immobile
 o main
 public static void main(String args[])
Tester


All Packages  Class Hierarchy  This Package  Previous  Next  Index