Affectable
, Behavable
, CloseableLockable
, CMObject
, Contingent
, Environmental
, Expireable
, Modifiable
, MsgListener
, Physical
, PhysicalAgent
, Readable
, StatsAffecting
, Tickable
, Exit
, java.lang.Cloneable
, java.lang.Comparable<CMObject>
GenAirLock
, GenCurtain
, GenDoor
, Impassable
public class GenExit extends StdExit implements Modifiable
Modifier and Type | Field | Description |
---|---|---|
protected java.lang.String |
closedText |
|
protected java.lang.String |
closeName |
|
protected java.lang.String |
description |
|
protected java.lang.String |
displayText |
|
protected boolean |
doorDefaultsClosed |
|
protected boolean |
doorDefaultsLocked |
|
protected java.lang.String |
doorName |
|
protected boolean |
hasADoor |
|
protected boolean |
hasALock |
|
protected boolean |
isReadable |
|
protected java.lang.String |
keyName |
|
protected java.lang.String |
name |
|
protected int |
openDelayTicks |
|
protected java.lang.String |
openName |
idConverter
affectPhyStats, affects, amDestroyed, basePhyStats, behaviors, cachedImageName, isLocked, isOpen, lastRoomID, me, miscText, phyStats, rawImageName, scripts, usage
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 |
---|---|
GenExit() |
Modifier and Type | Method | Description |
---|---|---|
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.
|
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.
|
java.lang.String |
description() |
The basic description of this object, as shown when the item is directly LOOKed at.
|
java.lang.String |
displayText() |
Gets the raw string used to show what this object looks like in the room.
|
java.lang.String |
doorName() |
Returns the short name of this door, e.g.
|
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.
|
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.
|
boolean |
isGeneric() |
Whether the fields of this item are set in code, or set by builders.
|
boolean |
isReadable() |
Returns whether this thing is readable when the player uses the READ command
and targets it.
|
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 |
Name() |
The raw unmodified name of this object as stored in the database.
|
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.
|
java.lang.String |
readableText() |
For things that are readable, this returns the readable string
for this thing.
|
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 |
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 |
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 newText) |
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 |
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.
|
copyOf, initializeClass, name, newInstance
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addBehavior, addEffect, addNonUninvokableEffect, addScript, affectCharState, affectCharStats, affectPhyStats, amDestroyed, basePhyStats, behaviors, cloneFix, closeWordPastTense, compareTo, copyOf, delAllBehaviors, delAllEffects, delAllScripts, delBehavior, delEffect, delScript, description, destroy, displayText, eachBehavior, eachEffect, eachScript, effects, executeMsg, exitUsage, expirationDate, fetchBehavior, fetchBehavior, fetchEffect, fetchEffect, fetchScript, genericName, getTickStatus, image, initializeClass, isLocked, isOpen, isSavable, L, lastRoomUsedFrom, maxRange, minRange, miscTextFormat, name, name, newInstance, numBehaviors, numEffects, numScripts, okMessage, openWordPastTense, phyStats, rawImage, recoverPhyStats, scripts, setBasePhyStats, setExpirationDate, setImage, setSavable, tick, viewableText
protected java.lang.String name
protected java.lang.String description
protected java.lang.String displayText
protected java.lang.String closedText
protected java.lang.String doorName
protected java.lang.String closeName
protected java.lang.String openName
protected boolean hasADoor
protected boolean doorDefaultsClosed
protected boolean hasALock
protected boolean doorDefaultsLocked
protected boolean isReadable
protected int openDelayTicks
protected java.lang.String keyName
public java.lang.String ID()
CMObject
public boolean isGeneric()
Environmental
isGeneric
in interface Environmental
isGeneric
in class StdExit
Environmental.text()
public java.lang.String text()
Environmental
text
in interface Environmental
text
in class StdExit
public void setMiscText(java.lang.String newText)
Environmental
setMiscText
in interface Environmental
setMiscText
in class StdExit
newText
- either an open internal text string, or XMLpublic java.lang.String Name()
Environmental
Name
in interface Environmental
Name
in class StdExit
Tickable.name()
public void setName(java.lang.String newName)
Environmental
setName
in interface Environmental
setName
in class StdExit
newName
- the raw base name of this object on the map.Environmental.Name()
public java.lang.String displayText()
Environmental
displayText
in interface Environmental
displayText
in class StdExit
public void setDisplayText(java.lang.String newDisplayText)
Environmental
setDisplayText
in interface Environmental
setDisplayText
in class StdExit
newDisplayText
- the string describing how this object looks in the roompublic java.lang.String description()
Environmental
description
in interface Environmental
description
in class StdExit
public void setDescription(java.lang.String newDescription)
Environmental
setDescription
in interface Environmental
setDescription
in class StdExit
newDescription
- the basic detail description of this objectpublic boolean hasADoor()
CloseableLockable
hasADoor
in interface CloseableLockable
hasADoor
in class StdExit
CloseableLockable.isOpen()
,
CloseableLockable.isLocked()
public boolean hasALock()
CloseableLockable
hasALock
in interface CloseableLockable
hasALock
in class StdExit
CloseableLockable.isOpen()
,
CloseableLockable.isLocked()
,
CloseableLockable.hasADoor()
public boolean defaultsLocked()
CloseableLockable
defaultsLocked
in interface CloseableLockable
defaultsLocked
in class StdExit
CloseableLockable.hasADoor()
,
CloseableLockable.defaultsClosed()
public boolean defaultsClosed()
CloseableLockable
defaultsClosed
in interface CloseableLockable
defaultsClosed
in class StdExit
CloseableLockable.hasADoor()
,
CloseableLockable.defaultsLocked()
public void setDoorsNLocks(boolean newHasADoor, boolean newIsOpen, boolean newDefaultsClosed, boolean newHasALock, boolean newIsLocked, boolean newDefaultsLocked)
CloseableLockable
setDoorsNLocks
in interface CloseableLockable
setDoorsNLocks
in class StdExit
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 boolean isReadable()
Readable
isReadable
in interface Readable
isReadable
in class StdExit
Readable.readableText()
,
Readable.setReadable(boolean)
,
Readable.setReadableText(String)
public java.lang.String doorName()
Exit
doorName
in interface Exit
doorName
in class StdExit
Exit.setExitParams(String, String, String, String)
public java.lang.String closeWord()
Exit
closeWord
in interface Exit
closeWord
in class StdExit
Exit.openWord()
,
CloseableLockable.hasADoor()
,
CloseableLockable.defaultsClosed()
,
Exit.setExitParams(String, String, String, String)
public java.lang.String openWord()
Exit
openWord
in interface Exit
openWord
in class StdExit
Exit.closeWord()
,
CloseableLockable.hasADoor()
,
CloseableLockable.defaultsClosed()
,
Exit.setExitParams(String, String, String, String)
public java.lang.String closedText()
Exit
closedText
in interface Exit
closedText
in class StdExit
CloseableLockable.hasADoor()
,
CloseableLockable.defaultsClosed()
public void setExitParams(java.lang.String newDoorName, java.lang.String newCloseWord, java.lang.String newOpenWord, java.lang.String newClosedText)
Exit
setExitParams
in interface Exit
setExitParams
in class StdExit
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 readableText()
Readable
readableText
in interface Readable
readableText
in class StdExit
Readable.isReadable()
,
Readable.setReadable(boolean)
,
Readable.setReadableText(String)
public void setReadable(boolean isTrue)
Readable
setReadable
in interface Readable
setReadable
in class StdExit
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
setReadableText
in class StdExit
text
- the readable textReadable.isReadable()
,
Readable.setReadable(boolean)
,
Readable.readableText()
public java.lang.String keyName()
CloseableLockable
keyName
in interface CloseableLockable
keyName
in class StdExit
CloseableLockable.setKeyName(String)
public void setKeyName(java.lang.String newKeyName)
CloseableLockable
setKeyName
in interface CloseableLockable
setKeyName
in class StdExit
newKeyName
- the new key codeCloseableLockable.keyName()
public int openDelayTicks()
CloseableLockable
openDelayTicks
in interface CloseableLockable
openDelayTicks
in class StdExit
CloseableLockable.setOpenDelayTicks(int)
,
Tickable.TICKID_EXIT_REOPEN
public void setOpenDelayTicks(int numTicks)
CloseableLockable
setOpenDelayTicks
in interface CloseableLockable
setOpenDelayTicks
in class StdExit
numTicks
- the number of ticks this will remain openCloseableLockable.openDelayTicks()
,
Tickable.TICKID_EXIT_REOPEN
public java.lang.String temporaryDoorLink()
Exit
temporaryDoorLink
in interface Exit
temporaryDoorLink
in class StdExit
Exit.setTemporaryDoorLink(String)
public void setTemporaryDoorLink(java.lang.String link)
Exit
setTemporaryDoorLink
in interface Exit
setTemporaryDoorLink
in class StdExit
link
- the room id of the room that will be linked in laterExit.temporaryDoorLink()
public int getSaveStatIndex()
Modifiable
getSaveStatIndex
in interface Modifiable
getSaveStatIndex
in class StdExit
Modifiable.getStatCodes()
,
Modifiable.getStat(String)
,
Modifiable.setStat(String, String)
public java.lang.String[] getStatCodes()
Modifiable
getStatCodes
in interface Modifiable
getStatCodes
in class StdExit
Modifiable.getStat(String)
,
Modifiable.setStat(String, String)
public boolean isStat(java.lang.String code)
Modifiable
isStat
in interface Modifiable
isStat
in class StdExit
code
- the name of the field to read.Modifiable.getStatCodes()
protected int getCodeNum(java.lang.String code)
getCodeNum
in class StdExit
public java.lang.String getStat(java.lang.String code)
Modifiable
getStat
in interface Modifiable
getStat
in class StdExit
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
setStat
in class StdExit
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
sameAs
in class StdExit
E
- the object to compare this one toModifiable.getStatCodes()
,
Modifiable.getStat(String)