|
|||||||||
| 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
public class StdMOB
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface com.planet_ink.coffee_mud.MOBS.interfaces.MOB |
|---|
MOB.Follower, MOB.QMCommand, MOB.Tattoo |
| 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> |
abilitys
|
protected SVector<Ability> |
affects
|
protected long |
ageHours
|
protected boolean |
amDead
|
protected boolean |
amDestroyed
|
protected MOB |
amFollowing
|
protected int |
atRange
|
protected int |
attributesBitmap
|
protected CharStats |
baseCharStats
|
protected PhyStats |
basePhyStats
|
CharState |
baseState
|
protected SVector<Behavior> |
behaviors
|
protected java.lang.ref.WeakReference<Clan> |
cachedClan
|
protected java.lang.String |
cachedImageName
|
protected CharStats |
charStats
|
protected ChameleonList<Ability> |
clanAffects
|
protected java.lang.String |
clanID
|
protected int |
clanRole
|
protected static java.lang.String[] |
CODES
|
protected java.util.LinkedList<MOB.QMCommand> |
commandQue
|
CharState |
curState
|
protected java.lang.String |
databaseID
|
protected byte[] |
description
|
protected java.lang.String |
displayText
|
protected int |
experience
|
protected SVector<java.lang.String> |
expertises
|
protected SHashtable<java.lang.String,Faction.FactionData> |
factions
|
protected SVector<MOB.Follower> |
followers
|
protected boolean |
imMobile
|
protected SVector<Item> |
inventory
|
protected boolean |
kickFlag
|
protected Room |
lastLocation
|
protected java.lang.String |
liegeID
|
protected Room |
location
|
CharState |
maxState
|
protected byte[] |
miscText
|
protected int |
money
|
protected double |
moneyVariation
|
protected Session |
mySession
|
protected long |
peaceTime
|
protected PhyStats |
phyStats
|
protected PlayerStats |
playerStats
|
protected boolean |
pleaseDestroy
|
protected int |
possibleWeaponIndex
|
protected int |
practices
|
protected int |
questPoint
|
protected ChameleonList<Ability> |
racialAffects
|
protected java.lang.String |
rawImageName
|
protected int |
recoverTickCounter
|
protected Rideable |
riding
|
protected SVector<ScriptingEngine> |
scripts
|
protected MOB |
soulMate
|
protected Room |
startRoomPossibly
|
protected SVector<MOB.Tattoo> |
tattoos
|
protected int |
tickCounter
|
protected long |
tickStatus
|
protected int |
trains
|
java.lang.String |
username
|
protected MOB |
victim
|
protected int |
wimpHitPoint
|
protected java.lang.String |
worshipCharID
|
protected java.lang.String[] |
xtraValues
|
| Fields inherited from interface com.planet_ink.coffee_mud.MOBS.interfaces.MOB |
|---|
ATT_ANSI, ATT_AUTOASSIST, ATT_AUTODRAW, ATT_AUTOEXITS, ATT_AUTOFORWARD, ATT_AUTOGOLD, ATT_AUTOGUARD, ATT_AUTOIMPROVE, ATT_AUTOLOOT, ATT_AUTOMELEE, ATT_AUTONOTIFY, ATT_AUTORUN, ATT_AUTOWEATHER, ATT_BRIEF, ATT_COMPRESS, ATT_DAILYMESSAGE, ATT_MXP, ATT_NOFOLLOW, ATT_NOTEACH, ATT_PLAYERKILL, ATT_QUIET, ATT_SOUND, ATT_SYSOPMSGS, AUTODESC, AUTOREV, END_SHEATH_TIME, START_SHEATH_TIME |
| Constructor Summary | |
|---|---|
StdMOB()
|
|
| Method Summary | |
|---|---|
java.util.Enumeration<Ability> |
abilities()
|
double |
actions()
|
void |
addAbility(Ability to)
Manipulation of ability objects, which includes spells, traits, skills, etc. |
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 |
addExpertise(java.lang.String of)
Manipulation of the expertise list |
void |
addFaction(java.lang.String which,
int start)
Manipulation of the factions list |
void |
addFollower(MOB follower,
int order)
Manipulation of followers |
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 |
addPriorityEffect(Ability to)
|
void |
addScript(ScriptingEngine S)
Manipulation of the scripts list |
void |
addTattoo(MOB.Tattoo of)
Manipulation of the tatoo list |
void |
adjustFaction(java.lang.String which,
int amount)
|
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 |
amActive()
|
boolean |
amDead()
Combat and death |
boolean |
amDestroyed()
Whether the destroy() method has been previousy called on this object. |
MOB |
amFollowing()
|
MOB |
amUltimatelyFollowing()
|
CharStats |
baseCharStats()
|
PhyStats |
basePhyStats()
Object containing a set of base, unmodified, mostly numeric fields. |
CharState |
baseState()
|
int |
baseWeight()
|
java.util.Enumeration<Behavior> |
behaviors()
Returns an enumerator of all the behaviors on this object. |
void |
bringToLife()
|
void |
bringToLife(Room newLocation,
boolean resetStats)
|
protected double |
calculateTickDelay(java.lang.Object command,
java.util.List<java.lang.String> commands,
double tickDelay)
|
boolean |
canSaveDatabaseID()
Returns true if this object can safely store and retrieve a database ID, and false if the TYPE of object can, but this particular instance can not. |
CharStats |
charStats()
|
protected ChameleonList<Ability> |
clanEffects()
|
protected void |
cloneFix(MOB M)
|
int |
commandQueSize()
|
int |
compareTo(CMObject o)
|
void |
copyFactions(MOB source)
|
CMObject |
copyOf()
Similar to Cloneable.clone(), but does its best to make sure that any internal objects to this class are also copyOfed. |
CharState |
curState()
|
java.lang.String |
databaseID()
Retrieve the unique contextual database ID for this object. |
void |
delAbility(Ability to)
|
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 |
delExpertise(java.lang.String of)
|
void |
delFollower(MOB follower)
|
void |
delItem(Item item)
Removes the item from this possessor. |
void |
delScript(ScriptingEngine S)
Remove a running script from this object. |
void |
delTattoo(MOB.Tattoo of)
|
boolean |
dequeCommand()
|
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 |
displayName(MOB viewer)
|
java.lang.String |
displayText()
Gets the raw string used to show what this object looks like in the room. |
java.lang.String |
displayText(MOB viewer)
|
void |
dispossess(boolean giveMsg)
|
void |
doCommand(java.util.List commands,
int metaFlags)
|
protected void |
doCommand(java.lang.Object O,
java.util.List commands,
int metaFlags)
|
java.util.Enumeration<Ability> |
effects()
Returns an enumerator of abilities listed as effects on this object. |
void |
enqueCommand(java.util.List<java.lang.String> commands,
int metaFlags,
double tickDelay)
|
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. |
Ability |
fetchAbility(int index)
|
Ability |
fetchAbility(java.lang.String ID)
|
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. |
Item |
fetchCarried(Item goodLocation,
java.lang.String itemName)
|
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. |
java.lang.String |
fetchExpertise(int x)
|
java.lang.String |
fetchExpertise(java.lang.String of)
|
int |
fetchFaction(java.lang.String which)
|
java.util.List<java.lang.String> |
fetchFactionRanges()
|
java.util.Enumeration<java.lang.String> |
fetchFactions()
|
Item |
fetchFirstWornItem(long wornCode)
|
MOB |
fetchFollower(int index)
|
MOB |
fetchFollower(java.lang.String named)
|
int |
fetchFollowerOrder(MOB thisOne)
|
Item |
fetchFromInventory(Item goodLocation,
java.lang.String itemName,
int wornFilter,
boolean allowCoins,
boolean respectLocationAndWornCode)
|
ScriptingEngine |
fetchScript(int x)
Retreive one of the enumerated scripts running on this object |
Item |
fetchWieldedItem()
|
Item |
fetchWornItem(java.lang.String itemName)
|
java.util.List<Item> |
fetchWornItems(long wornCode,
short aboveOrAroundLayer,
short layerAttributes)
|
Ability |
findAbility(java.lang.String ID)
|
Item |
findItem(Item goodLocation,
java.lang.String itemName)
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 itemName)
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 itemName)
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 itemName)
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). |
MOB.Tattoo |
findTattoo(java.lang.String of)
|
void |
flagVariableEq()
Manipulation of inventory, which includes held, worn, wielded, and contained items |
java.util.Enumeration<MOB.Follower> |
followers()
|
int |
freeWearPositions(long wornCode,
short belowLayer,
short layerAttributes)
|
java.lang.String |
genericName()
|
long |
getAgeHours()
|
int |
getBitmap()
|
java.lang.String |
getClanID()
|
int |
getClanRole()
|
protected int |
getCodeNum(java.lang.String code)
|
int |
getExperience()
|
int |
getExpNeededDelevel()
|
int |
getExpNeededLevel()
|
int |
getExpNextLevel()
|
int |
getExpPrevLevel()
|
java.lang.String |
getFactionListing()
|
java.util.Set<MOB> |
getGroupMembers(java.util.Set<MOB> list)
|
Item |
getItem(int index)
Returns the item at the given index, regardless of container status, visibility, or other modifiers. |
java.lang.String |
getLiegeID()
|
int |
getMoney()
|
double |
getMoneyVariation()
|
Clan |
getMyClan()
|
Deity |
getMyDeity()
|
int |
getPractices()
|
int |
getQuestPoint()
|
java.util.Set<MOB> |
getRideBuddies(java.util.Set<MOB> list)
|
int |
getSaveStatIndex()
Returns the index into the stat codes array where extra savable fields begins. |
Room |
getStartRoom()
|
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. |
int |
getTrains()
|
MOB |
getVictim()
|
int |
getWearPositions(long wornCode)
|
int |
getWimpHitPoint()
|
java.lang.String |
getWorshipCharID()
|
boolean |
hasFaction(java.lang.String which)
|
boolean |
hasOnlyGoldInInventory()
|
java.lang.String |
healthText(MOB viewer)
|
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. |
void |
initializeClass()
Called ONCE after all objects are loaded, but before the map is read in during initialization. |
boolean |
isContent(Item I)
Returns whether the given item is in this possessors list. |
boolean |
isFollowedBy(MOB thisOne)
|
boolean |
isGeneric()
Whether the fields of this item are set in code, or set by builders. |
boolean |
isInCombat()
|
boolean |
isMarriedToLiege()
|
boolean |
isMine(Environmental env)
|
boolean |
isMonster()
|
boolean |
isPossessing()
|
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. |
DeadBody |
killMeDead(boolean createBody)
|
long |
lastTickedDateTime()
|
Room |
location()
|
void |
makePeace()
|
int |
maxCarry()
|
int |
maxFollowers()
|
int |
maxItems()
|
int |
maxRange()
the maximum range of this object, if applicable. |
int |
maxRange(Environmental tool)
|
CharState |
maxState()
|
boolean |
mayIFight(MOB mob)
|
boolean |
mayPhysicallyAttack(MOB mob)
|
int |
minRange()
the minimum range of this object, if applicable. |
int |
minRange(Environmental tool)
|
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 container,
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. |
Weapon |
myNaturalWeapon()
|
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 |
numAbilities()
|
int |
numAllEffects()
|
int |
numBehaviors()
The number of behaviors this object has. |
int |
numEffects()
Returns the number of ability objects listed as effects on this object. |
int |
numExpertises()
|
int |
numFollowers()
|
int |
numItems()
Returns the total number of items at this possessor, regardless of container status. |
int |
numLearnedAbilities()
|
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. |
long |
peaceTime()
|
java.util.Enumeration<Ability> |
personalEffects()
|
PhyStats |
phyStats()
Object containing a set of current, modified, usable, mostly numeric fields. |
PlayerStats |
playerStats()
Some general statistics about MOBs. |
void |
prequeCommand(java.util.Vector commands,
int metaFlags,
double tickDelay)
|
protected ChameleonList<Ability> |
racialEffects()
|
int |
rangeToTarget()
|
java.lang.String |
rawImage()
Returns the raw name of the image file to display for this object when MXP is used. |
void |
recoverCharStats()
|
void |
recoverMaxState()
|
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 |
removeFaction(java.lang.String which)
|
void |
removeFromGame(boolean preserveFollowers,
boolean killSession)
|
void |
resetToMaxState()
|
Rideable |
riding()
Returns the Rideable upon which this Rider is Riding. |
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. |
Session |
session()
Whether a sessiob object is attached to this MOB |
void |
setActions(double remain)
|
void |
setAgeHours(long newVal)
|
void |
setAtRange(int newRange)
|
void |
setBaseCharStats(CharStats newBaseCharStats)
|
void |
setBasePhyStats(PhyStats newStats)
Re-sets the object containing a set of base, unmodified, mostly numeric fields. |
void |
setBaseState(CharState newState)
|
void |
setBitmap(int newVal)
|
void |
setClanID(java.lang.String clan)
|
void |
setClanRole(int role)
|
void |
setDatabaseID(java.lang.String id)
Set the unique contextual database ID for this object. |
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 |
setExperience(int newVal)
|
void |
setExpirationDate(long time)
If this object expires, it should have a timestamp saying when it expires, in real time. |
void |
setExpNextLevel(int newVal)
|
void |
setFollowing(MOB mob)
|
void |
setImage(java.lang.String newImage)
Sets the raw name of the image file to display for this object when MXP is used. |
void |
setLiegeID(java.lang.String newVal)
|
void |
setLocation(Room newRoom)
|
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 |
setMoney(int newVal)
|
void |
setMoneyVariation(double newVal)
|
void |
setName(java.lang.String newName)
Sets the raw unmodified name of this object as stored in the database. |
void |
setPlayerStats(PlayerStats newStats)
|
void |
setPractices(int newVal)
|
void |
setQuestPoint(int newVal)
|
void |
setRiding(Rideable ride)
Sets the Rideable upon which this Rider is Riding. |
void |
setSavable(boolean truefalse)
Sets whether this behavior can be saved as a permanent aspect of its host. |
void |
setSession(Session newSession)
|
void |
setSoulMate(MOB mob)
|
void |
setStartRoom(Room room)
|
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. |
void |
setTrains(int newVal)
|
void |
setVictim(MOB mob)
|
void |
setWimpHitPoint(int newVal)
|
void |
setWorshipCharID(java.lang.String newVal)
|
MOB |
soulMate()
|
java.util.Enumeration<MOB.Tattoo> |
tattoos()
|
void |
tell(MOB source,
Environmental target,
Environmental tool,
java.lang.String msg)
Primary mob communication |
void |
tell(java.lang.String msg)
|
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. |
java.lang.String |
titledName()
|
int |
totalFollowers()
|
java.util.Enumeration<java.lang.String> |
uniqueExpertises()
|
boolean |
willFollowOrdersOf(MOB mob)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public java.lang.String username
protected java.lang.String clanID
protected java.lang.ref.WeakReference<Clan> cachedClan
protected int clanRole
protected CharStats baseCharStats
protected CharStats charStats
protected PhyStats phyStats
protected PhyStats basePhyStats
protected PlayerStats playerStats
protected boolean amDead
protected Room location
protected Room lastLocation
protected Rideable riding
protected Session mySession
protected boolean pleaseDestroy
protected byte[] description
protected java.lang.String displayText
protected java.lang.String rawImageName
protected java.lang.String cachedImageName
protected byte[] miscText
protected java.lang.String[] xtraValues
protected int possibleWeaponIndex
protected long tickStatus
protected SVector<Item> inventory
protected SVector<Ability> abilitys
protected SVector<Ability> affects
protected SVector<Behavior> behaviors
protected SVector<MOB.Tattoo> tattoos
protected SVector<java.lang.String> expertises
protected SVector<MOB.Follower> followers
protected java.util.LinkedList<MOB.QMCommand> commandQue
protected SVector<ScriptingEngine> scripts
protected SHashtable<java.lang.String,Faction.FactionData> factions
protected ChameleonList<Ability> racialAffects
protected ChameleonList<Ability> clanAffects
protected int experience
protected int practices
protected int trains
protected long ageHours
protected int money
protected double moneyVariation
protected int attributesBitmap
protected java.lang.String databaseID
protected int tickCounter
protected int recoverTickCounter
public CharState curState
public CharState maxState
public CharState baseState
protected Room startRoomPossibly
protected java.lang.String worshipCharID
protected java.lang.String liegeID
protected int wimpHitPoint
protected int questPoint
protected MOB victim
protected MOB amFollowing
protected MOB soulMate
protected int atRange
protected long peaceTime
protected boolean amDestroyed
protected boolean kickFlag
protected boolean imMobile
protected static java.lang.String[] CODES
| Constructor Detail |
|---|
public StdMOB()
| Method Detail |
|---|
public java.lang.String ID()
CMObject
ID in interface CMObjectpublic long lastTickedDateTime()
lastTickedDateTime in interface MOBpublic void flagVariableEq()
MOB
flagVariableEq in interface MOBpublic long getAgeHours()
getAgeHours in interface MOBpublic int getPractices()
getPractices in interface MOBpublic int getExperience()
getExperience in interface MOBpublic int getExpNextLevel()
getExpNextLevel in interface MOBpublic int getExpPrevLevel()
getExpPrevLevel in interface MOBpublic int getExpNeededDelevel()
getExpNeededDelevel in interface MOBpublic int getExpNeededLevel()
getExpNeededLevel in interface MOBpublic int getTrains()
getTrains in interface MOBpublic int getMoney()
getMoney in interface MOBpublic double getMoneyVariation()
getMoneyVariation in interface MOBpublic int getBitmap()
getBitmap in interface MOBpublic void setAgeHours(long newVal)
setAgeHours in interface MOBpublic void setExperience(int newVal)
setExperience in interface MOBpublic void setExpNextLevel(int newVal)
setExpNextLevel in interface MOBpublic void setPractices(int newVal)
setPractices in interface MOBpublic void setTrains(int newVal)
setTrains in interface MOBpublic void setMoney(int newVal)
setMoney in interface MOBpublic void setMoneyVariation(double newVal)
setMoneyVariation in interface MOBpublic void setBitmap(int newVal)
setBitmap in interface MOBpublic java.lang.String getFactionListing()
getFactionListing in interface MOBpublic java.lang.String getLiegeID()
getLiegeID in interface MOBpublic java.lang.String getWorshipCharID()
getWorshipCharID in interface MOBpublic int getWimpHitPoint()
getWimpHitPoint in interface MOBpublic int getQuestPoint()
getQuestPoint in interface MOBpublic void setLiegeID(java.lang.String newVal)
setLiegeID in interface MOBpublic void setWorshipCharID(java.lang.String newVal)
setWorshipCharID in interface MOBpublic void setWimpHitPoint(int newVal)
setWimpHitPoint in interface MOBpublic void setQuestPoint(int newVal)
setQuestPoint in interface MOBpublic Deity getMyDeity()
getMyDeity in interface MOBpublic final Clan getMyClan()
getMyClan in interface MOBpublic void initializeClass()
CMObject
initializeClass in interface CMObjectpublic CMObject newInstance()
CMObject
newInstance in interface CMObjectpublic Room getStartRoom()
getStartRoom in interface MOBpublic void setStartRoom(Room room)
setStartRoom in interface MOBpublic long peaceTime()
peaceTime in interface MOBpublic void setDatabaseID(java.lang.String id)
DBIdentifiable
setDatabaseID in interface DBIdentifiableid - the unique contextual database ID for this object.DBIdentifiable.canSaveDatabaseID(),
DBIdentifiable.databaseID()public boolean canSaveDatabaseID()
DBIdentifiable
canSaveDatabaseID in interface DBIdentifiableDBIdentifiable.databaseID(),
DBIdentifiable.setDatabaseID(String)public java.lang.String databaseID()
DBIdentifiable
databaseID in interface DBIdentifiableDBIdentifiable.canSaveDatabaseID(),
DBIdentifiable.setDatabaseID(String)public 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 titledName()
titledName in interface MOBpublic java.lang.String genericName()
genericName in interface MOBpublic 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 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 final boolean amDestroyed()
Contingent
amDestroyed in interface Contingentprotected void cloneFix(MOB M)
public CMObject copyOf()
CMObject
copyOf in interface CMObjectpublic boolean isGeneric()
Environmental
isGeneric in interface EnvironmentalEnvironmental.text()public 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 setBasePhyStats(PhyStats newStats)
Affectable
setBasePhyStats in interface AffectablenewStats - a set of state fieldsAffectable.phyStats(),
Affectable.recoverPhyStats(),
PhyStatspublic int baseWeight()
baseWeight in interface MOBpublic int maxCarry()
maxCarry in interface MOBpublic int maxItems()
maxItems in interface MOBpublic int maxFollowers()
maxFollowers in interface MOBpublic int totalFollowers()
totalFollowers in interface MOBpublic CharStats baseCharStats()
baseCharStats in interface MOBpublic CharStats charStats()
charStats in interface MOBpublic void recoverCharStats()
recoverCharStats in interface MOBpublic void setBaseCharStats(CharStats newBaseCharStats)
setBaseCharStats in interface MOB
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 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 boolean isMarriedToLiege()
isMarriedToLiege in interface MOBpublic CharState curState()
curState in interface MOBpublic CharState maxState()
maxState in interface MOBpublic CharState baseState()
baseState in interface MOBpublic PlayerStats playerStats()
MOB
playerStats in interface MOBpublic void setPlayerStats(PlayerStats newStats)
setPlayerStats in interface MOBpublic void setBaseState(CharState newState)
setBaseState in interface MOBpublic void resetToMaxState()
resetToMaxState in interface MOBpublic void recoverMaxState()
recoverMaxState in interface MOBpublic boolean amDead()
MOB
amDead in interface MOBpublic boolean amActive()
amActive in interface MOBpublic void dispossess(boolean giveMsg)
dispossess in interface MOBpublic void destroy()
Contingent
destroy in interface Contingent
public void removeFromGame(boolean preserveFollowers,
boolean killSession)
removeFromGame in interface MOBpublic java.lang.String getClanID()
getClanID in interface MOBpublic void setClanID(java.lang.String clan)
setClanID in interface MOBpublic int getClanRole()
getClanRole in interface MOBpublic void setClanRole(int role)
setClanRole in interface MOBpublic void bringToLife()
bringToLife in interface MOB
public void bringToLife(Room newLocation,
boolean resetStats)
bringToLife in interface MOBpublic boolean isInCombat()
isInCombat in interface MOBpublic boolean mayIFight(MOB mob)
mayIFight in interface MOBpublic boolean mayPhysicallyAttack(MOB mob)
mayPhysicallyAttack in interface MOBpublic void setAtRange(int newRange)
setAtRange in interface MOBpublic int rangeToTarget()
rangeToTarget in interface MOBpublic int maxRange()
Environmental
maxRange in interface Environmentalpublic int minRange()
Environmental
minRange in interface Environmentalpublic int maxRange(Environmental tool)
maxRange in interface MOBpublic int minRange(Environmental tool)
minRange in interface MOBpublic void makePeace()
makePeace in interface MOBpublic MOB getVictim()
getVictim in interface MOBpublic void setVictim(MOB mob)
setVictim in interface MOBpublic DeadBody killMeDead(boolean createBody)
killMeDead in interface MOBpublic Room location()
location in interface MOBpublic void setLocation(Room newRoom)
setLocation in interface MOBpublic Rideable riding()
Rider
riding in interface RiderRideablepublic void setRiding(Rideable ride)
Rider
setRiding in interface Riderride - the Rideable to ride uponRideablepublic Session session()
MOB
session in interface MOBpublic void setSession(Session newSession)
setSession in interface MOBpublic Weapon myNaturalWeapon()
myNaturalWeapon in interface MOBpublic java.lang.String displayName(MOB viewer)
displayName in interface MOBpublic java.lang.String displayText(MOB viewer)
displayText in interface MOBpublic 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 void setMiscText(java.lang.String newText)
Environmental
setMiscText in interface EnvironmentalnewText - either an open internal text string, or XMLpublic java.lang.String text()
Environmental
text in interface Environmentalpublic java.lang.String miscTextFormat()
Environmental
miscTextFormat in interface EnvironmentalCMParms,
Environmental.text(),
Environmental.setMiscText(String)public java.lang.String healthText(MOB viewer)
healthText in interface MOBpublic double actions()
actions in interface MOBpublic void setActions(double remain)
setActions in interface MOBpublic int commandQueSize()
commandQueSize in interface MOBpublic boolean dequeCommand()
dequeCommand in interface MOB
public void doCommand(java.util.List commands,
int metaFlags)
doCommand in interface MOB
protected void doCommand(java.lang.Object O,
java.util.List commands,
int metaFlags)
protected double calculateTickDelay(java.lang.Object command,
java.util.List<java.lang.String> commands,
double tickDelay)
public void prequeCommand(java.util.Vector commands,
int metaFlags,
double tickDelay)
prequeCommand in interface MOB
public void enqueCommand(java.util.List<java.lang.String> commands,
int metaFlags,
double tickDelay)
enqueCommand in interface MOB
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 tell(MOB source,
Environmental target,
Environmental tool,
java.lang.String msg)
MOB
tell in interface MOBpublic void tell(java.lang.String msg)
tell in interface MOB
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 executedCMMsg
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 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 boolean isMonster()
isMonster in interface MOBpublic boolean isPossessing()
isPossessing in interface MOBpublic int compareTo(CMObject o)
compareTo in interface java.lang.Comparable<CMObject>public void addItem(Item item)
ItemPossessor
addItem in interface ItemPossessoritem - the item to addItemPossessor.delItem(Item)
public void addItem(Item item,
ItemPossessor.Expire expire)
ItemPossessor
addItem in interface ItemPossessoritem - the item to addItemPossessor.Expirepublic void delItem(Item item)
ItemPossessor
delItem in interface ItemPossessoritem - the item to removepublic int numItems()
ItemPossessor
numItems in interface ItemPossessorpublic java.util.Enumeration<Item> items()
ItemPossessor
items in interface ItemPossessorpublic boolean isContent(Item I)
ItemPossessor
isContent in interface ItemPossessorI - the item to check
public java.util.List<Item> findItems(Item goodLocation,
java.lang.String itemName)
ItemPossessor
findItems in interface ItemPossessorgoodLocation - the container to look in, or null for noneitemName - the name or partial name of the item to fetch
public Item getItem(int index)
ItemPossessor
getItem in interface ItemPossessorindex - the index of the item
public Item fetchFromInventory(Item goodLocation,
java.lang.String itemName,
int wornFilter,
boolean allowCoins,
boolean respectLocationAndWornCode)
fetchFromInventory in interface MOBpublic Item findItem(java.lang.String itemName)
ItemPossessor
findItem in interface ItemPossessoritemName - the name or partial name of the item to fetch
public Item findItem(Item goodLocation,
java.lang.String itemName)
ItemPossessor
findItem in interface ItemPossessorgoodLocation - the container to look in, or null for noneitemName - the name or partial name of the item to fetch
public Item fetchCarried(Item goodLocation,
java.lang.String itemName)
fetchCarried in interface MOBpublic Item fetchWornItem(java.lang.String itemName)
fetchWornItem in interface MOBpublic java.util.List<Item> findItems(java.lang.String itemName)
ItemPossessor
findItems in interface ItemPossessoritemName - the name or partial name of the item to fetch
public void addFollower(MOB follower,
int order)
MOB
addFollower in interface MOBpublic void delFollower(MOB follower)
delFollower in interface MOBpublic int numFollowers()
numFollowers in interface MOBpublic java.util.Enumeration<MOB.Follower> followers()
followers in interface MOBpublic int fetchFollowerOrder(MOB thisOne)
fetchFollowerOrder in interface MOBpublic MOB fetchFollower(java.lang.String named)
fetchFollower in interface MOBpublic MOB fetchFollower(int index)
fetchFollower in interface MOBpublic boolean isFollowedBy(MOB thisOne)
isFollowedBy in interface MOBpublic boolean willFollowOrdersOf(MOB mob)
willFollowOrdersOf in interface MOBpublic MOB amUltimatelyFollowing()
amUltimatelyFollowing in interface MOBpublic MOB amFollowing()
amFollowing in interface MOBpublic void setFollowing(MOB mob)
setFollowing in interface MOBpublic java.util.Set<MOB> getRideBuddies(java.util.Set<MOB> list)
getRideBuddies in interface MOBpublic java.util.Set<MOB> getGroupMembers(java.util.Set<MOB> list)
getGroupMembers in interface MOBpublic 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 MOB soulMate()
soulMate in interface MOBpublic void setSoulMate(MOB mob)
setSoulMate in interface MOBpublic void addAbility(Ability to)
MOB
addAbility in interface MOBpublic void delAbility(Ability to)
delAbility in interface MOBpublic int numLearnedAbilities()
numLearnedAbilities in interface MOBpublic java.util.Enumeration<Ability> abilities()
abilities in interface MOBpublic int numAbilities()
numAbilities in interface MOBpublic Ability fetchAbility(int index)
fetchAbility in interface MOBpublic Ability fetchAbility(java.lang.String ID)
fetchAbility in interface MOBpublic Ability findAbility(java.lang.String ID)
findAbility in interface MOBprotected final ChameleonList<Ability> racialEffects()
protected final ChameleonList<Ability> clanEffects()
public void addNonUninvokableEffect(Ability to)
Affectable
addNonUninvokableEffect in interface Affectableto - The ability object to add as an effect.Ability,
Affectable.recoverPhyStats()public void addPriorityEffect(Ability to)
addPriorityEffect in interface MOBpublic void addEffect(Ability to)
Affectable
addEffect 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 numAllEffects()
numAllEffects in interface MOBpublic int numEffects()
Affectable
numEffects 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 java.util.Enumeration<Ability> personalEffects()
personalEffects in interface MOBpublic java.util.Enumeration<Ability> effects()
Affectable
effects in interface AffectableAbilitypublic 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 addExpertise(java.lang.String of)
addExpertise in interface MOBpublic void delExpertise(java.lang.String of)
delExpertise in interface MOBpublic int numExpertises()
numExpertises in interface MOBpublic java.util.Enumeration<java.lang.String> uniqueExpertises()
uniqueExpertises in interface MOBpublic java.lang.String fetchExpertise(int x)
fetchExpertise in interface MOBpublic java.lang.String fetchExpertise(java.lang.String of)
fetchExpertise in interface MOBpublic 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 void addTattoo(MOB.Tattoo of)
addTattoo in interface MOBpublic void delTattoo(MOB.Tattoo of)
delTattoo in interface MOBpublic java.util.Enumeration<MOB.Tattoo> tattoos()
tattoos in interface MOBpublic MOB.Tattoo findTattoo(java.lang.String of)
findTattoo in interface MOB
public void addFaction(java.lang.String which,
int start)
addFaction in interface MOB
public void adjustFaction(java.lang.String which,
int amount)
adjustFaction in interface MOBpublic java.util.Enumeration<java.lang.String> fetchFactions()
fetchFactions in interface MOBpublic int fetchFaction(java.lang.String which)
fetchFaction in interface MOBpublic void removeFaction(java.lang.String which)
removeFaction in interface MOBpublic void copyFactions(MOB source)
copyFactions in interface MOBpublic boolean hasFaction(java.lang.String which)
hasFaction in interface MOBpublic java.util.List<java.lang.String> fetchFactionRanges()
fetchFactionRanges in interface MOB
public int freeWearPositions(long wornCode,
short belowLayer,
short layerAttributes)
freeWearPositions in interface MOBpublic int getWearPositions(long wornCode)
getWearPositions in interface MOB
public java.util.List<Item> fetchWornItems(long wornCode,
short aboveOrAroundLayer,
short layerAttributes)
fetchWornItems in interface MOBpublic boolean hasOnlyGoldInInventory()
hasOnlyGoldInInventory in interface MOBpublic Item fetchFirstWornItem(long wornCode)
fetchFirstWornItem in interface MOBpublic Item fetchWieldedItem()
fetchWieldedItem in interface MOBpublic boolean isMine(Environmental env)
isMine in interface MOB
public void moveItemTo(Item container,
ItemPossessor.Expire expire,
ItemPossessor.Move... moveFlags)
ItemPossessor
moveItemTo in interface ItemPossessorcontainer - the item to addexpire - the expiration codemoveFlags - any flags related to the moveItemPossessor.Expirepublic void moveItemTo(Item container)
ItemPossessor
moveItemTo in interface ItemPossessorcontainer - the item to addItemPossessor.Expirepublic 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 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 boolean sameAs(Environmental E)
Environmental
sameAs in interface EnvironmentalE - the object to compare this one to
Modifiable.getStatCodes(),
Modifiable.getStat(String)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||