All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class sso.Wall

java.lang.Object
   |
   +----sso.Persistant
           |
           +----sso.GameObject
                   |
                   +----sso.Immobile
                           |
                           +----sso.Scenery
                                   |
                                   +----sso.Wall

public class Wall
extends Scenery
implements Attackable

Variable Index

 o base_rating
 o cur_rating
 o height

Constructor Index

 o Wall()
Protected constructor.

Method Index

 o attack(Attack)
Attack the wall
 o createRows()
Create the rows needed to store this item.
 o createWall()
Factory method.
 o getBaseRating()
Get the base rating
 o getHeight()
Get the height
 o getRating()
Get the current rating
 o handleActionEvent(ActionEvent)
Walls consume all events.
 o init()
Wall initializer.
 o load()
Load the data into a wall object from the db.
 o loadWall(int)
Load a new Wall object
 o main(String[])
Tester
 o setBaseRating(int)
Set the base rating
 o setHeight(int)
Set the height
 o setRating(int)
Set the current rating
 o store()
Store the state of the Wall object.
 o unregister()
Unregister a wall.

Variables

 o base_rating
 protected int base_rating
 o cur_rating
 protected int cur_rating
 o height
 protected int height

Constructors

 o Wall
 protected Wall()
Protected constructor. Use a factory method instead.

Methods

 o createWall
 public static Wall createWall()
Factory method. Create a new wall.

 o init
 protected void init()
Wall initializer.

Overrides:
init in class Scenery
 o getRating
 public int getRating()
Get the current rating

 o setRating
 protected void setRating(int rating)
Set the current rating

 o getBaseRating
 public int getBaseRating()
Get the base rating

 o setBaseRating
 public void setBaseRating(int rating)
Set the base rating

 o getHeight
 public int getHeight()
Get the height

 o setHeight
 public void setHeight(int height)
Set the height

 o attack
 public void attack(Attack attack)
Attack the wall

 o createRows
 protected void createRows()
Create the rows needed to store this item.

Overrides:
createRows in class Scenery
 o store
 public void store()
Store the state of the Wall object.

Overrides:
store in class Scenery
 o loadWall
 public static Wall loadWall(int id)
Load a new Wall object

 o load
 protected void load()
Load the data into a wall object from the db.

Overrides:
load in class Scenery
 o unregister
 public void unregister()
Unregister a wall.

Overrides:
unregister in class Scenery
 o handleActionEvent
 public void handleActionEvent(ActionEvent evt)
Walls consume all events.

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


All Packages  Class Hierarchy  This Package  Previous  Next  Index