|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.planet_ink.coffee_mud.MOBS.StdMOB
com.planet_ink.coffee_mud.MOBS.StdRideable
public class StdRideable
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.planet_ink.coffee_mud.MOBS.StdMOB |
|---|
StdMOB.ApplyAffectCharState<T extends StatsAffecting>, StdMOB.ApplyAffectCharStats<T extends StatsAffecting>, StdMOB.ApplyRecAffectPhyStats<T extends StatsAffecting> |
| Nested classes/interfaces inherited from interface com.planet_ink.coffee_mud.MOBS.interfaces.MOB |
|---|
MOB.Attrib |
| Nested classes/interfaces inherited from interface com.planet_ink.coffee_mud.core.interfaces.ItemPossessor |
|---|
ItemPossessor.Expire, ItemPossessor.Find, ItemPossessor.Move |
| Field Summary | |
|---|---|
protected java.lang.String |
dismountString
|
protected java.lang.String |
mountString
|
protected java.lang.String |
putString
|
protected int |
rideBasis
|
protected int |
riderCapacity
|
protected java.util.List<Rider> |
riders
|
protected java.lang.String |
rideString
|
protected java.lang.String |
stateString
|
protected java.lang.String |
stateSubjectStr
|
| Fields inherited from class com.planet_ink.coffee_mud.MOBS.StdMOB |
|---|
abilitys, abilityUseCache, abilityUseTrig, affectCharState, affectCharStats, affectPhyStats, affects, ageMinutes, amDead, amDestroyed, amFollowing, atRange, attributesBitmap, baseCharStats, basePhyStats, baseState, behaviors, cachedImageName, charStats, clanAffects, clans, CODES, commandQue, curState, databaseID, description, displayText, experience, expertises, factions, followers, inventory, kickFlag, lastLocation, liegeID, location, maxState, me, miscText, money, moneyVariation, mySession, peaceTime, phyStats, playerStats, possHeldItem, possStartRoom, possWieldedItem, practices, questPoint, racialAffects, rawImageName, recoverAffectP, recoverTickCter, removeFromGame, riding, scripts, soulMate, tattoos, tickAgeCounter, tickStatus, trains, username, victim, wimpHitPoint, worshipCharID, 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.MOBS.interfaces.MOB |
|---|
AGE_MILLIS_THRESHOLD, END_SHEATH_TIME, START_SHEATH_TIME |
| Fields inherited from interface com.planet_ink.coffee_mud.core.interfaces.MUDCmdProcessor |
|---|
METAFLAG_AS, METAFLAG_ASMESSAGE, METAFLAG_FORCED, METAFLAG_INORDER, METAFLAG_MPFORCED, METAFLAG_ORDER, METAFLAG_POSSESSED, METAFLAG_SNOOPED |
| Constructor Summary | |
|---|---|
StdRideable()
|
|
| Method Summary | |
|---|---|
void |
addRider(Rider mob)
Adds a new Rider to this Rideable. |
void |
affectCharState(MOB affected,
CharState affectableStats)
This method is called by the recoverCharState() method on other MOB objects. |
void |
affectCharStats(MOB affected,
CharStats affectableStats)
This method is called by the recoverCharStats() method on other MOB objects. |
void |
affectPhyStats(Physical affected,
PhyStats affectableStats)
This method is called by the recoverPhyStats() method on other Environmental objects. |
boolean |
amRiding(Rider mob)
Returns whether Rider is currently mounted on this Rideable |
protected void |
cloneFix(MOB 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(MOB mob)
Returns the displayText, but as seen by the given viewer. |
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.lang.String |
getDismountString()
Returns a custom string grammatically correct for the given rider when they are dismounting this Rideable |
java.lang.String |
getMountString()
Returns a custom string grammatically correct for the given rider when they are mounting this Rideable |
java.lang.String |
getPutString()
Returns a custom string grammatically correct for the given rider when they are putting something on this Rideable |
java.util.Set<MOB> |
getRideBuddies(java.util.Set<MOB> list)
This method recursively returns whoever this mob is riding, and if they are a rideable, who all is riding with him. |
java.lang.String |
getRideString()
Returns a custom verb string describing what one does when one rides this Rideable from room to room. |
java.lang.String |
getStateString()
Returns the custom string grammatically correct for the given rider when they are mounted on this Rideable |
java.lang.String |
getStateStringSubject()
Returns a custom string grammatically correct for this Rideable when Riders are mounted |
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 |
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. |
DeadBody |
killMeDead(boolean createBody)
Puts this mob in a dead state, removes all temporary effects, creates a corpse, ends combat, and sends players to their graveyard. |
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 |
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.Enumeration<Rider> |
riders()
Returns an iterator of the riders on this rideable |
java.lang.String |
rideString(Rider R)
Returns a verb string describing what one does when one rides this Rideable from room to room. |
void |
setDismountString(java.lang.String str)
Sets a string grammatically correct for the given rider when they are dismounting this Rideable |
void |
setMountString(java.lang.String str)
Setss a string grammatically correct for the given rider when they are mounting this Rideable |
void |
setPutString(java.lang.String str)
Set a string grammatically correct for the given rider when they are putting something on this Rideable |
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 |
setRideString(java.lang.String str)
Sets a verb string describing what one does when one rides this Rideable from room to room. |
void |
setStateString(java.lang.String str)
Returns a string grammatically correct for the given rider when they are mounted on this Rideable |
void |
setStateStringSubject(java.lang.String str)
Sets a string grammatically correct for this Rideable when Riders are mounted |
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 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.Rider |
|---|
riding, setRiding |
| Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.Physical |
|---|
description, name |
| Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.Environmental |
|---|
description, displayText, expirationDate, image, isGeneric, L, maxRange, minRange, miscTextFormat, Name, rawImage, sameAs, setDescription, setDisplayText, setExpirationDate, setImage, setMiscText, setName, text |
| Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.Tickable |
|---|
getTickStatus, name, tick |
| 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 |
|---|
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, 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 |
| Field Detail |
|---|
protected int rideBasis
protected int riderCapacity
protected java.util.List<Rider> riders
protected java.lang.String putString
protected java.lang.String rideString
protected java.lang.String stateString
protected java.lang.String stateSubjectStr
protected java.lang.String mountString
protected java.lang.String dismountString
| Constructor Detail |
|---|
public StdRideable()
| Method Detail |
|---|
public java.lang.String ID()
CMObject
ID in interface CMObjectID in class StdMOBprotected void cloneFix(MOB E)
cloneFix in class StdMOBpublic DeadBody killMeDead(boolean createBody)
MOB
killMeDead in interface MOBkillMeDead in class StdMOBcreateBody - true to create a corpse, false otherwise
MOB.amDead(),
MOB.bringToLife(Room, boolean),
MOB.removeFromGame(boolean, boolean)public void destroy()
Contingent
destroy in interface Contingentdestroy in class StdMOBpublic boolean isMobileRideBasis()
Rideable
isMobileRideBasis in interface RideableRideablepublic boolean isSavable()
Contingent
isSavable in interface ContingentisSavable in class StdMOBpublic 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 boolean mobileRideBasis()
Rideable
mobileRideBasis in interface RideableRideable.rideBasis()public Rider fetchRider(int which)
Rideable
fetchRider in interface Rideablewhich - which rider to detch
Rider,
Rideable,
Rideable.numRiders()public java.lang.String putString(Rider R)
Rideable
putString in interface RideableR - The rider object to make grammatically correct.
Rider,
Rideable.setPutString(String),
Rideable.getPutString()public java.lang.String getPutString()
Rideable
getPutString in interface RideableRider,
Rideable.setPutString(String),
Rideable.putString(Rider)public void setPutString(java.lang.String str)
Rideable
setPutString in interface Rideablestr - a string describing the riders state of putting something on this RideableRider,
Rideable.putString(Rider),
Rideable.getPutString()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 java.util.Enumeration<Rider> riders()
Rideable
riders in interface RideableRiderpublic java.lang.String displayText(MOB mob)
Physical
displayText in interface PhysicaldisplayText in class StdMOBmob - the mob viewing the physical thing
Environmental.displayText()public void recoverPhyStats()
Affectable
recoverPhyStats in interface AffectablerecoverPhyStats in class StdMOBAffectable.basePhyStats(),
Affectable.phyStats(),
Affectable.addEffect(Ability),
Behavable.addBehavior(Behavior),
PhyStats
public void affectCharStats(MOB affected,
CharStats affectableStats)
StatsAffecting
affectCharStats in interface StatsAffectingaffectCharStats in class StdMOBaffected - the host of the CharStats object being affectedaffectableStats - the particular CharStats object being affectedCharStats,
MOB,
MOB.baseCharStats(),
MOB.charStats(),
MOB.recoverCharStats()
public void affectCharState(MOB affected,
CharState affectableStats)
StatsAffecting
affectCharState in interface StatsAffectingaffectCharState in class StdMOBaffected - the host of the CharState object being affectedaffectableStats - the particular CharState object being affectedCharState,
MOB,
MOB.baseState(),
MOB.curState(),
MOB.recoverMaxState()
public void affectPhyStats(Physical affected,
PhyStats affectableStats)
StatsAffecting
affectPhyStats in interface StatsAffectingaffectPhyStats in class StdMOBaffected - the host of the PhyStats object being affectedaffectableStats - the particular PhyStats object being affectedPhyStats,
Environmental,
Affectable.basePhyStats(),
Affectable.phyStats(),
Affectable.recoverPhyStats()public boolean amRiding(Rider mob)
Rideable
amRiding in interface Rideablemob - the Rider to check this Rideable for
Rider,
Rideablepublic java.lang.String stateString(Rider R)
Rideable
stateString in interface RideableR - The rider object to make grammatically correct.
Rider,
Rideable.setStateString(String),
Rideable.getStateString()public java.lang.String getStateString()
Rideable
getStateString in interface RideableRider,
Rideable.setStateString(String),
Rideable.stateString(Rider)public void setStateString(java.lang.String str)
Rideable
setStateString in interface Rideablestr - a string describing the riders state of riding this RideableRider,
Rideable.stateString(Rider),
Rideable.getStateString()
public java.lang.String mountString(int commandType,
Rider R)
Rideable
mountString in interface RideablecommandType - one of the RIDEABLE_ constants as a typeR - The rider object to make grammatically correct.
Rider,
Rideable.setMountString(String),
Rideable.getMountString(),
Rideable.RIDEABLE_DESCSpublic java.lang.String getMountString()
Rideable
getMountString in interface RideableRider,
Rideable.setMountString(String),
Rideable.mountString(int, Rider),
Rideable.RIDEABLE_DESCSpublic void setMountString(java.lang.String str)
Rideable
setMountString in interface Rideablestr - a string describing the riders state of mounting this RideableRider,
Rideable.mountString(int, Rider),
Rideable.getDismountString(),
Rideable.RIDEABLE_DESCSpublic java.lang.String dismountString(Rider R)
Rideable
dismountString in interface RideableR - The rider object to make grammatically correct.
Rider,
Rideable.setDismountString(String),
Rideable.getDismountString()public java.lang.String getDismountString()
Rideable
getDismountString in interface RideableRider,
Rideable.setDismountString(String),
Rideable.dismountString(Rider)public void setDismountString(java.lang.String str)
Rideable
setDismountString in interface Rideablestr - a string describing the riders state of dismounting this RideableRider,
Rideable.dismountString(Rider),
Rideable.getDismountString()public java.lang.String rideString(Rider R)
Rideable
rideString in interface RideableR - The rider object to make grammatically correct.
Rider,
Rideable.setRideString(String),
Rideable.getRideString()public java.lang.String getRideString()
Rideable
getRideString in interface RideableRider,
Rideable.setRideString(String),
Rideable.rideString(Rider)public void setRideString(java.lang.String str)
Rideable
setRideString in interface Rideablestr - a string describing the riders verb of riding this Rideable somewhereRider,
Rideable.rideString(Rider),
Rideable.getRideString()public java.lang.String stateStringSubject(Rider R)
Rideable
stateStringSubject in interface RideableR - The rider object to make grammatically correct.
Rider,
Rideable.setStateStringSubject(String),
Rideable.getStateStringSubject()public java.lang.String getStateStringSubject()
Rideable
getStateStringSubject in interface RideableRider,
Rideable.setStateStringSubject(String),
Rideable.stateStringSubject(Rider)public void setStateStringSubject(java.lang.String str)
Rideable
setStateStringSubject in interface Rideablestr - a string describing the Riderable state of being riddenRider,
Rideable.stateStringSubject(Rider),
Rideable.getStateStringSubject()public java.util.Set<MOB> getRideBuddies(java.util.Set<MOB> list)
MOB
getRideBuddies in interface RideablegetRideBuddies in interface MOBgetRideBuddies in class StdMOBlist - the required list to populate with riders and rideable
Rider,
Rideable
public boolean okMessage(Environmental myHost,
CMMsg msg)
MsgListener
okMessage in interface MsgListenerokMessage in class StdMOBmyHost - 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 StdMOBmyHost - 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 | ||||||||