com.planet_ink.coffee_mud.Libraries
Class CMPlayers

java.lang.Object
  extended by com.planet_ink.coffee_mud.Libraries.StdLibrary
      extended by com.planet_ink.coffee_mud.Libraries.CMPlayers
All Implemented Interfaces:
CMObject, CMLibrary, PlayerLibrary, java.lang.Cloneable, java.lang.Comparable<CMObject>, java.lang.Runnable

public class CMPlayers
extends StdLibrary
implements PlayerLibrary


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.planet_ink.coffee_mud.Libraries.interfaces.PlayerLibrary
PlayerLibrary.ThinPlayer
 
Field Summary
 java.util.Vector playersList
           
 
Fields inherited from interface com.planet_ink.coffee_mud.Libraries.interfaces.PlayerLibrary
THIN_SORT_CODES, THIN_SORT_CODES2
 
Constructor Summary
CMPlayers()
           
 
Method Summary
 boolean activate()
           
 void addPlayer(MOB newOne)
           
 void delPlayer(MOB oneToDel)
           
 void forceTick()
           
 MOB getLoadPlayer(java.lang.String last)
           
 MOB getPlayer(java.lang.String calledThis)
           
 ThreadEngine.SupportThread getSupportThread()
           
 int getThinSortCode(java.lang.String codeName, boolean loose)
           
 java.lang.String getThinSortValue(PlayerLibrary.ThinPlayer player, int code)
           
 java.lang.String ID()
          The CoffeeMud Java Class ID shared by all instances of this object.
 int numPlayers()
           
 void obliteratePlayer(MOB deadMOB, boolean quiet)
           
 java.util.Enumeration players()
           
 void run()
           
 int savePlayers()
           
 boolean shutdown()
           
 java.util.Enumeration thinPlayers(java.lang.String sort, java.util.Hashtable cache)
           
 
Methods inherited from class com.planet_ink.coffee_mud.Libraries.StdLibrary
compareTo, copyOf, initializeClass, newInstance
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.CMObject
copyOf, initializeClass, newInstance
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Field Detail

playersList

public java.util.Vector playersList
Constructor Detail

CMPlayers

public CMPlayers()
Method Detail

ID

public java.lang.String ID()
Description copied from interface: CMObject
The CoffeeMud Java Class ID shared by all instances of this object. Unlike the Java Class name, this method does not include package information. However, it must return a String value unique to its class category in the ClassLoader. Class categories include Libraries, Common, Areas, Abilities, Behaviors, CharClasses, Commands, Exits Locales, MOBS, Races, WebMacros, Basic Items, Armor, Weapons, ClanItems, MiscTech. The name is typically identical to the class name.

Specified by:
ID in interface CMObject
Overrides:
ID in class StdLibrary
Returns:
the name of this class

getSupportThread

public ThreadEngine.SupportThread getSupportThread()
Specified by:
getSupportThread in interface CMLibrary
Overrides:
getSupportThread in class StdLibrary

numPlayers

public int numPlayers()
Specified by:
numPlayers in interface PlayerLibrary

addPlayer

public void addPlayer(MOB newOne)
Specified by:
addPlayer in interface PlayerLibrary

delPlayer

public void delPlayer(MOB oneToDel)
Specified by:
delPlayer in interface PlayerLibrary

getPlayer

public MOB getPlayer(java.lang.String calledThis)
Specified by:
getPlayer in interface PlayerLibrary

getLoadPlayer

public MOB getLoadPlayer(java.lang.String last)
Specified by:
getLoadPlayer in interface PlayerLibrary

players

public java.util.Enumeration players()
Specified by:
players in interface PlayerLibrary

obliteratePlayer

public void obliteratePlayer(MOB deadMOB,
                             boolean quiet)
Specified by:
obliteratePlayer in interface PlayerLibrary

savePlayers

public int savePlayers()
Specified by:
savePlayers in interface PlayerLibrary

getThinSortValue

public java.lang.String getThinSortValue(PlayerLibrary.ThinPlayer player,
                                         int code)
Specified by:
getThinSortValue in interface PlayerLibrary

getThinSortCode

public int getThinSortCode(java.lang.String codeName,
                           boolean loose)
Specified by:
getThinSortCode in interface PlayerLibrary

thinPlayers

public java.util.Enumeration thinPlayers(java.lang.String sort,
                                         java.util.Hashtable cache)
Specified by:
thinPlayers in interface PlayerLibrary

activate

public boolean activate()
Specified by:
activate in interface CMLibrary
Overrides:
activate in class StdLibrary

shutdown

public boolean shutdown()
Specified by:
shutdown in interface CMLibrary
Overrides:
shutdown in class StdLibrary

forceTick

public void forceTick()
Specified by:
forceTick in interface PlayerLibrary

run

public void run()
Specified by:
run in interface java.lang.Runnable