Affectable
, Behavable
, CloseableLockable
, CMObject
, Contingent
, Environmental
, Expireable
, Modifiable
, MsgListener
, Physical
, PhysicalAgent
, Readable
, StatsAffecting
, Tickable
, Exit
, java.lang.Cloneable
, java.lang.Comparable<CMObject>
AjarDoor
, ClimbableExit
, FlyingExit
, GapExit
, GenExit
, OpenDescriptable
, StdClosedDoorway
, StdOpenDoorway
public class StdExit extends java.lang.Object implements Exit
Modifier and Type | Field | Description |
---|---|---|
protected EachApplicable.ApplyAffectPhyStats<Ability> |
affectPhyStats |
|
protected CList<Ability> |
affects |
|
protected boolean |
amDestroyed |
|
protected PhyStats |
basePhyStats |
|
protected CList<Behavior> |
behaviors |
|
protected java.lang.String |
cachedImageName |
|
protected boolean |
isLocked |
|
protected boolean |
isOpen |
|
protected java.lang.String |
lastRoomID |
|
protected Exit |
me |
|
protected java.lang.String |
miscText |
|
protected PhyStats |
phyStats |
|
protected java.lang.String |
rawImageName |
|
protected CList<ScriptingEngine> |
scripts |
|
protected short |
usage |
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 |
---|---|
StdExit() |
Modifier and Type | Method | Description |
---|---|---|
void |
addBehavior(Behavior to) |
Manipulation of Behavior objects, which includes
movement, speech, spellcasting, etc, etc.
|
void |
addEffect(Ability to) |
Add a new effect to this object, whether permanent or temporary.
|
void |
addNonUninvokableEffect(Ability to) |
Same as addEffect(Ability), but will set the Ability object as never being able to be uninvoked.
|
void |
addScript(ScriptingEngine S) |
Manipulation of the scripts list
|
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.
|
PhyStats |
basePhyStats() |
Object containing a set of base, unmodified, mostly numeric fields.
|
java.util.Enumeration<Behavior> |
behaviors() |
Returns an enumerator of all the behaviors on this object.
|
protected void |
cloneFix(Exit X) |
|
java.lang.String |
closedText() |
Returns a text description of what this exit looks like when closed.
|
java.lang.String |
closeWord() |
Returns the verb used for describing closing this exit, e.g.
|
protected java.lang.String |
closeWordPastTense() |
|
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.
|
boolean |
defaultsClosed() |
For exits with a door, this returns whether this
defaults in a closed state.
|
boolean |
defaultsLocked() |
For exits with a door and lock, this returns whether this
defaults in a closed and locked state.
|
void |
delAllBehaviors() |
Removes all behaviors from this object.
|
void |
delAllEffects(boolean unInvoke) |
Optionally uninvokes and then certainly removes all effects
from this object.
|
void |
delAllScripts() |
Removes all executing scripts from this object.
|
void |
delBehavior(Behavior to) |
Delete a behavior from this object.
|
void |
delEffect(Ability to) |
Delete an effect from this object, whether permanent or temporary.
|
void |
delScript(ScriptingEngine S) |
Remove a running script from this object.
|
java.lang.String |
description() |
The basic description of this object, as shown when the item is directly LOOKed at.
|
java.lang.String |
description(MOB viewerMob) |
Returns the description, but as seen by the given viewer.
|
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.
|
java.lang.String |
displayText(MOB viewerMob) |
Returns the displayText, but as seen by the given viewer.
|
java.lang.String |
doorName() |
Returns the short name of this door, e.g.
|
void |
eachBehavior(EachApplicable<Behavior> applier) |
Applies the given code to each behavior on this object
|
void |
eachEffect(EachApplicable<Ability> applier) |
Applies the given code to each effect on this object
|
void |
eachScript(EachApplicable<ScriptingEngine> applier) |
Applies the given code to each scripting engine on this object
|
java.util.Enumeration<Ability> |
effects() |
Returns an enumerator of abilities listed as effects on this object.
|
void |
executeMsg(Environmental myHost,
CMMsg msg) |
The general message event handler for the object.
|
short |
exitUsage(short change) |
Both reads and optionally modifies an internal reference counter for this
exit.
|
long |
expirationDate() |
If this object expires, it should have a timestamp saying when it expires, in real time.
|
Behavior |
fetchBehavior(int index) |
Returns a behavior object on this object.
|
Behavior |
fetchBehavior(java.lang.String ID) |
Returns a behavior object listed on this object.
|
Ability |
fetchEffect(int index) |
Returns an ability object listed as an effect on this object.
|
Ability |
fetchEffect(java.lang.String ID) |
Returns an ability object listed as an effect on this object.
|
ScriptingEngine |
fetchScript(int x) |
Retrieve one of the enumerated scripts running on this
object
|
java.lang.String |
genericName() |
Returns a generic name for this object, devoid of its particular
identifying details.
|
protected int |
getCodeNum(java.lang.String code) |
|
int |
getSaveStatIndex() |
Returns the index into the stat codes array where extra savable fields begins.
|
java.lang.String |
getStat(java.lang.String code) |
An alternative means of retreiving the values of those fields on this object which are modifiable at
run-time by builders.
|
java.lang.String[] |
getStatCodes() |
Returns an array of the string names of those fields which are modifiable on this object at run-time by
builders.
|
int |
getTickStatus() |
A coded status for this object during the period where
its tick method is being called.
|
boolean |
hasADoor() |
Returns whether this has a door, and must be opened before
being used.
|
boolean |
hasALock() |
Returns whether this has a lock on it, and, if locked,
must be unlocked before being used.
|
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.
|
void |
initializeClass() |
Called ONCE after all objects are loaded, but before the map is read in
during initialization.
|
boolean |
isGeneric() |
Whether the fields of this item are set in code, or set by builders.
|
boolean |
isLocked() |
Returns whether this is LOCKED, and must be unlocked before
being used.
|
boolean |
isOpen() |
Returns whether this is OPEN and may be accessed or travelled through
|
boolean |
isReadable() |
Returns whether this thing is readable when the player uses the READ command
and targets it.
|
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.
|
boolean |
isStat(java.lang.String code) |
An alternative means of retreiving the values of those fields on this object which are modifiable at
run-time by builders.
|
java.lang.String |
keyName() |
For things with doors and locks, this returns the unique string
representing the key code required to unlock/lock it.
|
java.lang.String |
L(java.lang.String str,
java.lang.String... xs) |
Localize an internal string -- shortcut.
|
Room |
lastRoomUsedFrom(Room fromRoom) |
Returns the very last room from or to which this exit was used.
|
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 nice displayable name of this instance of this object
|
java.lang.String |
name(MOB viewerMob) |
Returns the name, but as seen by the given viewer.
|
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.
|
int |
numBehaviors() |
The number of behaviors this object has.
|
int |
numEffects() |
Returns the number of ability objects listed as effects on this object.
|
int |
numScripts() |
Return the number of scripts running on this object
|
boolean |
okMessage(Environmental myHost,
CMMsg msg) |
The general message event previewer for the object.
|
int |
openDelayTicks() |
Returns the number of ticks that this remains open when a mob
or player changes it from a closed to an open state, and this thing
defaults in a closed state.
|
java.lang.String |
openWord() |
Returns the verb used for describing opening this exit, e.g.
|
protected java.lang.String |
openWordPastTense() |
|
PhyStats |
phyStats() |
Object containing a set of current, modified, usable, mostly numeric fields.
|
java.lang.String |
rawImage() |
Returns the raw name of the image file to display for this object when MXP is used.
|
java.lang.String |
readableText() |
For things that are readable, this returns the readable string
for this thing.
|
void |
recoverPhyStats() |
This method copies the basePhyStats() object into the phyStats() object, then makes repeated calls to
all surrounding objects with affectPhyStats(Environmental,PhyStats) method.
|
boolean |
sameAs(Environmental E) |
Whether this object instance is functionally identical to the object passed in.
|
java.util.Enumeration<ScriptingEngine> |
scripts() |
Returns an enumerator of all the scripts on this object.
|
void |
setBasePhyStats(PhyStats newStats) |
Re-sets the object containing a set of base, unmodified, mostly numeric fields.
|
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 |
setDoorsNLocks(boolean newHasADoor,
boolean newIsOpen,
boolean newDefaultsClosed,
boolean newHasALock,
boolean newIsLocked,
boolean newDefaultsLocked) |
Modifies the various door/lock settings for this thing.
|
void |
setExitParams(java.lang.String newDoorName,
java.lang.String newCloseWord,
java.lang.String newOpenWord,
java.lang.String newClosedText) |
Sets various word descriptions used when doing some dynamic manipulations
of this exit.
|
void |
setExpirationDate(long time) |
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 |
setKeyName(java.lang.String newKeyName) |
For things with doors and locks, this sets the unique string
representing the key code required to unlock/lock it.
|
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 |
setOpenDelayTicks(int numTicks) |
Sets the number of ticks that this will remain open when a mob
or player changes it from a closed to an open state, and this thing
defaults in a closed state.
|
void |
setReadable(boolean isTrue) |
Returns whether this thing is readable when the player uses the READ command
and targets it.
|
void |
setReadableText(java.lang.String text) |
For things that are readable, this set the readable string
for this thing.
|
void |
setSavable(boolean truefalse) |
Sets whether this object can be saved as a permanent aspect of
its host.
|
void |
setStat(java.lang.String code,
java.lang.String val) |
An alternative means of setting the values of those fields on this object which are modifiable at
run-time by builders.
|
void |
setTemporaryDoorLink(java.lang.String link) |
If this exit represents a route to a room not yet created, but whose room id
is already known, this will set that designated room id.
|
java.lang.String |
temporaryDoorLink() |
If this exit represents a route to a room not yet created, but whose room id
is already known, this will return that designated room id.
|
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.
|
java.lang.StringBuilder |
viewableText(MOB mob,
Room room) |
Returns the modified and qualified player-viewed description of this exit.
|
protected PhyStats phyStats
protected PhyStats basePhyStats
protected boolean isOpen
protected boolean isLocked
protected java.lang.String miscText
protected java.lang.String cachedImageName
protected java.lang.String rawImageName
protected boolean amDestroyed
protected short usage
protected java.lang.String lastRoomID
protected CList<ScriptingEngine> scripts
protected Exit me
protected EachApplicable.ApplyAffectPhyStats<Ability> affectPhyStats
public java.lang.String ID()
CMObject
public void initializeClass()
CMObject
initializeClass
in interface CMObject
public java.lang.String Name()
Environmental
Name
in interface Environmental
Tickable.name()
public java.lang.String genericName()
Physical
genericName
in interface Physical
public boolean hasADoor()
CloseableLockable
hasADoor
in interface CloseableLockable
CloseableLockable.isOpen()
,
CloseableLockable.isLocked()
public boolean hasALock()
CloseableLockable
hasALock
in interface CloseableLockable
CloseableLockable.isOpen()
,
CloseableLockable.isLocked()
,
CloseableLockable.hasADoor()
public boolean defaultsLocked()
CloseableLockable
defaultsLocked
in interface CloseableLockable
CloseableLockable.hasADoor()
,
CloseableLockable.defaultsClosed()
public boolean defaultsClosed()
CloseableLockable
defaultsClosed
in interface CloseableLockable
CloseableLockable.hasADoor()
,
CloseableLockable.defaultsLocked()
public java.lang.String displayText()
Environmental
displayText
in interface Environmental
public java.lang.String description()
Environmental
description
in interface Environmental
public java.lang.String description(MOB viewerMob)
Physical
description
in interface Physical
viewerMob
- the mob viewing the physical thingEnvironmental.description()
public java.lang.String doorName()
Exit
doorName
in interface Exit
Exit.setExitParams(String, String, String, String)
public java.lang.String closedText()
Exit
closedText
in interface Exit
CloseableLockable.hasADoor()
,
CloseableLockable.defaultsClosed()
public java.lang.String closeWord()
Exit
closeWord
in interface Exit
Exit.openWord()
,
CloseableLockable.hasADoor()
,
CloseableLockable.defaultsClosed()
,
Exit.setExitParams(String, String, String, String)
public java.lang.String openWord()
Exit
openWord
in interface Exit
Exit.closeWord()
,
CloseableLockable.hasADoor()
,
CloseableLockable.defaultsClosed()
,
Exit.setExitParams(String, String, String, String)
public java.lang.String displayText(MOB viewerMob)
Physical
displayText
in interface Physical
viewerMob
- the mob viewing the physical thingEnvironmental.displayText()
public java.lang.String name(MOB viewerMob)
Physical
name
in interface Physical
viewerMob
- the mob viewing the physical thingTickable.name()
public int getTickStatus()
Tickable
getTickStatus
in interface Tickable
Tickable.tick(Tickable, int)
public short exitUsage(short change)
Exit
public void setName(java.lang.String newName)
Environmental
setName
in interface Environmental
newName
- the raw base name of this object on the map.Environmental.Name()
public java.lang.String name()
Tickable
name
in interface CMObject
name
in interface Tickable
Environmental.Name()
public PhyStats phyStats()
Affectable
phyStats
in interface Affectable
Affectable.basePhyStats()
,
Affectable.recoverPhyStats()
,
PhyStats
public PhyStats basePhyStats()
Affectable
basePhyStats
in interface Affectable
Affectable.phyStats()
,
Affectable.recoverPhyStats()
,
PhyStats
public void recoverPhyStats()
Affectable
recoverPhyStats
in interface Affectable
Affectable.basePhyStats()
,
Affectable.phyStats()
,
Affectable.addEffect(Ability)
,
Behavable.addBehavior(Behavior)
,
PhyStats
public void setBasePhyStats(PhyStats newStats)
Affectable
setBasePhyStats
in interface Affectable
newStats
- a set of state fieldsAffectable.phyStats()
,
Affectable.recoverPhyStats()
,
PhyStats
public void destroy()
Contingent
destroy
in interface Contingent
public boolean amDestroyed()
Contingent
amDestroyed
in interface Contingent
public boolean isSavable()
Contingent
isSavable
in interface Contingent
public void setSavable(boolean truefalse)
Contingent
setSavable
in interface Contingent
truefalse
- whether this behavior can be saved as part of its host.Contingent.isSavable()
public java.lang.String image()
Environmental
image
in interface Environmental
public java.lang.String rawImage()
Environmental
rawImage
in interface Environmental
public void setImage(java.lang.String newImage)
Environmental
setImage
in interface Environmental
newImage
- the raw name of the mxp image filepublic CMObject newInstance()
CMObject
newInstance
in interface CMObject
public boolean isGeneric()
Environmental
isGeneric
in interface Environmental
Environmental.text()
protected void cloneFix(Exit X)
public CMObject copyOf()
CMObject
public void setMiscText(java.lang.String newMiscText)
Environmental
setMiscText
in interface Environmental
newMiscText
- either an open internal text string, or XMLpublic java.lang.String text()
Environmental
text
in interface Environmental
public java.lang.String miscTextFormat()
Environmental
miscTextFormat
in interface Environmental
CMParms
,
Environmental.text()
,
Environmental.setMiscText(String)
public long expirationDate()
Expireable
expirationDate
in interface Expireable
Expireable.setExpirationDate(long)
public void setExpirationDate(long time)
Expireable
setExpirationDate
in interface Expireable
time
- the time stamp when this thing expiresExpireable.expirationDate()
public void setDisplayText(java.lang.String newDisplayText)
Environmental
setDisplayText
in interface Environmental
newDisplayText
- the string describing how this object looks in the roompublic void setDescription(java.lang.String newDescription)
Environmental
setDescription
in interface Environmental
newDescription
- the basic detail description of this objectpublic int maxRange()
Environmental
maxRange
in interface Environmental
public int minRange()
Environmental
minRange
in interface Environmental
protected final java.lang.String closeWordPastTense()
protected final java.lang.String openWordPastTense()
public boolean okMessage(Environmental myHost, CMMsg msg)
MsgListener
okMessage
in interface MsgListener
myHost
- either the initiator of the event, or the host of this objectmsg
- the CMMsg that wants to be executedCMMsg
,
CMMsg.source()
public java.lang.StringBuilder viewableText(MOB mob, Room room)
Exit
viewableText
in interface Exit
mob
- the mob doing the viewingroom
- the room from which the mob sees the exitpublic void executeMsg(Environmental myHost, CMMsg msg)
MsgListener
executeMsg
in interface MsgListener
myHost
- either the initiator of the event, or the host of this objectmsg
- the CMMsg that needs to be executedCMMsg
public int compareTo(CMObject o)
compareTo
in interface java.lang.Comparable<CMObject>
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
public boolean isOpen()
CloseableLockable
isOpen
in interface CloseableLockable
public boolean isLocked()
CloseableLockable
isLocked
in interface CloseableLockable
CloseableLockable.hasADoor()
,
CloseableLockable.hasALock()
public void setDoorsNLocks(boolean newHasADoor, boolean newIsOpen, boolean newDefaultsClosed, boolean newHasALock, boolean newIsLocked, boolean newDefaultsLocked)
CloseableLockable
setDoorsNLocks
in interface CloseableLockable
newHasADoor
- whether this has a doornewIsOpen
- whether this is open for usenewDefaultsClosed
- whether this defaults closednewHasALock
- whether this has a locknewIsLocked
- whether this is presently lockednewDefaultsLocked
- whether this defaults closed and locked.CloseableLockable.isOpen()
,
CloseableLockable.isLocked()
,
CloseableLockable.hasADoor()
,
CloseableLockable.hasALock()
,
CloseableLockable.defaultsClosed()
,
CloseableLockable.defaultsLocked()
public java.lang.String readableText()
Readable
readableText
in interface Readable
Readable.isReadable()
,
Readable.setReadable(boolean)
,
Readable.setReadableText(String)
public boolean isReadable()
Readable
isReadable
in interface Readable
Readable.readableText()
,
Readable.setReadable(boolean)
,
Readable.setReadableText(String)
public void setReadable(boolean isTrue)
Readable
setReadable
in interface Readable
isTrue
- true if the thing is readable, and false otherwiseReadable.readableText()
,
Readable.isReadable()
,
Readable.setReadableText(String)
public void setReadableText(java.lang.String text)
Readable
setReadableText
in interface Readable
text
- the readable textReadable.isReadable()
,
Readable.setReadable(boolean)
,
Readable.readableText()
public void setExitParams(java.lang.String newDoorName, java.lang.String newCloseWord, java.lang.String newOpenWord, java.lang.String newClosedText)
Exit
setExitParams
in interface Exit
newDoorName
- short name of this door, e.g. door, gatenewCloseWord
- verb used to close this door, e.g. close, lowernewOpenWord
- verb used to open this door, e.g. open, raisenewClosedText
- description of this exit when in a closed stateExit.closeWord()
,
Exit.openWord()
,
Exit.doorName()
,
Exit.closedText()
public java.lang.String keyName()
CloseableLockable
keyName
in interface CloseableLockable
CloseableLockable.setKeyName(String)
public void setKeyName(java.lang.String newKeyName)
CloseableLockable
setKeyName
in interface CloseableLockable
newKeyName
- the new key codeCloseableLockable.keyName()
public Room lastRoomUsedFrom(Room fromRoom)
Exit
lastRoomUsedFrom
in interface Exit
fromRoom
- the room from which a perspective is desiredpublic void affectPhyStats(Physical affected, PhyStats affectableStats)
StatsAffecting
affectPhyStats
in interface StatsAffecting
affected
- 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)
StatsAffecting
affectCharStats
in interface StatsAffecting
affectedMob
- 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)
StatsAffecting
affectCharState
in interface StatsAffecting
affectedMob
- the host of the CharState object being affectedaffectableMaxState
- the particular CharState object being affectedCharState
,
MOB
,
MOB.baseState()
,
MOB.curState()
,
MOB.recoverMaxState()
public java.lang.String temporaryDoorLink()
Exit
temporaryDoorLink
in interface Exit
Exit.setTemporaryDoorLink(String)
public void setTemporaryDoorLink(java.lang.String link)
Exit
setTemporaryDoorLink
in interface Exit
link
- the room id of the room that will be linked in laterExit.temporaryDoorLink()
public void addNonUninvokableEffect(Ability to)
Affectable
addNonUninvokableEffect
in interface Affectable
to
- The ability object to add as an effect.Ability
,
Affectable.recoverPhyStats()
public void addEffect(Ability to)
Affectable
addEffect
in interface Affectable
to
- The ability object to add as an effect.Ability
,
Affectable.recoverPhyStats()
public void delEffect(Ability to)
Affectable
delEffect
in interface Affectable
to
- The ability object to remove as an effect on this objectAbility
,
Affectable.recoverPhyStats()
public void eachEffect(EachApplicable<Ability> applier)
Affectable
eachEffect
in interface Affectable
applier
- code to execute against each objectpublic void delAllEffects(boolean unInvoke)
Affectable
delAllEffects
in interface Affectable
unInvoke
- send true to uninvoke before deletingpublic java.util.Enumeration<Ability> effects()
Affectable
effects
in interface Affectable
Ability
public int numEffects()
Affectable
numEffects
in interface Affectable
Ability
public Ability fetchEffect(int index)
Affectable
fetchEffect
in interface Affectable
index
- which object to returnAbility
,
Affectable.numEffects()
public Ability fetchEffect(java.lang.String ID)
Affectable
fetchEffect
in interface Affectable
ID
- the Ability ID to look for in effectsAbility
,
CMObject.ID()
public void addBehavior(Behavior to)
addBehavior
in interface Behavable
to
- The behavior object to add.Behavior
,
Affectable.recoverPhyStats()
public void delBehavior(Behavior to)
Behavable
delBehavior
in interface Behavable
to
- The behavior object to remove.Behavior
,
Affectable.recoverPhyStats()
public void delAllBehaviors()
Behavable
delAllBehaviors
in interface Behavable
public int numBehaviors()
Behavable
numBehaviors
in interface Behavable
Behavior
public java.util.Enumeration<Behavior> behaviors()
Behavable
public Behavior fetchBehavior(int index)
Behavable
fetchBehavior
in interface Behavable
index
- which object to returnBehavior
,
Behavable.numBehaviors()
public Behavior fetchBehavior(java.lang.String ID)
Behavable
fetchBehavior
in interface Behavable
ID
- the Behavior ID to look forBehavior
,
CMObject.ID()
public void eachBehavior(EachApplicable<Behavior> applier)
Behavable
eachBehavior
in interface Behavable
applier
- code to execute against each objectpublic void addScript(ScriptingEngine S)
addScript
in interface Behavable
S
- the scripting engine, fully populated, to addScriptingEngine
public void delScript(ScriptingEngine S)
Behavable
delScript
in interface Behavable
S
- the specific scripting engine to removeScriptingEngine
public void delAllScripts()
Behavable
delAllScripts
in interface Behavable
public int numScripts()
Behavable
numScripts
in interface Behavable
public java.util.Enumeration<ScriptingEngine> scripts()
Behavable
scripts
in interface Behavable
ScriptingEngine
public ScriptingEngine fetchScript(int x)
Behavable
fetchScript
in interface Behavable
x
- which script to returnScriptingEngine
public void eachScript(EachApplicable<ScriptingEngine> applier)
Behavable
eachScript
in interface Behavable
applier
- code to execute against each objectpublic int openDelayTicks()
CloseableLockable
openDelayTicks
in interface CloseableLockable
CloseableLockable.setOpenDelayTicks(int)
,
Tickable.TICKID_EXIT_REOPEN
public void setOpenDelayTicks(int numTicks)
CloseableLockable
setOpenDelayTicks
in interface CloseableLockable
numTicks
- the number of ticks this will remain openCloseableLockable.openDelayTicks()
,
Tickable.TICKID_EXIT_REOPEN
public java.lang.String L(java.lang.String str, java.lang.String... xs)
Environmental
L
in interface Environmental
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 int getSaveStatIndex()
Modifiable
getSaveStatIndex
in interface Modifiable
Modifiable.getStatCodes()
,
Modifiable.getStat(String)
,
Modifiable.setStat(String, String)
public java.lang.String[] getStatCodes()
Modifiable
getStatCodes
in interface Modifiable
Modifiable.getStat(String)
,
Modifiable.setStat(String, String)
public boolean isStat(java.lang.String code)
Modifiable
isStat
in interface Modifiable
code
- the name of the field to read.Modifiable.getStatCodes()
protected int getCodeNum(java.lang.String code)
public java.lang.String getStat(java.lang.String code)
Modifiable
getStat
in interface Modifiable
code
- the name of the field to read.Modifiable.getStatCodes()
public void setStat(java.lang.String code, java.lang.String val)
Modifiable
setStat
in interface Modifiable
code
- the name of the field to setval
- the value to set the field toModifiable.getStatCodes()
public boolean sameAs(Environmental E)
Environmental
sameAs
in interface Environmental
E
- the object to compare this one toModifiable.getStatCodes()
,
Modifiable.getStat(String)