All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class key.Room

java.lang.Object
   |
   +----key.Atom
           |
           +----key.Container
                   |
                   +----key.Scape
                           |
                           +----key.Landscape
                                   |
                                   +----key.Room

public class Room
extends Landscape

Variable Index

 o ejectFromAction
 o enterAction
 o MAX_NAME
 o staticActions

Constructor Index

 o Room()

Method Index

 o aspect(Player)
A players aspect is its description when looked at
 o canMoveInto(Player)
Only stops a direct trans - not using an exit
 o containsAction(Action)
Returns true if the action is supported by this class.
 o countPlayers(int, boolean)
 o ejectPlayer(Player)
 o evalReadOnlyProperty(ReadOnlyProperty)
override to return the correct value for the supplied property make sure you call super.evalReadOnlyProperty if you don't understand it before returning null
 o exits()
 o fullPortrait()
 o getAction(String)
Returns the action corresponding to the supplied name.
 o getActions()
Returns a list of the actions supported by this class.
 o getCalled()
 o getDescription()
 o getLoginMessage()
 o getLogoutMessage()
 o portrait()
 o relation()
 o who(Player)
 o with(Player)
 o withPlayers(int, boolean, Player, Player)

Variables

 o MAX_NAME
 public static final int MAX_NAME
 o staticActions
 protected static StringKeyCollection staticActions
 o ejectFromAction
 public static Action ejectFromAction
 o enterAction
 public static Action enterAction

Constructors

 o Room
 public Room()

Methods

 o evalReadOnlyProperty
 public Object evalReadOnlyProperty(ReadOnlyProperty p)
override to return the correct value for the supplied property make sure you call super.evalReadOnlyProperty if you don't understand it before returning null

Overrides:
evalReadOnlyProperty in class Scape
 o aspect
 public Paragraph aspect(Player l)
A players aspect is its description when looked at

 o portrait
 public String portrait()
 o relation
 public String relation()
 o fullPortrait
 public String fullPortrait()
 o getDescription
 public Paragraph getDescription()
 o getLoginMessage
 public String getLoginMessage()
 o getLogoutMessage
 public String getLogoutMessage()
 o getCalled
 public String getCalled()
 o countPlayers
 public String countPlayers(int np,
                            boolean here)
 o who
 public Paragraph who(Player l)
 o withPlayers
 public String withPlayers(int np,
                           boolean here,
                           Player o,
                           Player targetPlayer)
 o with
 public String with(Player targetPlayer)
 o exits
 public Paragraph exits()
 o ejectPlayer
 public void ejectPlayer(Player p)
 o canMoveInto
 public boolean canMoveInto(Player p)
Only stops a direct trans - not using an exit

 o getActions
 public Enumeration getActions()
Returns a list of the actions supported by this class.

Overrides:
getActions in class Container
 o containsAction
 public boolean containsAction(Action a)
Returns true if the action is supported by this class.

Overrides:
containsAction in class Container
 o getAction
 public Action getAction(String name)
Returns the action corresponding to the supplied name. This routine will need to be overriden by sub-classes using actions.

Overrides:
getAction in class Container

All Packages  Class Hierarchy  This Package  Previous  Next  Index