|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Exit
An interface for all mechanisms or pathways through which a mob may travel when trying to get from one Room to another.
Room| Field Summary |
|---|
| Method Summary | |
|---|---|
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 the door defaults in a closed state. |
boolean |
defaultsLocked()
For exits with a door and lock, this returns whether the door defaults in a closed and locked state. |
java.lang.String |
doorName()
Returns the short name of this door, e.g. |
short |
exitUsage(short change)
Both reads and optionally modifies an internal reference counter for this exit. |
boolean |
hasADoor()
Returns whether this exit has a door, and must be opened before being used. |
boolean |
hasALock()
Returns whether this exit has a lock on its door, and, if locked, must be unlocked before being used. |
boolean |
isLocked()
Returns whether this exit is LOCKED, and must be unlocked before being used. |
boolean |
isOpen()
Returns whether this exit is OPEN and may be travelled through |
boolean |
isReadable()
Returns whether this exit is readable when the player uses the READ command and targets it. |
java.lang.String |
keyName()
For Exits with doors and locks, this returns the unique string representing the key code required to unlock/lock the door. |
int |
openDelayTicks()
Returns the number of ticks that this exit remains open when a mob or player changes it from a closed to an open state, and the door 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 Exits that are readable, this returns the readable string for this exit. |
void |
setDoorsNLocks(boolean hasADoor,
boolean isOpen,
boolean defaultsClosed,
boolean hasALock,
boolean isLocked,
boolean defaultsLocked)
Modifies the various door/lock settings for this exit. |
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 keyName)
For Exits with doors and locks, this sets the unique string representing the key code required to unlock/lock the door. |
void |
setOpenDelayTicks(int numTicks)
Sets the number of ticks that this exit will remain open when a mob or player changes it from a closed to an open state, and the door defaults in a closed state. |
void |
setReadable(boolean isTrue)
Returns whether this exit is readable when the player uses the READ command and targets it. |
void |
setReadableText(java.lang.String text)
For Exits that are readable, this set the readable string for this exit. |
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.StringBuffer |
viewableText(MOB mob,
Room myRoom)
Returns the modified and qualified player-viewed description of this exit. |
| Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.Environmental |
|---|
addEffect, addNonUninvokableEffect, amDestroyed, baseEnvStats, delEffect, description, destroy, displayText, envStats, expirationDate, fetchEffect, fetchEffect, image, isGeneric, maxRange, minRange, miscTextFormat, name, Name, numEffects, rawImage, recoverEnvStats, sameAs, savable, setBaseEnvStats, setDescription, setDisplayText, setExpirationDate, setImage, setMiscText, setName, text |
| Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.Tickable |
|---|
getTickStatus, tick |
| Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.CMObject |
|---|
copyOf, ID, initializeClass, newInstance |
| Methods inherited from interface java.lang.Comparable |
|---|
compareTo |
| Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.StatsAffecting |
|---|
affectCharState, affectCharStats, affectEnvStats |
| Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.MsgListener |
|---|
executeMsg, okMessage |
| Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.CMModifiable |
|---|
getSaveStatIndex, getStat, getStatCodes, isStat, setStat |
| Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.Behavable |
|---|
addBehavior, addScript, delBehavior, delScript, fetchBehavior, fetchBehavior, fetchScript, numBehaviors, numScripts |
| Method Detail |
|---|
boolean isOpen()
boolean isLocked()
hasADoor(),
hasALock()boolean hasADoor()
isOpen(),
isLocked()boolean hasALock()
isOpen(),
isLocked(),
hasADoor()boolean defaultsLocked()
hasADoor(),
defaultsClosed()boolean defaultsClosed()
hasADoor(),
defaultsLocked()
void setDoorsNLocks(boolean hasADoor,
boolean isOpen,
boolean defaultsClosed,
boolean hasALock,
boolean isLocked,
boolean defaultsLocked)
hasADoor - whether this exit has a doorisOpen - whether this exit is open for traveldefaultsClosed - whether this exit defaults closedhasALock - whether this exit has a door lockisLocked - whether this exit is presently lockeddefaultsLocked - whether this exit defaults closed and locked.isOpen(),
isLocked(),
hasADoor(),
hasALock(),
defaultsClosed(),
defaultsLocked()java.lang.String keyName()
setKeyName(String)void setKeyName(java.lang.String keyName)
keyName - the new key codekeyName()java.lang.String readableText()
isReadable(),
setReadable(boolean),
setReadableText(String)boolean isReadable()
readableText(),
setReadable(boolean),
setReadableText(String)void setReadable(boolean isTrue)
isTrue - true if the exit is readable, and false otherwisereadableText(),
isReadable(),
setReadableText(String)void setReadableText(java.lang.String text)
text - the readable textisReadable(),
setReadable(boolean),
readableText()short exitUsage(short change)
change - 0 to make no change, or a positive or negative number
java.lang.StringBuffer viewableText(MOB mob,
Room myRoom)
mob - the mob doing the viewingmyRoom - the room from which the mob sees the exit
java.lang.String doorName()
setExitParams(String, String, String, String)java.lang.String closeWord()
openWord(),
hasADoor(),
defaultsClosed(),
setExitParams(String, String, String, String)java.lang.String openWord()
closeWord(),
hasADoor(),
defaultsClosed(),
setExitParams(String, String, String, String)java.lang.String closedText()
hasADoor(),
defaultsClosed()
void setExitParams(java.lang.String newDoorName,
java.lang.String newCloseWord,
java.lang.String newOpenWord,
java.lang.String newClosedText)
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 statecloseWord(),
openWord(),
doorName(),
closedText()int openDelayTicks()
setOpenDelayTicks(int),
Tickable.TICKID_EXIT_REOPENvoid setOpenDelayTicks(int numTicks)
numTicks - the number of ticks this exit will remain openopenDelayTicks(),
Tickable.TICKID_EXIT_REOPENjava.lang.String temporaryDoorLink()
setTemporaryDoorLink(String)void setTemporaryDoorLink(java.lang.String link)
link - the room id of the room that will be linked in latertemporaryDoorLink()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||