CMObject, Tickable, CMLibrary, java.lang.Cloneable, java.lang.Comparable<CMObject>Achievements, AutoAwards, BeanCounter, Brown, CharCreation, CityCafe, Clans, CMAbleComps, CMAbleMap, CMAbleParms, CMCatalog, CMChannels, CMEncoder, CMGenEditor, CMJournals, CMLister, CMMap, CMPlayers, CMProtocols, CoffeeDark, CoffeeFilter, CoffeeLevels, CoffeeMaker, CoffeeShops, CoffeeTables, CoffeeTime, CoffeeUtensils, ColumbiaUniv, CommonMsgs, Dice, DirtyLanguage, EnglishParser, Factions, GroundWired, MUDFight, MUDHelp, MUDLaw, MUDPercolator, MUDTracker, MUDZapper, Polls, Quests, RawCMaterial, Sense, Sessions, SlaveryParser, SMTPclient, Socials, TimsLibrary, WebMacroCreamer, WorldHuntUtils, XMLManagerpublic class StdLibrary extends java.lang.Object implements CMLibrary, Tickable
| Modifier and Type | Field | Description |
|---|---|---|
protected boolean |
isDebugging |
|
protected java.lang.String |
name |
|
protected TickClient |
serviceClient |
|
protected int |
tickStatus |
idConverterSTATUS_AFFECT, STATUS_ALIVE, STATUS_BEHAVIOR, STATUS_CLASS, STATUS_DEAD, STATUS_END, STATUS_FIGHT, STATUS_MISC, STATUS_MISC2, STATUS_MISC3, STATUS_MISC4, STATUS_MISC5, STATUS_MISC6, STATUS_MISC7, STATUS_NOT, STATUS_OTHER, STATUS_RACE, STATUS_REBIRTH, STATUS_SCRIPT, STATUS_START, STATUS_WEATHER, TICKID_AREA, TICKID_BALLISTICK, TICKID_CLAN, TICKID_CLANITEM, TICKID_DEADBODY_DECAY, TICKID_ELECTRONICS, TICKID_EMAIL, TICKID_EVENT, TICKID_EXIT_BEHAVIOR, TICKID_EXIT_REOPEN, TICKID_ITEM_BEHAVIOR, TICKID_ITEM_BOUNCEBACK, TICKID_LIGHT_FLICKERS, TICKID_LIVEAUCTION, TICKID_LONGERMASK, TICKID_MISCELLANEOUS, TICKID_MOB, TICKID_PROPERTY_SPECIAL, TICKID_QUEST, TICKID_READYTOSTOP, TICKID_ROOM_BEHAVIOR, TICKID_ROOM_ITEM_REJUV, TICKID_SHORTERMASK, TICKID_SOLITARYMASK, TICKID_SPECIALCOMBAT, TICKID_SPECIALMANEUVER, TICKID_SPELL_AFFECT, TICKID_SUPPORT, TICKID_TIMEAUCTION, TICKID_TRAP_DESTRUCTION, TICKID_TRAP_RESET| Constructor | Description |
|---|---|
StdLibrary() |
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
activate() |
Activates the library.
|
protected boolean |
checkDatabase() |
|
int |
compareTo(CMObject o) |
|
CMObject |
copyOf() |
Similar to Cloneable.clone(), but does its best to make sure that
any internal objects to this class are also copyOfed.
|
TickClient |
getServiceClient() |
If this library has a service thread, this method returns the TickClient
object associated with that service.
|
int |
getTickStatus() |
A coded status for this object during the period where
its tick method is being called.
|
java.lang.String |
ID() |
The CoffeeMud Java Class ID shared by all instances of
this object.
|
void |
initializeClass() |
Called ONCE after all objects are loaded, but before the map is read in
during initialization.
|
java.lang.String |
L(java.lang.String str,
java.lang.String... xs) |
Localize an internal string -- shortcut.
|
java.lang.String |
name() |
The displayable name of this object.
|
CMObject |
newInstance() |
Returns a new instance of this class.
|
void |
propertiesLoaded() |
This method is called whenever system properties are altered by the user.
|
void |
setThreadStatus(TickClient C,
java.lang.String msg) |
|
boolean |
shutdown() |
Shuts down the library.
|
boolean |
tick(Tickable ticking,
int tickID) |
this is the method which is called periodically by the threading engine.
|
protected java.lang.String name
protected volatile int tickStatus
protected TickClient serviceClient
protected boolean isDebugging
public java.lang.String ID()
CMObjectpublic java.lang.String name()
CMObjectname in interface CMObjectname in interface TickableEnvironmental.Name()public CMObject newInstance()
CMObjectnewInstance in interface CMObjectpublic CMObject copyOf()
CMObjectpublic int compareTo(CMObject o)
compareTo in interface java.lang.Comparable<CMObject>public java.lang.String L(java.lang.String str,
java.lang.String... xs)
CMLibraryL in interface CMLibrarystr - the string to translatexs - the array of variables to replaceCall with the string to translate, which may contain variables of the form @x1, @x2, etc. The array in xs
is then used to replace the variables AFTER the string is translated.public void initializeClass()
CMObjectinitializeClass in interface CMObjectpublic boolean activate()
CMLibraryactivate in interface CMLibraryCMLibrary.shutdown()public void propertiesLoaded()
CMLibrarypropertiesLoaded in interface CMLibrarypublic boolean shutdown()
CMLibraryshutdown in interface CMLibraryCMLibrary.activate()public TickClient getServiceClient()
CMLibrarygetServiceClient in interface CMLibraryTickClientpublic void setThreadStatus(TickClient C, java.lang.String msg)
public int getTickStatus()
TickablegetTickStatus in interface TickableTickable.tick(Tickable, int)public boolean tick(Tickable ticking, int tickID)
Tickabletick in interface Tickableticking - a reference to this Tickable objecttickID - the TICKID_ constant describing this periodic call, as defined in TickableTickable,
ServiceEngine,
TickableGroupprotected boolean checkDatabase()