All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class key.Scape

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

public class Scape
extends Container
implements CommandContainer

Variable Index

 o allNamesProperty
 o commandList
Commands that are specific for this particular atom.
 o numberPlayersProperty
 o staticCommandList
This is a reference to some sort of 'standard' command list for this _type_ of atom.

Constructor Index

 o Scape()

Method Index

 o canSwap()
 o containsPlayer(Player)
 o dispose()
This is a method that should be called only once.
 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 finalize()
 o getAllNames()
 o getAllNames(Player)
All the names, except substitute 'you' for player p
 o getCommandList()
A shortcut, since matching it from the string could be prohibitively slow
 o getPlayer(Player, String)
Returns the player matched, or, possibly, an instance of a Trie object that contains all the matching players.
 o getPlayer(Player, StringTokenizer)
 o getPlayer(String)
 o getStaticCommandList()
A shortcut, since matching it from the string could be prohibitively slow
 o getTotalScapes()
 o linkPlayer(Player)
Add this player to the list of players
 o numberPlayers()
 o players()
 o splash(Effect, SuppressionList)
A general way of saying that the people in this scape should be notified of the supplied Effect.
 o splashExcept(Effect, Atom, SuppressionList)
Sends the splash to everyone except the listed atom
 o splashExcept(Effect, Atom[], SuppressionList)
Sends the splash to everyone except the listed atoms
 o splashToPlayer(Player, Effect, SuppressionList)
 o unlinkPlayer(Player)
Take this player out of the list of players

Variables

 o numberPlayersProperty
 protected ReadOnlyProperty numberPlayersProperty
 o allNamesProperty
 protected ReadOnlyProperty allNamesProperty
 o commandList
 protected AtomicProperty commandList
Commands that are specific for this particular atom. Examples might be custom commands in rooms, such as 'look' (if its overridden to give different messages each time you type it)

 o staticCommandList
 protected ReferenceProperty staticCommandList
This is a reference to some sort of 'standard' command list for this _type_ of atom. It will generally be set when the atom is created or loaded, and left to its own devices after that.

Constructors

 o Scape
 public Scape()

Methods

 o linkPlayer
 public void linkPlayer(Player p) throws NonUniqueKeyException, BadKeyException
Add this player to the list of players

Parameters:
p - the player to add to the list
Throws: NonUniqueKeyException
if there is already a player in with this name
Throws: BadKeyException
if this players name is malformed somehow
 o unlinkPlayer
 public void unlinkPlayer(Player p) throws NonUniqueKeyException, NoSuchElementException, BadKeyException
Take this player out of the list of players

Parameters:
p - the player to remove from the list
Throws: NoSuchElementException
if the player is not in the list
Throws: BadKeyException
if the players name is malformed somehow
 o getPlayer
 public final Object getPlayer(Player p,
                               String match)
Returns the player matched, or, possibly, an instance of a Trie object that contains all the matching players.

A null is returned if no matches were found at all. The match string is searched until the end of the string or a non-alphabetical character is found.

If you specify a comma seperated list of players, a scape containing the players will be returned. Such a scape can also contain errors when individual multiple matches are caught

Parameters:
match - the start or whole string to match from
Returns:
A player object, referring to the sole match, or a Trie
 o getPlayer
 public final Object getPlayer(String match)
 o getPlayer
 protected final Object getPlayer(Player p,
                                  StringTokenizer st)
 o players
 public final Enumeration players()
 o containsPlayer
 public final boolean containsPlayer(Player p)
 o dispose
 public void dispose()
This is a method that should be called only once.

Overrides:
dispose in class Container
 o getAllNames
 public final String getAllNames()
 o getAllNames
 public final String getAllNames(Player p)
All the names, except substitute 'you' for player p

 o numberPlayers
 public final int numberPlayers()
 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 Container
 o splash
 public void splash(Effect t,
                    SuppressionList s)
A general way of saying that the people in this scape should be notified of the supplied Effect.

Overrides:
splash in class Atom
 o splashToPlayer
 protected final void splashToPlayer(Player p,
                                     Effect t,
                                     SuppressionList sl)
 o splashExcept
 public void splashExcept(Effect t,
                          Atom except,
                          SuppressionList sl)
Sends the splash to everyone except the listed atom

 o splashExcept
 public void splashExcept(Effect t,
                          Atom except[],
                          SuppressionList sl)
Sends the splash to everyone except the listed atoms

 o getCommandList
 public final CommandList getCommandList()
A shortcut, since matching it from the string could be prohibitively slow

 o getStaticCommandList
 public final CommandList getStaticCommandList()
A shortcut, since matching it from the string could be prohibitively slow

 o getTotalScapes
 public static int getTotalScapes()
 o finalize
 protected void finalize() throws Throwable
Overrides:
finalize in class Container
 o canSwap
 public boolean canSwap()
Overrides:
canSwap in class Atom

All Packages  Class Hierarchy  This Package  Previous  Next  Index