|
|||||||||
| 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.StdRideable
public class StdRideable
| Field Summary | |
|---|---|
protected int |
rideBasis
|
protected int |
riderCapacity
|
protected java.util.Vector |
riders
|
| 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, baseEnvStats, baseGoldValue, behaviors, CODES, databaseID, description, destroyed, displayText, dispossessionTime, envStats, imageName, material, miscText, myContainer, myUses, myWornCode, name, owner, properWornBitmap, 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.Item |
|---|
IN_INVENTORY, WORN_ABOUT_BODY, WORN_ARMS, WORN_BACK, WORN_CODES, WORN_DEPENDENCYGRID, WORN_DESCS, 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_ORDER, WORN_RIGHT_FINGER, WORN_RIGHT_WRIST, WORN_TORSO, WORN_WAIST, WORN_WEIGHT_POINTS, WORN_WEIGHTS, WORN_WIELD, WORNREQ_ANY, WORNREQ_UNWORNONLY, WORNREQ_WORNONLY |
| Constructor Summary | |
|---|---|
StdRideable()
|
|
| Method Summary | |
|---|---|
void |
addRider(Rider mob)
Adds a new Rider to this Rideable. |
void |
affectEnvStats(Environmental affected,
EnvStats affectableStats)
This method is called by the recoverEnvStats() method on other Environmental objects. |
boolean |
amRiding(Rider mob)
Returns whether Rider is currently mounted on this Rideable |
protected void |
cloneFix(Item E)
|
void |
delRider(Rider mob)
Removes a Rider from this Rideable. |
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. |
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. |
void |
executeMsg(Environmental myHost,
CMMsg msg)
The general message event handler for the object. |
Rider |
fetchRider(int which)
Returns a particular Rider mounted on this Rideable. |
java.util.HashSet |
getRideBuddies(java.util.HashSet list)
Adds all of the MOB Riders on this Rideable to the given HashSet and returns it |
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 |
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. |
java.lang.String |
putString(Rider R)
Returns a string grammatically correct for the given rider when they are putting something on this Rideable |
void |
recoverEnvStats()
This method copies the baseEnvStats() object into the envStats() object, then makes repeated calls to all surrounding objects with affectEnvStats(Environmental,EnvStats) method. |
int |
rideBasis()
The type of rideable object this is. |
int |
riderCapacity()
The number of Riders which may ride upon this Rideable |
boolean |
savable()
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. |
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 |
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 |
| Methods inherited from class com.planet_ink.coffee_mud.Items.Basic.StdContainer |
|---|
canContain, capacity, containTypes, emptyPlease, getContents, hasALid, hasALock, isLocked, isOpen, keyName, reallyGetContents, setCapacity, setContainTypes, setKeyName, setLidsNLocks, setMiscText, tick |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.Environmental |
|---|
addEffect, addNonUninvokableEffect, amDestroyed, baseEnvStats, delEffect, description, envStats, expirationDate, fetchEffect, fetchEffect, image, isGeneric, maxRange, minRange, miscTextFormat, name, Name, numEffects, rawImage, sameAs, 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, initializeClass, newInstance |
| Methods inherited from interface java.lang.Comparable |
|---|
compareTo |
| Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.StatsAffecting |
|---|
affectCharState, affectCharStats |
| 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 |
| Methods inherited from interface com.planet_ink.coffee_mud.Items.interfaces.Item |
|---|
amWearingAt, baseGoldValue, canWear, compareProperLocations, container, databaseID, fitsOn, material, numberOfItems, owner, rawLogicalAnd, rawProperLocationBitmap, rawSecretIdentity, rawWornCode, readableText, recursiveWeight, removeFromOwnerContainer, secretIdentity, setBaseValue, setContainer, setDatabaseID, setMaterial, setOwner, setRawLogicalAnd, setRawProperLocationBitmap, setRawWornCode, setReadableText, setSecretIdentity, setUsesRemaining, stopTicking, subjectToWearAndTear, ultimateContainer, unWear, usesRemaining, value, wearAt, wearEvenIfImpossible, wearIfPossible, whereCantWear |
| Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.Rider |
|---|
riding, setRiding |
| Field Detail |
|---|
protected int rideBasis
protected int riderCapacity
protected java.util.Vector riders
| Constructor Detail |
|---|
public StdRideable()
| Method Detail |
|---|
public java.lang.String ID()
CMObject
ID in interface CMObjectID in class StdContainerpublic void destroy()
Environmental
destroy in interface Environmentaldestroy in class StdItempublic boolean savable()
Environmental
savable in interface Environmentalsavable in class StdItempublic 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 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,
Rideableprotected void cloneFix(Item E)
cloneFix in class StdItempublic java.util.HashSet getRideBuddies(java.util.HashSet 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 void recoverEnvStats()
Environmental
recoverEnvStats in interface EnvironmentalrecoverEnvStats in class StdItemEnvironmental.baseEnvStats(),
Environmental.envStats(),
Environmental.addEffect(Ability),
Behavable.addBehavior(Behavior),
EnvStats
public void affectEnvStats(Environmental affected,
EnvStats affectableStats)
StatsAffecting
affectEnvStats in interface StatsAffectingaffectEnvStats in class StdItemaffected - the host of the EnvStats object being affectedaffectableStats - the particular EnvStats object being affectedEnvStats,
Environmental,
Environmental.baseEnvStats(),
Environmental.envStats(),
Environmental.recoverEnvStats()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()
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 executedCMMsg
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||