CMCommon, CMObject, Contingent, Environmental, Expireable, Modifiable, MsgListener, StatsAffecting, Tickable, java.lang.Cloneable, java.lang.Comparable<CMObject>public class DefaultEnvironmental extends DefaultModifiable implements Environmental
idConverterfieldsSTATUS_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 |
|---|---|
DefaultEnvironmental() |
| Modifier and Type | Method | Description |
|---|---|---|
void |
affectCharState(MOB affectedMob,
CharState affectableMaxState) |
This method is called by the recoverCharState() method on other MOB objects.
|
void |
affectCharStats(MOB affectedMob,
CharStats affectableStats) |
This method is called by the recoverCharStats() method on other MOB objects.
|
void |
affectPhyStats(Physical affected,
PhyStats affectableStats) |
This method is called by the recoverPhyStats() method on other Environmental objects.
|
boolean |
amDestroyed() |
Whether the destroy() method has been previousy called on this object.
|
java.lang.String |
description() |
The basic description of this object, as shown when the item is directly LOOKed at.
|
void |
destroy() |
Utterly and permanently destroy this object, not only removing it from the map, but
causing this object to be collected as garbage by Java.
|
java.lang.String |
displayText() |
Gets the raw string used to show what this object looks like in the room.
|
void |
executeMsg(Environmental myHost,
CMMsg msg) |
The general message event handler for the object.
|
long |
expirationDate() |
If this object expires, it should have a timestamp saying when it expires, in real time.
|
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.
|
java.lang.String |
image() |
Returns the fully qualified and determined name of the image file displayed for this
object when MXP is used.
|
boolean |
isGeneric() |
Whether the fields of this item are set in code, or set by builders.
|
boolean |
isSavable() |
Whether, if this object is in a room, whether it is appropriate to save this object to
the database as a permanent feature of its container.
|
java.lang.String |
L(java.lang.String str,
java.lang.String... xs) |
Localize an internal string -- shortcut.
|
int |
maxRange() |
the modified maximum range of this object, if applicable.
|
int |
minRange() |
the modified minimum range of this object, if applicable.
|
java.lang.String |
miscTextFormat() |
Unimplemented as of yet, but will hold a string telling the system what
the proper format of any miscText data.
|
java.lang.String |
Name() |
The raw unmodified name of this object as stored in the database.
|
CMObject |
newInstance() |
Returns a new instance of this class.
|
boolean |
okMessage(Environmental myHost,
CMMsg msg) |
The general message event previewer for the object.
|
java.lang.String |
rawImage() |
Returns the raw name of the image file to display for this object when MXP is used.
|
boolean |
sameAs(Environmental E) |
Whether this object instance is functionally identical to the object passed in.
|
void |
setDescription(java.lang.String newDescription) |
Sets the basic description of this object, as shown when the item is directly LOOKed at.
|
void |
setDisplayText(java.lang.String newDisplayText) |
Sets the raw string used to show what this object looks like in the room.
|
void |
setExpirationDate(long dateTime) |
If this object expires, it should have a timestamp saying when it expires, in real time.
|
void |
setImage(java.lang.String newImage) |
Sets the raw name of the image file to display for this object when MXP is used.
|
void |
setMiscText(java.lang.String newMiscText) |
For objects which have false for their isGeneric method, this is used to set any internally
coded strings to change the nature or behavior of the object.
|
void |
setName(java.lang.String newName) |
Sets the raw unmodified name of this object as stored in the database.
|
void |
setSavable(boolean truefalse) |
Sets whether this object can be saved as a permanent aspect of
its host.
|
java.lang.String |
text() |
For objects which have false for their isGeneric method, this is used to set any internally
coded strings to change the nature or behavior of the object.
|
boolean |
tick(Tickable ticking,
int tickID) |
this is the method which is called periodically by the threading engine.
|
copyOf, initializeClasscompareTo, copyOf, getSaveStatIndex, getStat, getStatCodes, initializeClass, isStat, name, setStat, toStringgetSaveStatIndex, getStat, getStatCodes, isStat, setStatpublic java.lang.String ID()
CMObjectID in interface CMObjectID in class DefaultModifiablepublic 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,
TickableGrouppublic void affectPhyStats(Physical affected, PhyStats affectableStats)
StatsAffectingaffectPhyStats in interface StatsAffectingaffected - the host of the PhyStats object being affectedaffectableStats - the particular PhyStats object being affectedPhyStats,
Environmental,
Affectable.basePhyStats(),
Affectable.phyStats(),
Affectable.recoverPhyStats()public void affectCharStats(MOB affectedMob, CharStats affectableStats)
StatsAffectingaffectCharStats in interface StatsAffectingaffectedMob - the host of the CharStats object being affectedaffectableStats - the particular CharStats object being affectedCharStats,
MOB,
MOB.baseCharStats(),
MOB.charStats(),
MOB.recoverCharStats()public void affectCharState(MOB affectedMob, CharState affectableMaxState)
StatsAffectingaffectCharState in interface StatsAffectingaffectedMob - the host of the CharState object being affectedaffectableMaxState - the particular CharState object being affectedCharState,
MOB,
MOB.baseState(),
MOB.curState(),
MOB.recoverMaxState()public void executeMsg(Environmental myHost, CMMsg msg)
MsgListenerexecuteMsg in interface MsgListenermyHost - either the initiator of the event, or the host of this objectmsg - the CMMsg that needs to be executedCMMsgpublic boolean okMessage(Environmental myHost, CMMsg msg)
MsgListenerokMessage in interface MsgListenermyHost - either the initiator of the event, or the host of this objectmsg - the CMMsg that wants to be executedCMMsg,
CMMsg.source()public CMObject newInstance()
CMObjectnewInstance in interface CMObjectnewInstance in class DefaultModifiablepublic void destroy()
Contingentdestroy in interface Contingentpublic boolean isSavable()
ContingentisSavable in interface Contingentpublic boolean amDestroyed()
ContingentamDestroyed in interface Contingentpublic void setSavable(boolean truefalse)
ContingentsetSavable in interface Contingenttruefalse - whether this behavior can be saved as part of its host.Contingent.isSavable()public java.lang.String Name()
EnvironmentalName in interface EnvironmentalTickable.name()public void setName(java.lang.String newName)
EnvironmentalsetName in interface EnvironmentalnewName - the raw base name of this object on the map.Environmental.Name()public java.lang.String displayText()
EnvironmentaldisplayText in interface Environmentalpublic void setDisplayText(java.lang.String newDisplayText)
EnvironmentalsetDisplayText in interface EnvironmentalnewDisplayText - the string describing how this object looks in the roompublic java.lang.String description()
Environmentaldescription in interface Environmentalpublic void setDescription(java.lang.String newDescription)
EnvironmentalsetDescription in interface EnvironmentalnewDescription - the basic detail description of this objectpublic java.lang.String image()
Environmentalimage in interface Environmentalpublic java.lang.String rawImage()
EnvironmentalrawImage in interface Environmentalpublic void setImage(java.lang.String newImage)
EnvironmentalsetImage in interface EnvironmentalnewImage - the raw name of the mxp image filepublic boolean isGeneric()
EnvironmentalisGeneric in interface EnvironmentalEnvironmental.text()public void setMiscText(java.lang.String newMiscText)
EnvironmentalsetMiscText in interface EnvironmentalnewMiscText - either an open internal text string, or XMLpublic java.lang.String text()
Environmentaltext in interface Environmentalpublic java.lang.String miscTextFormat()
EnvironmentalmiscTextFormat in interface EnvironmentalCMParms,
Environmental.text(),
Environmental.setMiscText(String)public boolean sameAs(Environmental E)
EnvironmentalsameAs in interface EnvironmentalE - the object to compare this one toModifiable.getStatCodes(),
Modifiable.getStat(String)public long expirationDate()
ExpireableexpirationDate in interface ExpireableExpireable.setExpirationDate(long)public void setExpirationDate(long dateTime)
ExpireablesetExpirationDate in interface ExpireabledateTime - the time stamp when this thing expiresExpireable.expirationDate()public int maxRange()
EnvironmentalmaxRange in interface Environmentalpublic int minRange()
EnvironmentalminRange in interface Environmentalpublic java.lang.String L(java.lang.String str,
java.lang.String... xs)
EnvironmentalL in interface Environmentalstr - 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.