|
|||||||||
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
com.planet_ink.coffee_mud.Items.Basic.StdBoardable
public class StdBoardable
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface com.planet_ink.coffee_mud.Items.interfaces.Wearable |
---|
Wearable.CODES |
Field Summary | |
---|---|
protected Area |
area
|
protected java.lang.String |
homePortID
|
protected int |
internalPrice
|
protected java.lang.String |
ownerName
|
protected int |
price
|
protected java.lang.String |
readableText
|
Fields inherited from class com.planet_ink.coffee_mud.Items.Basic.StdPortal |
---|
closedText, dismountString, doorName, mountString, putString, rideString, stateString, stateSubjectStr |
Fields inherited from class com.planet_ink.coffee_mud.Items.Basic.StdContainer |
---|
capacity, containType, defaultsClosed, defaultsLocked, hasALid, hasALock, isLocked, isOpen, openDelayTicks |
Fields inherited from class com.planet_ink.coffee_mud.Items.Basic.StdItem |
---|
affectPhyStats, affects, baseGoldValue, basePhyStats, behaviors, cachedImageName, CODES, databaseID, description, destroyed, displayText, dispossessionTime, material, me, miscText, myContainer, myUses, myWornCode, name, owner, phyStats, properWornBitmap, rawImageName, riding, scripts, secretIdentity, tickCtr, 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_EATABLES, CONTAIN_FOOTWEAR, CONTAIN_KEYS, CONTAIN_LIQUID, CONTAIN_ONEHANDWEAPONS, CONTAIN_OTHERWEAPONS, CONTAIN_RAWMATERIALS, 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_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 Summary | |
---|---|
StdBoardable()
|
Method Summary | |
---|---|
protected void |
announceToShip(java.lang.String msgStr)
|
protected boolean |
confirmAreaMessage(CMMsg msg,
boolean outdoorOnly)
|
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 |
destroyThisShip()
|
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)
|
protected java.lang.String |
getAreaClassType()
|
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. |
CMObject |
getOwnerObject()
Get the actual clan or mob owner of the property, or null if it can not. |
int |
getPrice()
The value of the property in base currency values |
Area |
getShipArea()
Space ships are unique in having an Item stand-in for dirt-side access, as well as an Area object. |
Item |
getShipItem()
Ships are unique in having an Item stand-in for port-side access, as well as an Area object. |
java.lang.String |
getTitleID()
Returns a unique id for this particular title and the rooms is represents, even if the contents change. |
java.lang.String |
ID()
The CoffeeMud Java Class ID shared by all instances of this object. |
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. |
protected void |
renameDestinationRooms(java.lang.String from,
java.lang.String to)
|
void |
renameShip(java.lang.String newName)
Renames the ship to something else |
protected boolean |
securityCheck(MOB mob)
|
protected void |
sendAreaMessage(CMMsg msg,
boolean outdoorOnly)
|
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 |
setShipArea(java.lang.String xml)
Space ships are unique in having an Item stand-in for dirt-side access, as well as an Area object. |
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. |
Methods inherited from class com.planet_ink.coffee_mud.Items.Basic.StdPortal |
---|
addRider, amRiding, closedText, closeWord, defaultsClosed, defaultsLocked, delRider, displayText, doorName, exitUsage, fetchRider, getDismountString, getMountString, getPutString, getRideBuddies, getRideString, getStateString, getStateStringSubject, 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 |
Methods inherited from class com.planet_ink.coffee_mud.Items.Basic.StdContainer |
---|
canContain, capacity, containTypes, emptyPlease, getContents, getDeepContents, hasALock, hasContent, isInside, isLocked, isOpen, numberOfItems, recursiveWeight, setCapacity, setContainTypes |
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.core.interfaces.Environmental |
---|
description, displayText, image, isGeneric, L, maxRange, minRange, miscTextFormat, Name, rawImage, sameAs, setDescription, setDisplayText, setImage, setName |
Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.Tickable |
---|
getTickStatus, name |
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, setSavable |
Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.CMObject |
---|
initializeClass |
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.Rider |
---|
riding, setRiding |
Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.Physical |
---|
description, displayText, name |
Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.Affectable |
---|
addEffect, addNonUninvokableEffect, basePhyStats, delAllEffects, delEffect, eachEffect, effects, fetchEffect, fetchEffect, numEffects, phyStats, setBasePhyStats |
Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.Behavable |
---|
addBehavior, addScript, behaviors, delAllBehaviors, delAllScripts, delBehavior, delScript, eachBehavior, eachScript, fetchBehavior, fetchBehavior, fetchScript, numBehaviors, numScripts, scripts |
Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.CloseableLockable |
---|
hasALock, isLocked, isOpen |
Methods inherited from interface com.planet_ink.coffee_mud.Items.interfaces.Item |
---|
baseGoldValue, container, material, owner, rawSecretIdentity, removeFromOwnerContainer, secretIdentity, setBaseValue, setContainer, setMaterial, setOwner, setSecretIdentity, setUsesRemaining, ultimateContainer, usesRemaining |
Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.DBIdentifiable |
---|
canSaveDatabaseID, databaseID |
Methods inherited from interface com.planet_ink.coffee_mud.Items.interfaces.Wearable |
---|
amBeingWornProperly, amWearingAt, canWear, compareProperLocations, fitsOn, rawLogicalAnd, rawProperLocationBitmap, rawWornCode, setRawLogicalAnd, setRawProperLocationBitmap, setRawWornCode, unWear, wearAt, wearEvenIfImpossible, wearIfPossible, wearIfPossible, whereCantWear |
Field Detail |
---|
protected java.lang.String readableText
protected java.lang.String ownerName
protected int price
protected int internalPrice
protected Area area
protected java.lang.String homePortID
Constructor Detail |
---|
public StdBoardable()
Method Detail |
---|
public java.lang.String ID()
CMObject
ID
in interface CMObject
ID
in class StdPortal
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 getShipItem()
BoardableShip
getShipItem
in interface BoardableShip
protected java.lang.String getAreaClassType()
protected Room createFirstRoom()
public void setDockableItem(Item dockableItem)
BoardableShip
setDockableItem
in interface BoardableShip
dockableItem
- the item that acts as dockable itempublic Area getShipArea()
BoardableShip
getShipArea
in interface BoardableShip
public void setShipArea(java.lang.String xml)
BoardableShip
setShipArea
in interface BoardableShip
xml
- area xml for the shippublic void dockHere(Room R)
BoardableShip
dockHere
in interface BoardableShip
R
- the coordinate toom in which the ship is docked.public Room unDock(boolean moveToOutside)
BoardableShip
unDock
in interface BoardableShip
moveToOutside
- true to put in space/ocean, or false to leave in limbo
public Room getIsDocked()
BoardableShip
getIsDocked
in interface BoardableShip
public java.lang.String getHomePortID()
BoardableShip
getHomePortID
in interface BoardableShip
public void setHomePortID(java.lang.String portID)
BoardableShip
setHomePortID
in interface BoardableShip
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
copyOf
in interface CMObject
copyOf
in class StdItem
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
value
in interface Item
value
in class StdItem
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()
Environmental
expirationDate
in interface Environmental
expirationDate
in class StdItem
Environmental.setExpirationDate(long)
public void setExpirationDate(long time)
Environmental
setExpirationDate
in interface Environmental
setExpirationDate
in class StdItem
time
- the time stamp when this thing expiresEnvironmental.expirationDate()
public CMObject getOwnerObject()
PrivateProperty
getOwnerObject
in interface PrivateProperty
public java.lang.String getTitleID()
PrivateProperty
getTitleID
in interface PrivateProperty
public void renameShip(java.lang.String newName)
BoardableShip
renameShip
in interface BoardableShip
newName
- the new ship namepublic 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 Tickable
Tickable
,
ServiceEngine
,
TickableGroup
protected void destroyThisShip()
protected boolean okAreaMessage(CMMsg msg, boolean outdoorOnly)
protected boolean securityCheck(MOB mob)
protected void announceToShip(java.lang.String msgStr)
protected void sendAreaMessage(CMMsg msg, boolean outdoorOnly)
protected boolean confirmAreaMessage(CMMsg msg, boolean outdoorOnly)
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 executed
CMMsg
,
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 findNearestDocks(Room R)
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()
,
Rideable.RIDEABLE_DESCS
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
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |