|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.planet_ink.coffee_mud.Locales.StdRoom
public class StdRoom
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface com.planet_ink.coffee_mud.core.interfaces.ItemPossessor |
|---|
ItemPossessor.Expire, ItemPossessor.Find, ItemPossessor.Move |
| Field Summary | |
|---|---|
protected SVector<Ability> |
affects
|
protected boolean |
amDestroyed
|
protected PhyStats |
basePhyStats
|
protected SVector<Behavior> |
behaviors
|
protected java.lang.String |
cachedImageName
|
protected SVector<Item> |
contents
|
protected byte[] |
description
|
protected java.lang.String |
displayText
|
Room[] |
doors
|
Exit[] |
exits
|
protected long |
expirationDate
|
protected GridLocale |
gridParent
|
protected SVector<MOB> |
inhabitants
|
protected boolean |
mobility
|
protected Area |
myArea
|
protected java.lang.String |
myID
|
protected int |
myResource
|
protected java.lang.String |
name
|
protected PhyStats |
phyStats
|
protected java.lang.String |
rawImageName
|
protected long |
resourceFound
|
protected SVector<ScriptingEngine> |
scripts
|
protected boolean |
skyedYet
|
protected static java.lang.String[] |
STDCODES
|
protected long |
tickStatus
|
protected java.lang.String[] |
xtraValues
|
| Constructor Summary | |
|---|---|
StdRoom()
|
|
| Method Summary | |
|---|---|
void |
addBehavior(Behavior to)
Manipulation of Behavior objects, which includes movement, speech, spellcasting, etc, etc. |
void |
addEffect(Ability to)
Add a new effect to this object, whether permanent or temporary. |
void |
addInhabitant(MOB mob)
|
void |
addItem(Item item)
Adds a new item to its possessor. |
void |
addItem(Item item,
ItemPossessor.Expire expire)
Adds a new item to its possessor, with an expiration code. |
void |
addNonUninvokableEffect(Ability to)
Same as addEffect(Ability), but will set the Ability object as never being able to be uninvoked. |
void |
addScript(ScriptingEngine S)
Manipulation of the scripts list |
void |
affectCharState(MOB affectedMob,
CharState affectableMaxState)
This method is called by the recoverCharState() method on other MOB objects. |
void |
affectCharStats(MOB affectedMob,
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 |
amDestroyed()
Whether the destroy() method has been previousy called on this object. |
PhyStats |
basePhyStats()
Object containing a set of base, unmodified, mostly numeric fields. |
protected int |
baseThirst()
|
java.util.Enumeration<Behavior> |
behaviors()
Returns an enumerator of all the behaviors on this object. |
void |
bringMobHere(MOB mob,
boolean andFollowers)
|
void |
clearSky()
|
protected void |
cloneFix(Room R)
|
int |
compareTo(CMObject o)
|
CMObject |
copyOf()
Similar to Cloneable.clone(), but does its best to make sure that any internal objects to this class are also copyOfed. |
void |
delBehavior(Behavior to)
Delete a behavior from this object. |
void |
delEffect(Ability to)
Delete an effect from this object, whether permanent or temporary. |
void |
delInhabitant(MOB mob)
|
void |
delItem(Item item)
Removes the item from this possessor. |
void |
delScript(ScriptingEngine S)
Remove a running script from this object. |
java.lang.String |
description()
The basic description of this object, as shown when the item is directly LOOKed at. |
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 |
displayText()
Gets the raw string used to show what this object looks like in the room. |
int |
domainConditions()
|
int |
domainType()
|
java.util.Enumeration<Ability> |
effects()
Returns an enumerator of abilities listed as effects on this object. |
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. |
Behavior |
fetchBehavior(int index)
Returns a behavior object on this object. |
Behavior |
fetchBehavior(java.lang.String ID)
Returns a behavior object listed on this object. |
Ability |
fetchEffect(int index)
Returns an ability object listed as an effect on this object. |
Ability |
fetchEffect(java.lang.String ID)
Returns an ability object listed as an effect on this object. |
PhysicalAgent |
fetchFromMOBRoomFavorsItems(MOB mob,
Item goodLocation,
java.lang.String thingName,
int wornFilter)
|
PhysicalAgent |
fetchFromMOBRoomFavorsMOBs(MOB mob,
Item goodLocation,
java.lang.String thingName,
int wornFilter)
|
PhysicalAgent |
fetchFromMOBRoomItemExit(MOB mob,
Item goodLocation,
java.lang.String thingName,
int wornFilter)
|
PhysicalAgent |
fetchFromRoomFavorItems(Item goodLocation,
java.lang.String thingName)
|
PhysicalAgent |
fetchFromRoomFavorMOBs(Item goodLocation,
java.lang.String thingName)
|
MOB |
fetchInhabitant(int i)
|
MOB |
fetchInhabitant(java.lang.String inhabitantID)
|
java.util.List<MOB> |
fetchInhabitants(java.lang.String inhabitantID)
|
MOB |
fetchPCInhabitant(int which)
|
ScriptingEngine |
fetchScript(int x)
Retreive one of the enumerated scripts running on this object |
Item |
findItem(Item goodLocation,
java.lang.String itemID)
Returns the item in the given container that matches the given itemID, whether by full name, description, class ID, or partial name (if no fuller name is found). |
Item |
findItem(java.lang.String itemID)
Returns the item in this possessor that matches the given itemID, whether by full name, description, class ID, or partial name (if no fuller name is found). |
java.util.List<Item> |
findItems(Item goodLocation,
java.lang.String itemID)
Returns all items in the given container that matches the given itemID, whether by full name, description, class ID, or partial name (if no fuller names are found). |
java.util.List<Item> |
findItems(java.lang.String itemID)
Returns all items in this possessor that matches the given itemID, whether by full name, description, class ID, or partial name (if no fuller names are found). |
Area |
getArea()
|
protected int |
getCodeNum(java.lang.String code)
|
java.lang.String |
getContextName(Environmental E)
|
Exit |
getExitInDir(int direction)
|
GridLocale |
getGridParent()
|
Item |
getItem(int i)
Returns the item at the given index, regardless of container status, visibility, or other modifiers. |
boolean |
getMobility()
|
Exit |
getPairedExit(int direction)
|
Exit |
getRawExit(int dir)
|
Exit |
getReverseExit(int direction)
|
Room |
getRoomInDir(int direction)
|
int |
getSaveStatIndex()
Returns the index into the stat codes array where extra savable fields begins. |
java.lang.String |
getStat(java.lang.String code)
An alternative means of retreiving the values of those fields on this object which are modifiable at run-time by builders. |
java.lang.String[] |
getStatCodes()
Returns an array of the string names of those fields which are modifiable on this object at run-time by builders. |
long |
getTickStatus()
A coded status for this object during the period where its tick method is being called. |
void |
giveASky(int depth)
|
protected java.util.Vector |
herbTwistChart()
|
java.lang.String |
ID()
The CoffeeMud Java Class ID shared by all instances of this object. |
java.lang.String |
image()
Returns the fully qualified and determined name of the image file displayed for this object when MXP is used. |
java.util.Enumeration<MOB> |
inhabitants()
|
void |
initializeClass()
Called ONCE after all objects are loaded, but before the map is read in during initialization. |
boolean |
isContent(Item item)
Returns whether the given item is in this possessors list. |
boolean |
isGeneric()
Whether the fields of this item are set in code, or set by builders. |
boolean |
isHere(Environmental E)
|
boolean |
isInhabitant(MOB mob)
|
boolean |
isSameRoom(java.lang.Object O)
|
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. |
boolean |
isStat(java.lang.String code)
An alternative means of retreiving the values of those fields on this object which are modifiable at run-time by builders. |
java.util.Enumeration<Item> |
items()
An enumeration of all the items at this possessor. |
int |
maxRange()
the maximum range of this object, if applicable. |
int |
minRange()
the minimum range of this object, if applicable. |
java.lang.String |
miscTextFormat()
Unimplemented as of yet, but will hold a string telling the system what the proper format of any miscText data. |
void |
moveItemTo(Item container)
Intelligently removes an item from its current location and moves it to this possessor, managing any container contents. |
void |
moveItemTo(Item item,
ItemPossessor.Expire expire,
ItemPossessor.Move... moveFlags)
Intelligently removes an item from its current location and moves it to this possessor, managing any container contents, and possibly followers/riders if the item is a cart. |
int |
myResource()
|
java.lang.String |
name()
The displayable name of this object. |
java.lang.String |
Name()
The raw unmodified name of this object as stored in the database. |
CMObject |
newInstance()
Returns a new instance of this class. |
int |
numBehaviors()
The number of behaviors this object has. |
int |
numEffects()
Returns the number of ability objects listed as effects on this object. |
int |
numInhabitants()
|
int |
numItems()
Returns the total number of items at this possessor, regardless of container status. |
int |
numPCInhabitants()
|
int |
numScripts()
Return the number of scripts running on this object |
boolean |
okMessage(Environmental myHost,
CMMsg msg)
The general message event previewer for the object. |
protected java.lang.String |
parseVaries(MOB mob,
java.lang.String text)
|
protected java.lang.String |
parseVariesCodes(MOB mob,
java.lang.String text)
|
PhyStats |
phyStats()
Object containing a set of current, modified, usable, mostly numeric fields. |
int |
pointsPerMove(MOB mob)
|
Room |
prepareRoomInDir(Room R,
int direction)
|
Room[] |
rawDoors()
|
java.lang.String |
rawImage()
Returns the raw name of the image file to display for this object when MXP is used. |
protected void |
reallyReallySend(MOB source,
CMMsg msg)
|
protected void |
reallySend(MOB source,
CMMsg msg,
int depth)
|
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. |
void |
recoverRoomStats()
|
java.util.List<java.lang.Integer> |
resourceChoices()
|
java.lang.String |
roomDescription(MOB mob)
|
java.lang.String |
roomID()
|
java.lang.String |
roomTitle(MOB mob)
|
boolean |
sameAs(Environmental E)
Whether this object instance is functionally identical to the object passed in. |
java.util.Enumeration<ScriptingEngine> |
scripts()
Returns an enumerator of all the scripts on this object. |
void |
send(MOB source,
CMMsg msg)
|
void |
sendOthers(MOB source,
CMMsg msg)
|
void |
setArea(Area newArea)
|
void |
setBasePhyStats(PhyStats newStats)
Re-sets the object containing a set of base, unmodified, mostly numeric fields. |
void |
setDescription(java.lang.String newDescription)
Sets the basic description of this object, as shown when the item is directly LOOKed at. |
void |
setDisplayText(java.lang.String newDisplayText)
Sets the raw string used to show what this object looks like in the room. |
void |
setExpirationDate(long time)
If this object expires, it should have a timestamp saying when it expires, in real time. |
void |
setGridParent(GridLocale room)
|
void |
setImage(java.lang.String newImage)
Sets the raw name of the image file to display for this object when MXP is used. |
void |
setMiscText(java.lang.String newMiscText)
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 |
setName(java.lang.String newName)
Sets the raw unmodified name of this object as stored in the database. |
void |
setRawExit(int direction,
Environmental to)
|
void |
setResource(int resourceCode)
|
void |
setRoomID(java.lang.String newID)
|
void |
setSavable(boolean truefalse)
Sets whether this behavior can be saved as a permanent aspect of its host. |
void |
setStat(java.lang.String code,
java.lang.String val)
An alternative means of setting the values of those fields on this object which are modifiable at run-time by builders. |
boolean |
show(MOB source,
Environmental target,
Environmental tool,
int srcCode,
int tarCode,
int othCode,
java.lang.String allMessage)
|
boolean |
show(MOB source,
Environmental target,
Environmental tool,
int allCode,
java.lang.String allMessage)
|
boolean |
show(MOB source,
Environmental target,
Environmental tool,
int srcCode,
java.lang.String srcMessage,
int tarCode,
java.lang.String tarMessage,
int othCode,
java.lang.String othMessage)
|
boolean |
show(MOB source,
Environmental target,
Environmental tool,
int allCode,
java.lang.String srcMessage,
java.lang.String tarMessage,
java.lang.String othMessage)
|
boolean |
show(MOB source,
Environmental target,
int allCode,
java.lang.String allMessage)
|
void |
showHappens(int allCode,
Environmental like,
java.lang.String allMessage)
|
void |
showHappens(int allCode,
java.lang.String allMessage)
|
boolean |
showOthers(MOB source,
Environmental target,
Environmental tool,
int allCode,
java.lang.String allMessage)
|
boolean |
showOthers(MOB source,
Environmental target,
int allCode,
java.lang.String allMessage)
|
boolean |
showSource(MOB source,
Environmental target,
Environmental tool,
int allCode,
java.lang.String allMessage)
|
boolean |
showSource(MOB source,
Environmental target,
int allCode,
java.lang.String allMessage)
|
void |
startItemRejuv()
|
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. |
int |
thirstPerRound(MOB mob)
|
boolean |
tick(Tickable ticking,
int tickID)
this is the method which is called periodically by the threading engine. |
void |
toggleMobility(boolean onoff)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.lang.String myID
protected java.lang.String name
protected java.lang.String displayText
protected java.lang.String rawImageName
protected java.lang.String cachedImageName
protected byte[] description
protected Area myArea
protected PhyStats phyStats
protected PhyStats basePhyStats
public Exit[] exits
public Room[] doors
protected java.lang.String[] xtraValues
protected boolean mobility
protected GridLocale gridParent
protected long tickStatus
protected long expirationDate
protected SVector<Ability> affects
protected SVector<Behavior> behaviors
protected SVector<ScriptingEngine> scripts
protected SVector<Item> contents
protected SVector<MOB> inhabitants
protected int myResource
protected long resourceFound
protected boolean amDestroyed
protected boolean skyedYet
protected static final java.lang.String[] STDCODES
| Constructor Detail |
|---|
public StdRoom()
| Method Detail |
|---|
public java.lang.String ID()
CMObject
ID in interface CMObjectpublic void initializeClass()
CMObject
initializeClass in interface CMObjectpublic CMObject newInstance()
CMObject
newInstance in interface CMObjectpublic java.lang.String roomID()
roomID in interface Roompublic java.lang.String Name()
Environmental
Name in interface EnvironmentalEnvironmental.name()public void setName(java.lang.String newName)
Environmental
setName in interface EnvironmentalnewName - the raw base name of this object on the map.Environmental.Name()public java.lang.String name()
Environmental
name in interface Environmentalname in interface TickableEnvironmental.Name()public java.lang.String image()
Environmental
image in interface Environmentalpublic java.lang.String rawImage()
Environmental
rawImage in interface Environmentalpublic void setImage(java.lang.String newImage)
Environmental
setImage in interface EnvironmentalnewImage - the raw name of the mxp image filepublic boolean isGeneric()
Environmental
isGeneric in interface EnvironmentalEnvironmental.text()protected void cloneFix(Room R)
public CMObject copyOf()
CMObject
copyOf in interface CMObjectpublic int domainType()
domainType in interface Roompublic int domainConditions()
domainConditions in interface Roompublic long expirationDate()
Environmental
expirationDate in interface EnvironmentalEnvironmental.setExpirationDate(long)public void setExpirationDate(long time)
Environmental
setExpirationDate in interface Environmentaltime - the time stamp when this thing expiresEnvironmental.expirationDate()
public void setRawExit(int direction,
Environmental to)
setRawExit in interface Roompublic java.lang.String displayText()
Environmental
displayText in interface Environmentalpublic void setDisplayText(java.lang.String newDisplayText)
Environmental
setDisplayText in interface EnvironmentalnewDisplayText - the string describing how this object looks in the roompublic java.lang.String description()
Environmental
description in interface Environmentalpublic void setDescription(java.lang.String newDescription)
Environmental
setDescription in interface EnvironmentalnewDescription - the basic detail description of this objectpublic java.lang.String text()
Environmental
text in interface Environmentalpublic java.lang.String miscTextFormat()
Environmental
miscTextFormat in interface EnvironmentalCMParms,
Environmental.text(),
Environmental.setMiscText(String)public void setMiscText(java.lang.String newMiscText)
Environmental
setMiscText in interface EnvironmentalnewMiscText - either an open internal text string, or XMLpublic void setRoomID(java.lang.String newID)
setRoomID in interface Roompublic Area getArea()
getArea in interface Roompublic void setArea(Area newArea)
setArea in interface Roompublic void setGridParent(GridLocale room)
setGridParent in interface Roompublic GridLocale getGridParent()
getGridParent in interface Roompublic void giveASky(int depth)
giveASky in interface Roompublic void clearSky()
clearSky in interface Roompublic java.util.List<java.lang.Integer> resourceChoices()
resourceChoices in interface Roompublic void setResource(int resourceCode)
setResource in interface Roompublic int myResource()
myResource in interface Roompublic void toggleMobility(boolean onoff)
toggleMobility in interface Roompublic boolean getMobility()
getMobility in interface Roomprotected java.util.Vector herbTwistChart()
public boolean okMessage(Environmental myHost,
CMMsg msg)
MsgListener
okMessage in interface MsgListenermyHost - 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 MsgListenermyHost - either the initiator of the event, or the host of this objectmsg - the CMMsg that needs to be executedCMMsgpublic void startItemRejuv()
startItemRejuv in interface Roompublic long getTickStatus()
Tickable
getTickStatus in interface TickableTickable.tick(Tickable, int)
public boolean tick(Tickable ticking,
int tickID)
Tickable
tick in interface Tickableticking - a reference to this Tickable objecttickID - the TICKID_ constant describing this periodic call, as defined in Tickable
Tickable,
ServiceEngine,
TickableGrouppublic PhyStats phyStats()
Affectable
phyStats in interface AffectableAffectable.basePhyStats(),
Affectable.recoverPhyStats(),
PhyStatspublic PhyStats basePhyStats()
Affectable
basePhyStats in interface AffectableAffectable.phyStats(),
Affectable.recoverPhyStats(),
PhyStatspublic void recoverPhyStats()
Affectable
recoverPhyStats in interface AffectableAffectable.basePhyStats(),
Affectable.phyStats(),
Affectable.addEffect(Ability),
Behavable.addBehavior(Behavior),
PhyStatspublic void recoverRoomStats()
recoverRoomStats in interface Roompublic void setBasePhyStats(PhyStats newStats)
Affectable
setBasePhyStats in interface AffectablenewStats - a set of state fieldsAffectable.phyStats(),
Affectable.recoverPhyStats(),
PhyStats
public void affectPhyStats(Physical affected,
PhyStats affectableStats)
StatsAffecting
affectPhyStats in interface StatsAffectingaffected - the host of the PhyStats object being affectedaffectableStats - the particular PhyStats object being affectedPhyStats,
Environmental,
Affectable.basePhyStats(),
Affectable.phyStats(),
Affectable.recoverPhyStats()
public void affectCharStats(MOB affectedMob,
CharStats affectableStats)
StatsAffecting
affectCharStats in interface StatsAffectingaffectedMob - 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 affectedMob,
CharState affectableMaxState)
StatsAffecting
affectCharState in interface StatsAffectingaffectedMob - the host of the CharState object being affectedaffectableMaxState - the particular CharState object being affectedCharState,
MOB,
MOB.baseState(),
MOB.curState(),
MOB.recoverMaxState()public int compareTo(CMObject o)
compareTo in interface java.lang.Comparable<CMObject>
protected java.lang.String parseVariesCodes(MOB mob,
java.lang.String text)
protected java.lang.String parseVaries(MOB mob,
java.lang.String text)
public java.lang.String roomTitle(MOB mob)
roomTitle in interface Roompublic java.lang.String roomDescription(MOB mob)
roomDescription in interface Room
public void bringMobHere(MOB mob,
boolean andFollowers)
bringMobHere in interface Roompublic void moveItemTo(Item container)
ItemPossessor
moveItemTo in interface ItemPossessorcontainer - the item to addItemPossessor.Expire
public void moveItemTo(Item item,
ItemPossessor.Expire expire,
ItemPossessor.Move... moveFlags)
ItemPossessor
moveItemTo in interface ItemPossessoritem - the item to addexpire - the expiration codemoveFlags - any flags related to the moveItemPossessor.Expirepublic Exit getReverseExit(int direction)
getReverseExit in interface Roompublic Exit getPairedExit(int direction)
getPairedExit in interface Room
public Room prepareRoomInDir(Room R,
int direction)
prepareRoomInDir in interface Roompublic Room getRoomInDir(int direction)
getRoomInDir in interface Roompublic Exit getExitInDir(int direction)
getExitInDir in interface Room
protected void reallyReallySend(MOB source,
CMMsg msg)
protected void reallySend(MOB source,
CMMsg msg,
int depth)
public void send(MOB source,
CMMsg msg)
send in interface Room
public void sendOthers(MOB source,
CMMsg msg)
sendOthers in interface Room
public void showHappens(int allCode,
java.lang.String allMessage)
showHappens in interface Room
public void showHappens(int allCode,
Environmental like,
java.lang.String allMessage)
showHappens in interface Room
public boolean show(MOB source,
Environmental target,
int allCode,
java.lang.String allMessage)
show in interface Room
public boolean show(MOB source,
Environmental target,
Environmental tool,
int allCode,
java.lang.String allMessage)
show in interface Room
public boolean show(MOB source,
Environmental target,
Environmental tool,
int srcCode,
int tarCode,
int othCode,
java.lang.String allMessage)
show in interface Room
public boolean show(MOB source,
Environmental target,
Environmental tool,
int allCode,
java.lang.String srcMessage,
java.lang.String tarMessage,
java.lang.String othMessage)
show in interface Room
public boolean show(MOB source,
Environmental target,
Environmental tool,
int srcCode,
java.lang.String srcMessage,
int tarCode,
java.lang.String tarMessage,
int othCode,
java.lang.String othMessage)
show in interface Room
public boolean showOthers(MOB source,
Environmental target,
int allCode,
java.lang.String allMessage)
showOthers in interface Room
public boolean showOthers(MOB source,
Environmental target,
Environmental tool,
int allCode,
java.lang.String allMessage)
showOthers in interface Room
public boolean showSource(MOB source,
Environmental target,
int allCode,
java.lang.String allMessage)
showSource in interface Room
public boolean showSource(MOB source,
Environmental target,
Environmental tool,
int allCode,
java.lang.String allMessage)
showSource in interface Roompublic Exit getRawExit(int dir)
getRawExit in interface Roompublic Room[] rawDoors()
rawDoors in interface Roompublic boolean isSavable()
Contingent
isSavable in interface Contingentpublic void setSavable(boolean truefalse)
Contingent
setSavable in interface Contingenttruefalse - whether this behavior can be saved as part of its host.Contingent.isSavable()public void destroy()
Contingent
destroy in interface Contingentpublic boolean amDestroyed()
Contingent
amDestroyed in interface Contingentpublic boolean isHere(Environmental E)
isHere in interface Roompublic MOB fetchInhabitant(java.lang.String inhabitantID)
fetchInhabitant in interface Roompublic java.util.List<MOB> fetchInhabitants(java.lang.String inhabitantID)
fetchInhabitants in interface Roompublic void addInhabitant(MOB mob)
addInhabitant in interface Roompublic java.util.Enumeration<MOB> inhabitants()
inhabitants in interface Roompublic int numInhabitants()
numInhabitants in interface Roompublic int numPCInhabitants()
numPCInhabitants in interface Roompublic MOB fetchPCInhabitant(int which)
fetchPCInhabitant in interface Roompublic boolean isInhabitant(MOB mob)
isInhabitant in interface Roompublic MOB fetchInhabitant(int i)
fetchInhabitant in interface Roompublic void delInhabitant(MOB mob)
delInhabitant in interface Roompublic Item findItem(java.lang.String itemID)
ItemPossessor
findItem in interface ItemPossessoritemID - the name or partial name of the item to fetch
public java.util.Enumeration<Item> items()
ItemPossessor
items in interface ItemPossessor
public Item findItem(Item goodLocation,
java.lang.String itemID)
ItemPossessor
findItem in interface ItemPossessorgoodLocation - the container to look in, or null for noneitemID - the name or partial name of the item to fetch
public java.util.List<Item> findItems(Item goodLocation,
java.lang.String itemID)
ItemPossessor
findItems in interface ItemPossessorgoodLocation - the container to look in, or null for noneitemID - the name or partial name of the item to fetch
public java.util.List<Item> findItems(java.lang.String itemID)
ItemPossessor
findItems in interface ItemPossessoritemID - the name or partial name of the item to fetch
public void addItem(Item item,
ItemPossessor.Expire expire)
ItemPossessor
addItem in interface ItemPossessoritem - the item to addItemPossessor.Expirepublic void addItem(Item item)
ItemPossessor
addItem in interface ItemPossessoritem - the item to addItemPossessor.delItem(Item)public void delItem(Item item)
ItemPossessor
delItem in interface ItemPossessoritem - the item to removepublic int numItems()
ItemPossessor
numItems in interface ItemPossessorpublic boolean isContent(Item item)
ItemPossessor
isContent in interface ItemPossessoritem - the item to check
public Item getItem(int i)
ItemPossessor
getItem in interface ItemPossessori - the index of the item
public java.lang.String getContextName(Environmental E)
getContextName in interface Room
public PhysicalAgent fetchFromMOBRoomItemExit(MOB mob,
Item goodLocation,
java.lang.String thingName,
int wornFilter)
fetchFromMOBRoomItemExit in interface Room
public PhysicalAgent fetchFromRoomFavorItems(Item goodLocation,
java.lang.String thingName)
fetchFromRoomFavorItems in interface Room
public PhysicalAgent fetchFromRoomFavorMOBs(Item goodLocation,
java.lang.String thingName)
fetchFromRoomFavorMOBs in interface Room
public PhysicalAgent fetchFromMOBRoomFavorsItems(MOB mob,
Item goodLocation,
java.lang.String thingName,
int wornFilter)
fetchFromMOBRoomFavorsItems in interface Room
public PhysicalAgent fetchFromMOBRoomFavorsMOBs(MOB mob,
Item goodLocation,
java.lang.String thingName,
int wornFilter)
fetchFromMOBRoomFavorsMOBs in interface Roompublic int pointsPerMove(MOB mob)
pointsPerMove in interface Roomprotected int baseThirst()
public int thirstPerRound(MOB mob)
thirstPerRound in interface Roompublic int minRange()
Environmental
minRange in interface Environmentalpublic int maxRange()
Environmental
maxRange in interface Environmentalpublic void addEffect(Ability to)
Affectable
addEffect in interface Affectableto - The ability object to add as an effect.Ability,
Affectable.recoverPhyStats()public void addNonUninvokableEffect(Ability to)
Affectable
addNonUninvokableEffect in interface Affectableto - The ability object to add as an effect.Ability,
Affectable.recoverPhyStats()public void delEffect(Ability to)
Affectable
delEffect in interface Affectableto - The ability object to remove as an effect on this objectAbility,
Affectable.recoverPhyStats()public int numEffects()
Affectable
numEffects in interface AffectableAbilitypublic java.util.Enumeration<Ability> effects()
Affectable
effects in interface AffectableAbilitypublic Ability fetchEffect(int index)
Affectable
fetchEffect in interface Affectableindex - which object to return
Ability,
Affectable.numEffects()public Ability fetchEffect(java.lang.String ID)
Affectable
fetchEffect in interface AffectableAbility,
CMObject.ID()public void addBehavior(Behavior to)
addBehavior in interface Behavableto - The behavior object to add.Behavior,
Affectable.recoverPhyStats()public void delBehavior(Behavior to)
Behavable
delBehavior in interface Behavableto - The behavior object to remove.Behavior,
Affectable.recoverPhyStats()public int numBehaviors()
Behavable
numBehaviors in interface BehavableBehaviorpublic java.util.Enumeration<Behavior> behaviors()
Behavable
behaviors in interface BehavableBehaviorpublic Behavior fetchBehavior(int index)
Behavable
fetchBehavior in interface Behavableindex - which object to return
Behavior,
Behavable.numBehaviors()public Behavior fetchBehavior(java.lang.String ID)
Behavable
fetchBehavior in interface BehavableBehavior,
CMObject.ID()public void addScript(ScriptingEngine S)
addScript in interface BehavableS - the scripting engine, fully populated, to addScriptingEnginepublic void delScript(ScriptingEngine S)
Behavable
delScript in interface BehavableS - the specific scripting engine to removeScriptingEnginepublic int numScripts()
Behavable
numScripts in interface Behavablepublic java.util.Enumeration<ScriptingEngine> scripts()
Behavable
scripts in interface BehavableScriptingEnginepublic ScriptingEngine fetchScript(int x)
Behavable
fetchScript in interface Behavablex - which script to return
ScriptingEnginepublic int getSaveStatIndex()
Modifiable
getSaveStatIndex in interface ModifiableModifiable.getStatCodes(),
Modifiable.getStat(String),
Modifiable.setStat(String, String)public java.lang.String[] getStatCodes()
Modifiable
getStatCodes in interface ModifiableModifiable.getStat(String),
Modifiable.setStat(String, String)public boolean isStat(java.lang.String code)
Modifiable
isStat in interface Modifiablecode - the name of the field to read.
Modifiable.getStatCodes()protected int getCodeNum(java.lang.String code)
public java.lang.String getStat(java.lang.String code)
Modifiable
getStat in interface Modifiablecode - the name of the field to read.
Modifiable.getStatCodes()
public void setStat(java.lang.String code,
java.lang.String val)
Modifiable
setStat in interface Modifiablecode - the name of the field to setval - the value to set the field toModifiable.getStatCodes()public boolean sameAs(Environmental E)
Environmental
sameAs in interface EnvironmentalE - the object to compare this one to
Modifiable.getStatCodes(),
Modifiable.getStat(String)public boolean isSameRoom(java.lang.Object O)
isSameRoom in interface Room
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||