Affectable, Behavable, CloseableLockable, CMObject, Contingent, DBIdentifiable, Environmental, Expireable, Modifiable, MsgListener, Physical, PhysicalAgent, PrivateProperty, Readable, Rideable, Rider, StatsAffecting, Tickable, Exit, Boardable, Container, Item, Wearable, java.lang.Cloneable, java.lang.Comparable<CMObject>GenBoardable, StdSiegableBoardablepublic class StdBoardable extends StdPortal implements PrivateProperty, Boardable
Rideable.BasisWearable.CODES| Modifier and Type | Field | Description |
|---|---|---|
protected Area |
area |
|
protected java.lang.String |
head_offTheDeck |
|
protected java.lang.String |
homePortID |
|
protected int |
internalPrice |
|
protected java.lang.String |
noun_word |
|
protected java.lang.String |
ownerName |
|
protected int |
price |
|
protected java.lang.String |
readableText |
NAME_REPL_MARKERS, NAME_REPL_STRINGSidConverterCONTAIN_ANYTHING, CONTAIN_BODIES, CONTAIN_CAGED, CONTAIN_CLOTHES, CONTAIN_COINS, CONTAIN_DAGGERS, CONTAIN_DESCS, CONTAIN_DRINKABLES, CONTAIN_EATABLES, CONTAIN_FOOTWEAR, CONTAIN_KEYS, CONTAIN_LIQUID, CONTAIN_ONEHANDWEAPONS, CONTAIN_OTHERWEAPONS, CONTAIN_RAWMATERIALS, CONTAIN_READABLES, CONTAIN_SCROLLS, CONTAIN_SHIELDS, CONTAIN_SMOKEABLES, CONTAIN_SSCOMPONENTS, CONTAIN_SWORDScapacity, containType, defaultsClosed, defaultsLocked, hasALid, hasALock, isLocked, isOpen, openDelayTicks_name, affectPhyStats, affects, baseGoldValue, basePhyStats, behaviors, cachedImageName, CODES, databaseID, description, destroyed, displayText, dispossessionTime, material, me, miscText, myContainer, myUses, myWornCode, owner, phyStats, properWornBitmap, rawImageName, riding, scripts, secretIdentity, tickCtr, tickStatus, wornLogicalAnd, xtraValuesclosedText, dismountString, doorName, mountString, putString, rideString, stateString, stateSubjectStr, tempExitPairsSTATUS_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_RESETDEFAULT_WORN_CODES, DEFAULT_WORN_DEPENDENCYGRID, DEFAULT_WORN_DESCS, DEFAULT_WORN_ORDER, DEFAULT_WORN_USUAL_NAMES, DEFAULT_WORN_WEIGHT_POINTS, DEFAULT_WORN_WEIGHTS, FILTER_ANY, FILTER_MOBINVONLY, FILTER_ROOMONLY, 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 | Description |
|---|---|
StdBoardable() |
| Modifier and Type | Method | Description |
|---|---|---|
protected boolean |
abilityImbuesMagic() |
|
protected void |
announceToAllAboard(java.lang.String msgStr) |
|
protected void |
announceToNonOuterViewers(MOB mob,
java.lang.String msgStr) |
|
protected void |
announceToOuterViewers(CMMsg msg) |
|
protected void |
announceToOuterViewers(MOB mob,
Environmental target,
Environmental tool,
java.lang.String msgStr) |
|
protected void |
announceToOuterViewers(MOB mob,
java.lang.String msgStr) |
|
protected void |
announceToOuterViewers(java.lang.String msgStr) |
|
protected boolean |
canViewOuterRoom(Room R) |
|
protected void |
cleanMsgForRepeat(CMMsg msg) |
|
protected boolean |
confirmAreaMessage(CMMsg msg,
boolean outerViewersOnly) |
|
CMObject |
copyOf() |
Similar to Cloneable.clone(), but does its best to make sure that
any internal objects to this class are also copyOfed.
|
protected Room |
createFirstRoom() |
|
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.
|
protected void |
destroyThisBoardable() |
|
java.lang.String |
dismountString(Rider R) |
Returns a string grammatically correct for the given rider when
they are dismounting this Rideable
|
void |
dockHere(Room R) |
Designates that this ship is landed and docked in the given
planetary 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.
|
protected Room |
findNearestDocks(Room R) |
|
Area |
getArea() |
Ships are unique in having an Item stand-in for dirt-side access,
as well as an Area object.
|
protected java.lang.String |
getAreaClassType() |
|
Item |
getBoardableItem() |
Ships are unique in having an Item stand-in for port-side access,
as well as an Area object.
|
protected Room |
getDestinationRoom(Room fromRoom) |
|
java.lang.String |
getHomePortID() |
Returns the room ID of the ships home port.
|
Room |
getIsDocked() |
Returns the Room where this ship is docked, or NULL if in space.
|
java.lang.String |
getOwnerName() |
Get the owner of the property, usually a clan name or a player name.
|
int |
getPrice() |
The value of the property in base currency values
|
protected Room |
getRandomOutsideRoom() |
|
java.lang.String |
getTitleID() |
Returns a unique id for this particular title and the purchase-able lot
it represents.
|
protected void |
haveEveryoneLookOutside() |
|
java.lang.String |
ID() |
The CoffeeMud Java Class ID shared by all instances of
this object.
|
boolean |
isProperlyOwned() |
Returns whether the owner actually exists.
|
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 |
keyName() |
For things with doors and locks, this returns the unique string
representing the key code required to unlock/lock it.
|
java.lang.String |
mountString(int commandType,
Rider R) |
Returns a string grammatically correct for the given rider when
they are mounting this Rideable
|
CMObject |
newInstance() |
Returns a new instance of this class.
|
protected boolean |
okAreaMessage(CMMsg msg,
boolean outdoorOnly) |
|
boolean |
okMessage(Environmental myHost,
CMMsg msg) |
The general message event previewer for the object.
|
java.lang.String |
putString(Rider R) |
Returns a string grammatically correct for the given rider when
they are putting something on this Rideable
|
java.lang.String |
readableText() |
For things that are readable, this returns the readable string
for this thing.
|
void |
rename(java.lang.String newName) |
Renames the boardable to something else
|
protected void |
renameDestinationRooms(java.lang.String from,
java.lang.String to) |
|
boolean |
securityCheck(MOB mob) |
Returns whether the given mob has control privileges
for this boardable item
|
protected void |
sendAreaMessage(CMMsg msg,
boolean outerViewersOnly) |
|
protected void |
sendAreaMessage(MOB mob,
CMMsg msg,
boolean outerViewerStatus) |
|
void |
setArea(java.lang.String xml) |
Ships are unique in having an Item stand-in for dirt-side access,
as well as an Area object.
|
void |
setDatabaseID(java.lang.String id) |
Set the unique contextual database ID for this object.
|
void |
setDockableItem(Item dockableItem) |
When a boardable ship area is created, it is bound to an item
that resides in a room when docked, or possibly, always.
|
void |
setExpirationDate(long time) |
If this object expires, it should have a timestamp saying when it expires, in real time.
|
void |
setHomePortID(java.lang.String portID) |
Sets the room ID of the ships home port
|
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 |
setOwnerName(java.lang.String owner) |
Set the owner of the property, usually a clan name or a player name.
|
void |
setPrice(int price) |
set the value of the property in base currency values
|
void |
setReadableText(java.lang.String text) |
For things that are readable, this set the readable string
for this thing.
|
void |
stopTicking() |
If this Item is current Ticking due to its having Behaviors or other properties which
might grant it the ability to Tick, this method will cause that ticking to cease and
desist.
|
boolean |
subjectToWearAndTear() |
Whether the usesRemaining() number above is used to determine the percentage health of
the item.
|
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.
|
protected void |
transferOwnership(MOB buyer,
boolean clanSale) |
|
Room |
unDock(boolean moveToOutside) |
Designates that this ship is no longer docked, and whether it
should also be moved into its na
|
int |
value() |
The default value of the item, represented in the base CoffeeMud currency.
|
addEffect, addNonUninvokableEffect, basePhyStats, delAllEffects, delEffect, eachEffect, effects, fetchEffect, fetchEffect, numEffects, phyStats, setBasePhyStatsaddBehavior, addScript, behaviors, delAllBehaviors, delAllScripts, delBehavior, delScript, eachBehavior, eachScript, fetchBehavior, fetchBehavior, fetchScript, numBehaviors, numScripts, scriptshasALock, isLocked, isOpeninitializeClassamDestroyed, setSavablecanSaveDatabaseID, databaseIDdescription, displayText, image, isGeneric, L, maxRange, minRange, miscTextFormat, Name, rawImage, sameAs, setDescription, setDisplayText, setImage, setNamebaseGoldValue, container, material, owner, rawSecretIdentity, removeFromOwnerContainer, secretIdentity, setBaseValue, setContainer, setMaterial, setOwner, setSecretIdentity, setUsesRemaining, ultimateContainer, usesRemaininggetSaveStatIndex, getStat, getStatCodes, isStat, setStatclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdescription, displayText, nameaffectCharState, affectCharStats, affectPhyStatscanContain, capacity, containTypes, emptyPlease, getContents, getDeepContents, hasALock, hasContent, isInside, isLocked, isOpen, numberOfItems, recursiveWeight, setCapacity, setContainTypesaddBehavior, addEffect, addNonUninvokableEffect, addScript, affectCharState, affectCharStats, affectPhyStats, alreadyWornMsg, amBeingWornProperly, amDestroyed, amWearingAt, baseGoldValue, basePhyStats, behaviors, canSaveDatabaseID, canWear, canWearComplete, cloneFix, compareProperLocations, compareTo, container, databaseID, delAllBehaviors, delAllEffects, delAllScripts, delBehavior, delEffect, delScript, description, description, displayText, eachBehavior, eachEffect, eachScript, effects, fetchBehavior, fetchBehavior, fetchEffect, fetchEffect, fetchScript, fitsOn, getSaveStatIndex, getStat, getStatCodes, getTickStatus, I, image, initializeClass, isGeneric, isStat, L, material, maxRange, minRange, miscTextFormat, name, name, Name, numBehaviors, numEffects, numScripts, owner, phyStats, rawImage, rawLogicalAnd, rawProperLocationBitmap, rawSecretIdentity, rawWornCode, removeFromOwnerContainer, riding, sameAs, scripts, secretIdentity, setBasePhyStats, setBaseValue, setContainer, setDescription, setDisplayText, setImage, setMaterial, setName, setOwner, setRawLogicalAnd, setRawProperLocationBitmap, setRawWornCode, setRiding, setSavable, setSecretIdentity, setStat, setUsesRemaining, tackOns, ultimateContainer, unWear, usesRemaining, wearAt, wearEvenIfImpossible, wearIfPossible, wearIfPossible, whereCantWearaddRider, amRiding, closedText, closeWord, defaultsClosed, defaultsLocked, delRider, displayText, doorName, exitUsage, fetchRider, genericName, getDismountString, getMountString, getPutString, getRideBuddies, getRideString, getStateString, getStateStringSubject, getTemporaryExits, hasADoor, isMobileRideBasis, isReadable, lastRoomUsedFrom, mobileRideBasis, numRiders, openDelayTicks, openWord, recoverPhyStats, rideBasis, riderCapacity, riders, rideString, setDismountString, setDoorsNLocks, setExitParams, setMountString, setOpenDelayTicks, setPutString, setReadable, setRideBasis, setRiderCapacity, setRideString, setStateString, setStateStringSubject, setTemporaryDoorLink, stateString, stateStringSubject, temporaryDoorLink, viewableTextgetTickStatus, nameamBeingWornProperly, amWearingAt, canWear, compareProperLocations, fitsOn, rawLogicalAnd, rawProperLocationBitmap, rawWornCode, setRawLogicalAnd, setRawProperLocationBitmap, setRawWornCode, unWear, wearAt, wearEvenIfImpossible, wearIfPossible, wearIfPossible, whereCantWearprotected java.lang.String readableText
protected java.lang.String ownerName
protected int price
protected int internalPrice
protected Area area
protected java.lang.String homePortID
protected java.lang.String noun_word
protected java.lang.String head_offTheDeck
public java.lang.String ID()
CMObjectpublic CMObject newInstance()
CMObjectnewInstance in interface CMObjectnewInstance in class StdItempublic boolean subjectToWearAndTear()
ItemsubjectToWearAndTear in interface ItemsubjectToWearAndTear in class StdItempublic Item getBoardableItem()
BoardablegetBoardableItem in interface Boardableprotected java.lang.String getAreaClassType()
protected boolean abilityImbuesMagic()
abilityImbuesMagic in class StdItemprotected Room createFirstRoom()
public void setDockableItem(Item dockableItem)
BoardablesetDockableItem in interface BoardabledockableItem - the item that acts as dockable itempublic Area getArea()
Boardablepublic void setArea(java.lang.String xml)
Boardablepublic void dockHere(Room R)
Boardablepublic Room unDock(boolean moveToOutside)
Boardablepublic Room getIsDocked()
BoardablegetIsDocked in interface Boardablepublic java.lang.String getHomePortID()
BoardablegetHomePortID in interface Boardablepublic void setHomePortID(java.lang.String portID)
BoardablesetHomePortID in interface BoardableportID - the ships home portpublic java.lang.String keyName()
CloseableLockablekeyName in interface CloseableLockablekeyName in class StdContainerCloseableLockable.setKeyName(String)public void setDatabaseID(java.lang.String id)
DBIdentifiablesetDatabaseID in interface DBIdentifiablesetDatabaseID in class StdItemid - the unique contextual database ID for this object.DBIdentifiable.canSaveDatabaseID(),
DBIdentifiable.databaseID()public void setKeyName(java.lang.String newKeyName)
CloseableLockablesetKeyName in interface CloseableLockablesetKeyName in class StdContainernewKeyName - the new key codeCloseableLockable.keyName()public java.lang.String readableText()
ReadablereadableText in interface ReadablereadableText in class StdItemReadable.isReadable(),
Readable.setReadable(boolean),
Readable.setReadableText(String)public void setReadableText(java.lang.String text)
ReadablesetReadableText in interface ReadablesetReadableText in class StdItemtext - the readable textReadable.isReadable(),
Readable.setReadable(boolean),
Readable.readableText()public java.lang.String text()
Environmentaltext in interface Environmentaltext in class StdItempublic void setMiscText(java.lang.String newText)
EnvironmentalsetMiscText in interface EnvironmentalsetMiscText in class StdContainernewText - either an open internal text string, or XMLpublic CMObject copyOf()
CMObjectpublic void stopTicking()
ItemstopTicking in interface ItemstopTicking in class StdItemprotected Room getDestinationRoom(Room fromRoom)
getDestinationRoom in class StdPortalprotected void renameDestinationRooms(java.lang.String from,
java.lang.String to)
public void destroy()
Contingentdestroy in interface Contingentdestroy in class StdItempublic int getPrice()
PrivatePropertygetPrice in interface PrivatePropertypublic void setPrice(int price)
PrivatePropertysetPrice in interface PrivatePropertyprice - the price of the propertypublic int value()
Itempublic java.lang.String getOwnerName()
PrivatePropertygetOwnerName in interface PrivatePropertypublic void setOwnerName(java.lang.String owner)
PrivatePropertysetOwnerName in interface PrivatePropertyowner - the name of the owner of the propertypublic long expirationDate()
ExpireableexpirationDate in interface ExpireableexpirationDate in class StdItemExpireable.setExpirationDate(long)public void setExpirationDate(long time)
ExpireablesetExpirationDate in interface ExpireablesetExpirationDate in class StdItemtime - the time stamp when this thing expiresExpireable.expirationDate()public boolean isProperlyOwned()
PrivatePropertyisProperlyOwned in interface PrivatePropertypublic java.lang.String getTitleID()
PrivatePropertygetTitleID in interface PrivatePropertypublic void rename(java.lang.String newName)
Boardablepublic boolean tick(Tickable ticking, int tickID)
Tickabletick in interface Tickabletick in class StdContainerticking - a reference to this Tickable objecttickID - the TICKID_ constant describing this periodic call, as defined in TickableTickable,
ServiceEngine,
TickableGroupprotected void destroyThisBoardable()
protected boolean okAreaMessage(CMMsg msg, boolean outdoorOnly)
public boolean securityCheck(MOB mob)
BoardablesecurityCheck in interface Boardablemob - the mob to checkprotected void announceToOuterViewers(java.lang.String msgStr)
protected boolean canViewOuterRoom(Room R)
protected void announceToOuterViewers(CMMsg msg)
protected void announceToOuterViewers(MOB mob, java.lang.String msgStr)
protected void announceToOuterViewers(MOB mob, Environmental target, Environmental tool, java.lang.String msgStr)
protected void announceToNonOuterViewers(MOB mob, java.lang.String msgStr)
protected void announceToAllAboard(java.lang.String msgStr)
protected void sendAreaMessage(CMMsg msg, boolean outerViewersOnly)
protected boolean confirmAreaMessage(CMMsg msg, boolean outerViewersOnly)
protected void cleanMsgForRepeat(CMMsg msg)
protected void haveEveryoneLookOutside()
public boolean okMessage(Environmental myHost, CMMsg msg)
MsgListenerokMessage in interface MsgListenerokMessage in class StdPortalmyHost - either the initiator of the event, or the host of this objectmsg - the CMMsg that wants to be executedCMMsg,
CMMsg.source()public void executeMsg(Environmental myHost, CMMsg msg)
MsgListenerexecuteMsg in interface MsgListenerexecuteMsg in class StdPortalmyHost - either the initiator of the event, or the host of this objectmsg - the CMMsg that needs to be executedCMMsgprotected void transferOwnership(MOB buyer, boolean clanSale)
protected Room getRandomOutsideRoom()
public java.lang.String putString(Rider R)
RideableputString in interface RideableputString in class StdPortalR - The rider object to make grammatically correct.Rider,
Rideable.setPutString(String),
Rideable.getPutString()public java.lang.String mountString(int commandType,
Rider R)
RideablemountString in interface RideablemountString in class StdPortalcommandType - one of the RIDEABLE_ constants as a typeR - The rider object to make grammatically correct.Rider,
Rideable.setMountString(String),
Rideable.getMountString()public java.lang.String dismountString(Rider R)
RideabledismountString in interface RideabledismountString in class StdPortalR - The rider object to make grammatically correct.Rider,
Rideable.setDismountString(String),
Rideable.getDismountString()public boolean isSavable()
ContingentisSavable in interface ContingentisSavable in class StdItem