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
, XMLManager
public 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 |
idConverter
STATUS_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()
CMObject
public java.lang.String name()
CMObject
name
in interface CMObject
name
in interface Tickable
Environmental.Name()
public CMObject newInstance()
CMObject
newInstance
in interface CMObject
public CMObject copyOf()
CMObject
public int compareTo(CMObject o)
compareTo
in interface java.lang.Comparable<CMObject>
public java.lang.String L(java.lang.String str, java.lang.String... xs)
CMLibrary
L
in interface CMLibrary
str
- 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()
CMObject
initializeClass
in interface CMObject
public boolean activate()
CMLibrary
activate
in interface CMLibrary
CMLibrary.shutdown()
public void propertiesLoaded()
CMLibrary
propertiesLoaded
in interface CMLibrary
public boolean shutdown()
CMLibrary
shutdown
in interface CMLibrary
CMLibrary.activate()
public TickClient getServiceClient()
CMLibrary
getServiceClient
in interface CMLibrary
TickClient
public void setThreadStatus(TickClient C, java.lang.String msg)
public int getTickStatus()
Tickable
getTickStatus
in interface Tickable
Tickable.tick(Tickable, int)
public boolean tick(Tickable ticking, int tickID)
Tickable
tick
in interface Tickable
ticking
- a reference to this Tickable objecttickID
- the TICKID_ constant describing this periodic call, as defined in TickableTickable
,
ServiceEngine
,
TickableGroup
protected boolean checkDatabase()