All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class sso.Window

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

public class Window
extends Wall
implements Openable

Variable Index

 o BOTTOM
 o BROKEN
 o GAP
 o HORIZ
 o LARGE
 o lock
 o MEDIUM
 o MIDDLE
 o open
 o PEEP
 o PLATE
 o ROUND
 o SASHED
 o shuttered
 o SLIT
 o SMALL
 o SQUARE
 o TOP
 o trap
 o VERT
 o WHOLE
 o windowType

Constructor Index

 o Window()
Protected constructor.

Method Index

 o close(PC)
Close the window
 o createRows()
Create the row needed to store this window object
 o createWindow()
Factory method.
 o getLock()
Get the lock
 o getTrap()
Get the trap
 o getWindowType()
Get the window type
 o handleActionEvent(ActionEvent)
Consume (do not propagate) action events under certain conditions.
 o init()
Protected window initializer.
 o isOpen()
Is the window open?
 o isShuttered()
Is the window shuttered?
 o load()
Load the window from the datbase.
 o loadWindow(int)
Load a Window object.
 o open(PC)
Open the window
 o setLock(Lock)
Set the lock
 o setTrap(Trap)
Set the trap
 o setWindowType(int)
Set the window type
 o shutter()
Shutter the window.
 o store()
Store the Window
 o unregister()
Unregister the object from the database.
 o unshutter()
Unshutter the window.

Variables

 o lock
 protected Lock lock
 o trap
 protected Trap trap
 o open
 protected boolean open
 o shuttered
 protected boolean shuttered
 o windowType
 protected int windowType
 o GAP
 public static final int GAP
 o SLIT
 public static final int SLIT
 o SASHED
 public static final int SASHED
 o PLATE
 public static final int PLATE
 o PEEP
 public static final int PEEP
 o SMALL
 public static final int SMALL
 o MEDIUM
 public static final int MEDIUM
 o LARGE
 public static final int LARGE
 o WHOLE
 public static final int WHOLE
 o BROKEN
 public static final int BROKEN
 o HORIZ
 public static final int HORIZ
 o VERT
 public static final int VERT
 o SQUARE
 public static final int SQUARE
 o ROUND
 public static final int ROUND
 o TOP
 public static final int TOP
 o MIDDLE
 public static final int MIDDLE
 o BOTTOM
 public static final int BOTTOM

Constructors

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

Methods

 o createWindow
 public static Window createWindow()
Factory method. Create a new Window.

 o init
 protected void init()
Protected window initializer.

Overrides:
init in class Wall
 o getLock
 public Lock getLock()
Get the lock

 o setLock
 public void setLock(Lock lock)
Set the lock

 o getTrap
 public Trap getTrap()
Get the trap

 o setTrap
 public void setTrap(Trap trap)
Set the trap

 o isOpen
 public boolean isOpen()
Is the window open?

 o open
 public boolean open(PC victim)
Open the window

 o close
 public boolean close(PC victim)
Close the window

 o isShuttered
 public boolean isShuttered()
Is the window shuttered?

 o shutter
 public void shutter()
Shutter the window.

 o unshutter
 public void unshutter()
Unshutter the window.

 o getWindowType
 public int getWindowType()
Get the window type

 o setWindowType
 public void setWindowType(int type)
Set the window type

 o createRows
 protected void createRows()
Create the row needed to store this window object

Overrides:
createRows in class Wall
 o store
 public void store()
Store the Window

Overrides:
store in class Wall
 o loadWindow
 public static Window loadWindow(int id)
Load a Window object.

 o load
 protected void load()
Load the window from the datbase.

Overrides:
load in class Wall
 o unregister
 public void unregister()
Unregister the object from the database.

Overrides:
unregister in class Wall
 o handleActionEvent
 public void handleActionEvent(ActionEvent evt)
Consume (do not propagate) action events under certain conditions. Do not propagate speech events if window closed. Do not propagate sight events if window shuttered.

Overrides:
handleActionEvent in class Wall

All Packages  Class Hierarchy  This Package  Previous  Next  Index