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
-
BOTTOM
-
-
BROKEN
-
-
GAP
-
-
HORIZ
-
-
LARGE
-
-
lock
-
-
MEDIUM
-
-
MIDDLE
-
-
open
-
-
PEEP
-
-
PLATE
-
-
ROUND
-
-
SASHED
-
-
shuttered
-
-
SLIT
-
-
SMALL
-
-
SQUARE
-
-
TOP
-
-
trap
-
-
VERT
-
-
WHOLE
-
-
windowType
-
-
Window()
- Protected constructor.
-
close(PC)
- Close the window
-
createRows()
- Create the row needed to store this window object
-
createWindow()
- Factory method.
-
getLock()
- Get the lock
-
getTrap()
- Get the trap
-
getWindowType()
- Get the window type
-
handleActionEvent(ActionEvent)
- Consume (do not propagate) action events under certain conditions.
-
init()
- Protected window initializer.
-
isOpen()
- Is the window open?
-
isShuttered()
- Is the window shuttered?
-
load()
- Load the window from the datbase.
-
loadWindow(int)
- Load a Window object.
-
open(PC)
- Open the window
-
setLock(Lock)
- Set the lock
-
setTrap(Trap)
- Set the trap
-
setWindowType(int)
- Set the window type
-
shutter()
- Shutter the window.
-
store()
- Store the Window
-
unregister()
- Unregister the object from the database.
-
unshutter()
- Unshutter the window.
lock
protected Lock lock
trap
protected Trap trap
open
protected boolean open
shuttered
protected boolean shuttered
windowType
protected int windowType
GAP
public static final int GAP
SLIT
public static final int SLIT
SASHED
public static final int SASHED
PLATE
public static final int PLATE
PEEP
public static final int PEEP
SMALL
public static final int SMALL
MEDIUM
public static final int MEDIUM
LARGE
public static final int LARGE
WHOLE
public static final int WHOLE
BROKEN
public static final int BROKEN
HORIZ
public static final int HORIZ
VERT
public static final int VERT
SQUARE
public static final int SQUARE
ROUND
public static final int ROUND
TOP
public static final int TOP
MIDDLE
public static final int MIDDLE
BOTTOM
public static final int BOTTOM
Window
protected Window()
- Protected constructor. Use a factory method instead.
createWindow
public static Window createWindow()
- Factory method. Create a new Window.
init
protected void init()
- Protected window initializer.
- Overrides:
- init in class Wall
getLock
public Lock getLock()
- Get the lock
setLock
public void setLock(Lock lock)
- Set the lock
getTrap
public Trap getTrap()
- Get the trap
setTrap
public void setTrap(Trap trap)
- Set the trap
isOpen
public boolean isOpen()
- Is the window open?
open
public boolean open(PC victim)
- Open the window
close
public boolean close(PC victim)
- Close the window
isShuttered
public boolean isShuttered()
- Is the window shuttered?
shutter
public void shutter()
- Shutter the window.
unshutter
public void unshutter()
- Unshutter the window.
getWindowType
public int getWindowType()
- Get the window type
setWindowType
public void setWindowType(int type)
- Set the window type
createRows
protected void createRows()
- Create the row needed to store this window object
- Overrides:
- createRows in class Wall
store
public void store()
- Store the Window
- Overrides:
- store in class Wall
loadWindow
public static Window loadWindow(int id)
- Load a Window object.
load
protected void load()
- Load the window from the datbase.
- Overrides:
- load in class Wall
unregister
public void unregister()
- Unregister the object from the database.
- Overrides:
- unregister in class Wall
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