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
, StdSiegableBoardable
public class StdBoardable extends StdPortal implements PrivateProperty, Boardable
Rideable.Basis
Wearable.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_STRINGS
idConverter
CONTAIN_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_SWORDS
capacity, 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, xtraValues
closedText, dismountString, doorName, mountString, putString, rideString, stateString, stateSubjectStr, tempExitPairs
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
DEFAULT_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, setBasePhyStats
addBehavior, addScript, behaviors, delAllBehaviors, delAllScripts, delBehavior, delScript, eachBehavior, eachScript, fetchBehavior, fetchBehavior, fetchScript, numBehaviors, numScripts, scripts
hasALock, isLocked, isOpen
initializeClass
amDestroyed, setSavable
canSaveDatabaseID, databaseID
description, displayText, image, isGeneric, L, maxRange, minRange, miscTextFormat, Name, rawImage, sameAs, setDescription, setDisplayText, setImage, setName
baseGoldValue, container, material, owner, rawSecretIdentity, removeFromOwnerContainer, secretIdentity, setBaseValue, setContainer, setMaterial, setOwner, setSecretIdentity, setUsesRemaining, ultimateContainer, usesRemaining
getSaveStatIndex, getStat, getStatCodes, isStat, setStat
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
description, displayText, name
affectCharState, affectCharStats, affectPhyStats
canContain, capacity, containTypes, emptyPlease, getContents, getDeepContents, hasALock, hasContent, isInside, isLocked, isOpen, numberOfItems, recursiveWeight, setCapacity, setContainTypes
addBehavior, 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, whereCantWear
addRider, 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, viewableText
getTickStatus, name
amBeingWornProperly, amWearingAt, canWear, compareProperLocations, fitsOn, rawLogicalAnd, rawProperLocationBitmap, rawWornCode, setRawLogicalAnd, setRawProperLocationBitmap, setRawWornCode, unWear, wearAt, wearEvenIfImpossible, wearIfPossible, wearIfPossible, whereCantWear
protected 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()
CMObject
public CMObject newInstance()
CMObject
newInstance
in interface CMObject
newInstance
in class StdItem
public boolean subjectToWearAndTear()
Item
subjectToWearAndTear
in interface Item
subjectToWearAndTear
in class StdItem
public Item getBoardableItem()
Boardable
getBoardableItem
in interface Boardable
protected java.lang.String getAreaClassType()
protected boolean abilityImbuesMagic()
abilityImbuesMagic
in class StdItem
protected Room createFirstRoom()
public void setDockableItem(Item dockableItem)
Boardable
setDockableItem
in interface Boardable
dockableItem
- the item that acts as dockable itempublic Area getArea()
Boardable
public void setArea(java.lang.String xml)
Boardable
public void dockHere(Room R)
Boardable
public Room unDock(boolean moveToOutside)
Boardable
public Room getIsDocked()
Boardable
getIsDocked
in interface Boardable
public java.lang.String getHomePortID()
Boardable
getHomePortID
in interface Boardable
public void setHomePortID(java.lang.String portID)
Boardable
setHomePortID
in interface Boardable
portID
- the ships home portpublic java.lang.String keyName()
CloseableLockable
keyName
in interface CloseableLockable
keyName
in class StdContainer
CloseableLockable.setKeyName(String)
public void setDatabaseID(java.lang.String id)
DBIdentifiable
setDatabaseID
in interface DBIdentifiable
setDatabaseID
in class StdItem
id
- the unique contextual database ID for this object.DBIdentifiable.canSaveDatabaseID()
,
DBIdentifiable.databaseID()
public void setKeyName(java.lang.String newKeyName)
CloseableLockable
setKeyName
in interface CloseableLockable
setKeyName
in class StdContainer
newKeyName
- the new key codeCloseableLockable.keyName()
public java.lang.String readableText()
Readable
readableText
in interface Readable
readableText
in class StdItem
Readable.isReadable()
,
Readable.setReadable(boolean)
,
Readable.setReadableText(String)
public void setReadableText(java.lang.String text)
Readable
setReadableText
in interface Readable
setReadableText
in class StdItem
text
- the readable textReadable.isReadable()
,
Readable.setReadable(boolean)
,
Readable.readableText()
public java.lang.String text()
Environmental
text
in interface Environmental
text
in class StdItem
public void setMiscText(java.lang.String newText)
Environmental
setMiscText
in interface Environmental
setMiscText
in class StdContainer
newText
- either an open internal text string, or XMLpublic CMObject copyOf()
CMObject
public void stopTicking()
Item
stopTicking
in interface Item
stopTicking
in class StdItem
protected Room getDestinationRoom(Room fromRoom)
getDestinationRoom
in class StdPortal
protected void renameDestinationRooms(java.lang.String from, java.lang.String to)
public void destroy()
Contingent
destroy
in interface Contingent
destroy
in class StdItem
public int getPrice()
PrivateProperty
getPrice
in interface PrivateProperty
public void setPrice(int price)
PrivateProperty
setPrice
in interface PrivateProperty
price
- the price of the propertypublic int value()
Item
public java.lang.String getOwnerName()
PrivateProperty
getOwnerName
in interface PrivateProperty
public void setOwnerName(java.lang.String owner)
PrivateProperty
setOwnerName
in interface PrivateProperty
owner
- the name of the owner of the propertypublic long expirationDate()
Expireable
expirationDate
in interface Expireable
expirationDate
in class StdItem
Expireable.setExpirationDate(long)
public void setExpirationDate(long time)
Expireable
setExpirationDate
in interface Expireable
setExpirationDate
in class StdItem
time
- the time stamp when this thing expiresExpireable.expirationDate()
public boolean isProperlyOwned()
PrivateProperty
isProperlyOwned
in interface PrivateProperty
public java.lang.String getTitleID()
PrivateProperty
getTitleID
in interface PrivateProperty
public void rename(java.lang.String newName)
Boardable
public boolean tick(Tickable ticking, int tickID)
Tickable
tick
in interface Tickable
tick
in class StdContainer
ticking
- a reference to this Tickable objecttickID
- the TICKID_ constant describing this periodic call, as defined in TickableTickable
,
ServiceEngine
,
TickableGroup
protected void destroyThisBoardable()
protected boolean okAreaMessage(CMMsg msg, boolean outdoorOnly)
public boolean securityCheck(MOB mob)
Boardable
securityCheck
in interface Boardable
mob
- 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)
MsgListener
okMessage
in interface MsgListener
okMessage
in class StdPortal
myHost
- 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)
MsgListener
executeMsg
in interface MsgListener
executeMsg
in class StdPortal
myHost
- either the initiator of the event, or the host of this objectmsg
- the CMMsg that needs to be executedCMMsg
protected void transferOwnership(MOB buyer, boolean clanSale)
protected Room getRandomOutsideRoom()
public java.lang.String putString(Rider R)
Rideable
putString
in interface Rideable
putString
in class StdPortal
R
- The rider object to make grammatically correct.Rider
,
Rideable.setPutString(String)
,
Rideable.getPutString()
public java.lang.String mountString(int commandType, Rider R)
Rideable
mountString
in interface Rideable
mountString
in class StdPortal
commandType
- 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)
Rideable
dismountString
in interface Rideable
dismountString
in class StdPortal
R
- The rider object to make grammatically correct.Rider
,
Rideable.setDismountString(String)
,
Rideable.getDismountString()
public boolean isSavable()
Contingent
isSavable
in interface Contingent
isSavable
in class StdItem