|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.planet_ink.coffee_mud.Items.Basic.StdItem
com.planet_ink.coffee_mud.Items.Basic.StdContainer
com.planet_ink.coffee_mud.Items.Basic.StdPortal
public class StdPortal
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface com.planet_ink.coffee_mud.Items.interfaces.Wearable |
|---|
Wearable.CODES |
| Field Summary | |
|---|---|
protected java.lang.String |
closedText
|
protected java.lang.String |
doorName
|
| Fields inherited from class com.planet_ink.coffee_mud.Items.Basic.StdContainer |
|---|
capacity, containType, hasALid, hasALock, isLocked, isOpen |
| Fields inherited from class com.planet_ink.coffee_mud.Items.Basic.StdItem |
|---|
affects, baseGoldValue, basePhyStats, behaviors, cachedImageName, CODES, databaseID, description, destroyed, displayText, dispossessionTime, material, miscText, myContainer, myUses, myWornCode, name, owner, phyStats, properWornBitmap, rawImageName, riding, scripts, secretIdentity, tickStatus, wornLogicalAnd, xtraValues |
| Fields inherited from interface com.planet_ink.coffee_mud.core.interfaces.Rideable |
|---|
RIDEABLE_AIR, RIDEABLE_DESCS, RIDEABLE_ENTERIN, RIDEABLE_LADDER, RIDEABLE_LAND, RIDEABLE_SIT, RIDEABLE_SLEEP, RIDEABLE_TABLE, RIDEABLE_WAGON, RIDEABLE_WATER |
| Fields inherited from interface com.planet_ink.coffee_mud.Items.interfaces.Container |
|---|
CONTAIN_ANYTHING, CONTAIN_BODIES, CONTAIN_CAGED, CONTAIN_CLOTHES, CONTAIN_COINS, CONTAIN_DAGGERS, CONTAIN_DESCS, CONTAIN_DRINKABLES, CONTAIN_FOOTWEAR, CONTAIN_KEYS, CONTAIN_LIQUID, CONTAIN_ONEHANDWEAPONS, CONTAIN_OTHERWEAPONS, CONTAIN_READABLES, CONTAIN_SCROLLS, CONTAIN_SMOKEABLES, CONTAIN_SSCOMPONENTS, CONTAIN_SWORDS |
| Fields inherited from interface com.planet_ink.coffee_mud.Items.interfaces.Wearable |
|---|
DEFAULT_WORN_CODES, DEFAULT_WORN_DEPENDENCYGRID, DEFAULT_WORN_DESCS, DEFAULT_WORN_ORDER, DEFAULT_WORN_WEIGHT_POINTS, DEFAULT_WORN_WEIGHTS, FILTER_ANY, FILTER_UNWORNONLY, FILTER_WORNONLY, HIGHEST_WORN_CODE, IN_INVENTORY, WORN_ABOUT_BODY, WORN_ARMS, WORN_BACK, WORN_EARS, WORN_EYES, WORN_FEET, WORN_FLOATING_NEARBY, WORN_HANDS, WORN_HEAD, WORN_HELD, WORN_LEFT_FINGER, WORN_LEFT_WRIST, WORN_LEGS, WORN_MOUTH, WORN_NECK, WORN_RIGHT_FINGER, WORN_RIGHT_WRIST, WORN_TORSO, WORN_WAIST, WORN_WIELD |
| Constructor Summary | |
|---|---|
StdPortal()
|
|
| Method Summary | |
|---|---|
void |
addRider(Rider mob)
Adds a new Rider to this Rideable. |
boolean |
amRiding(Rider mob)
Returns whether Rider is currently mounted on this Rideable |
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. |
void |
delRider(Rider mob)
Removes a Rider from this Rideable. |
java.lang.String |
dismountString(Rider R)
Returns a string grammatically correct for the given rider when they are dismounting this Rideable |
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. |
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. |
Rider |
fetchRider(int which)
Returns a particular Rider mounted on this Rideable. |
protected Room |
getDestinationRoom()
|
java.util.Set<MOB> |
getRideBuddies(java.util.Set<MOB> list)
Adds all of the MOB Riders on this Rideable to the given HashSet and returns it |
boolean |
hasADoor()
Returns whether this exit has a door, and must be opened before being used. |
java.lang.String |
ID()
The CoffeeMud Java Class ID shared by all instances of this object. |
boolean |
isMobileRideBasis()
Whether the type of rideable is mobile. |
boolean |
isReadable()
Returns whether this thing is readable when the player uses the READ command and targets it. |
boolean |
mobileRideBasis()
Whether this Rideable moves when the Rider wants to move it. |
java.lang.String |
mountString(int commandType,
Rider R)
Returns a string grammatically correct for the given rider when they are mounting this Rideable |
int |
numRiders()
Returns the number of riders currently mounted on this Rideable |
boolean |
okMessage(Environmental myHost,
CMMsg msg)
The general message event previewer for the object. |
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 |
putString(Rider R)
Returns a string grammatically correct for the given rider when they are putting something on this Rideable |
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. |
int |
rideBasis()
The type of rideable object this is. |
int |
riderCapacity()
The number of Riders which may ride upon this Rideable |
java.util.Iterator<Rider> |
riders()
Returns an iterator of the riders on this rideable |
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 |
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 thing is readable when the player uses the READ command and targets it. |
void |
setRideBasis(int basis)
Sets type of rideable object this is. |
void |
setRiderCapacity(int newCapacity)
Sets the number of Riders which may ride upon this Rideable |
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 |
stateString(Rider R)
Returns a string grammatically correct for the given rider when they are mounted on this Rideable |
java.lang.String |
stateStringSubject(Rider R)
Returns a string grammatically correct for this Rideable when Riders are mounted |
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.StringBuilder |
viewableText(MOB mob,
Room myRoom)
Returns the modified and qualified player-viewed description of this exit. |
| Methods inherited from class com.planet_ink.coffee_mud.Items.Basic.StdContainer |
|---|
canContain, capacity, containTypes, emptyPlease, getContents, hasALid, hasALock, isInside, isLocked, isOpen, keyName, setCapacity, setContainTypes, setKeyName, setLidsNLocks, setMiscText, tick |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.planet_ink.coffee_mud.Exits.interfaces.Exit |
|---|
hasALock, isLocked, isOpen, keyName, setKeyName |
| Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.Behavable |
|---|
addBehavior, addScript, behaviors, delBehavior, delScript, fetchBehavior, fetchBehavior, fetchScript, numBehaviors, numScripts, scripts |
| Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.Readable |
|---|
readableText, setReadableText |
| Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.Environmental |
|---|
description, expirationDate, image, isGeneric, maxRange, minRange, miscTextFormat, name, Name, rawImage, sameAs, 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.StatsAffecting |
|---|
affectCharState, affectCharStats, affectPhyStats |
| Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.Contingent |
|---|
amDestroyed, destroy, isSavable, setSavable |
| Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.CMObject |
|---|
copyOf, initializeClass, newInstance |
| Methods inherited from interface java.lang.Comparable |
|---|
compareTo |
| Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.Modifiable |
|---|
getSaveStatIndex, getStat, getStatCodes, isStat, setStat |
| Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.Affectable |
|---|
addEffect, addNonUninvokableEffect, basePhyStats, delEffect, effects, fetchEffect, fetchEffect, numEffects, phyStats, setBasePhyStats |
| Methods inherited from interface com.planet_ink.coffee_mud.Items.interfaces.Item |
|---|
baseGoldValue, container, material, numberOfItems, owner, rawSecretIdentity, recursiveWeight, removeFromOwnerContainer, secretIdentity, setBaseValue, setContainer, setMaterial, setOwner, setSecretIdentity, setUsesRemaining, stopTicking, subjectToWearAndTear, ultimateContainer, usesRemaining, value |
| Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.Rider |
|---|
riding, setRiding |
| Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.DBIdentifiable |
|---|
canSaveDatabaseID, databaseID, setDatabaseID |
| Methods inherited from interface com.planet_ink.coffee_mud.Items.interfaces.Wearable |
|---|
amWearingAt, canWear, compareProperLocations, fitsOn, rawLogicalAnd, rawProperLocationBitmap, rawWornCode, setRawLogicalAnd, setRawProperLocationBitmap, setRawWornCode, unWear, wearAt, wearEvenIfImpossible, wearIfPossible, wearIfPossible, whereCantWear |
| Field Detail |
|---|
protected java.lang.String doorName
protected java.lang.String closedText
| Constructor Detail |
|---|
public StdPortal()
| Method Detail |
|---|
public java.lang.String ID()
CMObject
ID in interface CMObjectID in class StdContainerpublic boolean isMobileRideBasis()
Rideable
isMobileRideBasis in interface RideableRideablepublic int rideBasis()
Rideable
rideBasis in interface RideableRideablepublic void setRideBasis(int basis)
Rideable
setRideBasis in interface Rideablebasis - the RIDEABLE_* constant describing how this is riddenRideablepublic int riderCapacity()
Rideable
riderCapacity in interface RideableRiderpublic void setRiderCapacity(int newCapacity)
Rideable
setRiderCapacity in interface RideablenewCapacity - the maximum ridersRiderpublic int numRiders()
Rideable
numRiders in interface RideableRiderpublic java.util.Iterator<Rider> riders()
Rideable
riders in interface RideableRiderpublic Rider fetchRider(int which)
Rideable
fetchRider in interface Rideablewhich - which rider to detch
Rider,
Rideable,
Rideable.numRiders()public void addRider(Rider mob)
Rideable
addRider in interface Rideablemob - Rider object, either an item or a mobRider,
Rideablepublic void delRider(Rider mob)
Rideable
delRider in interface Rideablemob - Rider object, either an item or a mobRider,
Rideablepublic void recoverPhyStats()
Affectable
recoverPhyStats in interface AffectablerecoverPhyStats in class StdItemAffectable.basePhyStats(),
Affectable.phyStats(),
Affectable.addEffect(Ability),
Behavable.addBehavior(Behavior),
PhyStatspublic java.util.Set<MOB> getRideBuddies(java.util.Set<MOB> list)
Rideable
getRideBuddies in interface Rideablelist - the hashset into which to add all the mob riders
public boolean mobileRideBasis()
Rideable
mobileRideBasis in interface RideableRideable.rideBasis()public java.lang.String stateString(Rider R)
Rideable
stateString in interface RideableR - The rider object to make grammatically correct.
Rider,
Rideablepublic java.lang.String putString(Rider R)
Rideable
putString in interface RideableR - The rider object to make grammatically correct.
Rider,
Rideable
public java.lang.String mountString(int commandType,
Rider R)
Rideable
mountString in interface RideableR - The rider object to make grammatically correct.
Rider,
Rideablepublic java.lang.String dismountString(Rider R)
Rideable
dismountString in interface RideableR - The rider object to make grammatically correct.
Rider,
Rideablepublic java.lang.String stateStringSubject(Rider R)
Rideable
stateStringSubject in interface RideableR - The rider object to make grammatically correct.
Rider,
Rideablepublic short exitUsage(short change)
Exit
exitUsage in interface Exitchange - 0 to make no change, or a positive or negative number
public java.lang.String displayText()
Environmental
displayText in interface EnvironmentaldisplayText in class StdItempublic boolean amRiding(Rider mob)
Rideable
amRiding in interface Rideablemob - the Rider to check this Rideable for
Rider,
Rideable
public boolean okMessage(Environmental myHost,
CMMsg msg)
MsgListener
okMessage in interface MsgListenerokMessage in class StdContainermyHost - either the initiator of the event, or the host of this objectmsg - the CMMsg that wants to be executed
CMMsg,
CMMsg.source()protected Room getDestinationRoom()
public void executeMsg(Environmental myHost,
CMMsg msg)
MsgListener
executeMsg in interface MsgListenerexecuteMsg in class StdContainermyHost - either the initiator of the event, or the host of this objectmsg - the CMMsg that needs to be executedCMMsgpublic boolean hasADoor()
Exit
hasADoor in interface ExitExit.isOpen(),
Exit.isLocked()public boolean defaultsLocked()
Exit
defaultsLocked in interface ExitExit.hasADoor(),
Exit.defaultsClosed()public boolean defaultsClosed()
Exit
defaultsClosed in interface ExitExit.hasADoor(),
Exit.defaultsLocked()
public void setDoorsNLocks(boolean hasADoor,
boolean isOpen,
boolean defaultsClosed,
boolean hasALock,
boolean isLocked,
boolean defaultsLocked)
Exit
setDoorsNLocks in interface ExithasADoor - 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.Exit.isOpen(),
Exit.isLocked(),
Exit.hasADoor(),
Exit.hasALock(),
Exit.defaultsClosed(),
Exit.defaultsLocked()public boolean isReadable()
Readable
isReadable in interface ReadableisReadable in class StdItemReadable.readableText(),
Readable.setReadable(boolean),
Readable.setReadableText(String)public void setReadable(boolean isTrue)
Readable
setReadable in interface ReadablesetReadable in class StdItemisTrue - true if the thing is readable, and false otherwiseReadable.readableText(),
Readable.isReadable(),
Readable.setReadableText(String)
public java.lang.StringBuilder viewableText(MOB mob,
Room myRoom)
Exit
viewableText in interface Exitmob - the mob doing the viewingmyRoom - the room from which the mob sees the exit
public java.lang.String doorName()
Exit
doorName in interface ExitExit.setExitParams(String, String, String, String)public java.lang.String closedText()
Exit
closedText in interface ExitExit.hasADoor(),
Exit.defaultsClosed()public java.lang.String closeWord()
Exit
closeWord in interface ExitExit.openWord(),
Exit.hasADoor(),
Exit.defaultsClosed(),
Exit.setExitParams(String, String, String, String)public java.lang.String openWord()
Exit
openWord in interface ExitExit.closeWord(),
Exit.hasADoor(),
Exit.defaultsClosed(),
Exit.setExitParams(String, String, String, String)
public void setExitParams(java.lang.String newDoorName,
java.lang.String newCloseWord,
java.lang.String newOpenWord,
java.lang.String newClosedText)
Exit
setExitParams in interface ExitnewDoorName - 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 int openDelayTicks()
Exit
openDelayTicks in interface ExitExit.setOpenDelayTicks(int),
Tickable.TICKID_EXIT_REOPENpublic void setOpenDelayTicks(int numTicks)
Exit
setOpenDelayTicks in interface ExitnumTicks - the number of ticks this exit will remain openExit.openDelayTicks(),
Tickable.TICKID_EXIT_REOPENpublic java.lang.String temporaryDoorLink()
Exit
temporaryDoorLink in interface ExitExit.setTemporaryDoorLink(String)public void setTemporaryDoorLink(java.lang.String link)
Exit
setTemporaryDoorLink in interface Exitlink - the room id of the room that will be linked in laterExit.temporaryDoorLink()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||