Affectable
, Behavable
, CloseableLockable
, CMObject
, Contingent
, DBIdentifiable
, Environmental
, Expireable
, Modifiable
, MsgListener
, Physical
, PhysicalAgent
, Readable
, Rider
, StatsAffecting
, Tickable
, Container
, DeadBody
, Item
, Wearable
, java.lang.Cloneable
, java.lang.Comparable<CMObject>
GenCorpse
public class Corpse extends GenContainer implements DeadBody
Wearable.CODES
Modifier and Type | Field | Description |
---|---|---|
protected CharStats |
charStats |
|
protected int |
deadMobHash |
|
protected java.lang.String |
killerName |
|
protected boolean |
killerPlayer |
|
protected Environmental |
killingTool |
|
protected java.lang.String |
lastMessage |
|
protected boolean |
lootDestroy |
|
protected java.lang.String |
mobDesc |
|
protected java.lang.String |
mobName |
|
protected boolean |
mobPKFlag |
|
protected boolean |
playerCorpse |
|
protected MOB |
savedMOB |
|
protected boolean |
saveSavedMOB |
|
protected long |
timeOfDeath |
idConverter
CONTAIN_ANYTHING, CONTAIN_BODIES, CONTAIN_CAGED, CONTAIN_CLOTHES, CONTAIN_COINS, CONTAIN_DAGGERS, CONTAIN_DESCS, CONTAIN_DRINKABLES, CONTAIN_EATABLES, CONTAIN_FOOTWEAR, CONTAIN_KEYS, CONTAIN_LIQUID, CONTAIN_ONEHANDWEAPONS, CONTAIN_OTHERWEAPONS, CONTAIN_RAWMATERIALS, CONTAIN_READABLES, CONTAIN_SCROLLS, CONTAIN_SHIELDS, CONTAIN_SMOKEABLES, CONTAIN_SSCOMPONENTS, CONTAIN_SWORDS
readableText
capacity, containType, defaultsClosed, defaultsLocked, hasALid, hasALock, isLocked, isOpen, openDelayTicks
_name, affectPhyStats, affects, baseGoldValue, basePhyStats, behaviors, cachedImageName, CODES, databaseID, description, destroyed, displayText, dispossessionTime, material, me, miscText, myContainer, myUses, myWornCode, owner, phyStats, properWornBitmap, rawImageName, riding, scripts, secretIdentity, tickCtr, tickStatus, wornLogicalAnd, xtraValues
STATUS_AFFECT, STATUS_ALIVE, STATUS_BEHAVIOR, STATUS_CLASS, STATUS_DEAD, STATUS_END, STATUS_FIGHT, STATUS_MISC, STATUS_MISC2, STATUS_MISC3, STATUS_MISC4, STATUS_MISC5, STATUS_MISC6, STATUS_MISC7, STATUS_NOT, STATUS_OTHER, STATUS_RACE, STATUS_REBIRTH, STATUS_SCRIPT, STATUS_START, STATUS_WEATHER, TICKID_AREA, TICKID_BALLISTICK, TICKID_CLAN, TICKID_CLANITEM, TICKID_DEADBODY_DECAY, TICKID_ELECTRONICS, TICKID_EMAIL, TICKID_EVENT, TICKID_EXIT_BEHAVIOR, TICKID_EXIT_REOPEN, TICKID_ITEM_BEHAVIOR, TICKID_ITEM_BOUNCEBACK, TICKID_LIGHT_FLICKERS, TICKID_LIVEAUCTION, TICKID_LONGERMASK, TICKID_MISCELLANEOUS, TICKID_MOB, TICKID_PROPERTY_SPECIAL, TICKID_QUEST, TICKID_READYTOSTOP, TICKID_ROOM_BEHAVIOR, TICKID_ROOM_ITEM_REJUV, TICKID_SHORTERMASK, TICKID_SOLITARYMASK, TICKID_SPECIALCOMBAT, TICKID_SPECIALMANEUVER, TICKID_SPELL_AFFECT, TICKID_SUPPORT, TICKID_TIMEAUCTION, TICKID_TRAP_DESTRUCTION, TICKID_TRAP_RESET
DEFAULT_WORN_CODES, DEFAULT_WORN_DEPENDENCYGRID, DEFAULT_WORN_DESCS, DEFAULT_WORN_ORDER, DEFAULT_WORN_USUAL_NAMES, DEFAULT_WORN_WEIGHT_POINTS, DEFAULT_WORN_WEIGHTS, FILTER_ANY, FILTER_MOBINVONLY, FILTER_ROOMONLY, FILTER_UNWORNONLY, FILTER_WORNONLY, HIGHEST_WORN_CODE, IN_INVENTORY, WORN_ABOUT_BODY, WORN_ARMS, WORN_BACK, WORN_EARS, WORN_EYES, WORN_FEET, WORN_FLOATING_NEARBY, WORN_HANDS, WORN_HEAD, WORN_HELD, WORN_LEFT_FINGER, WORN_LEFT_WRIST, WORN_LEGS, WORN_MOUTH, WORN_NECK, WORN_RIGHT_FINGER, WORN_RIGHT_WRIST, WORN_TORSO, WORN_WAIST, WORN_WIELD
Constructor | Description |
---|---|
Corpse() |
Modifier and Type | Method | Description |
---|---|---|
CharStats |
charStats() |
Returns the collection of character stats about the
deceased mob.
|
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.
|
void |
executeMsg(Environmental myHost,
CMMsg msg) |
The general message event handler for the object.
|
java.lang.String |
genericName() |
Returns a generic name for this object, devoid of its particular
identifying details.
|
java.lang.String |
getKillerName() |
Gets the name of the mob that killed the deceased mob whose corpse this is.
|
Environmental |
getKillerTool() |
Gets the weapon wielded by the killer at the time of death of the deceased mob.
|
java.lang.String |
getLastMessage() |
Gets the last message seen by the deceased mob whose corpse this is.
|
java.lang.String |
getMobDescription() |
Gets the deceased's description.
|
int |
getMobHash() |
Gets the hash that uniquely identifies the deceased mob object.
|
java.lang.String |
getMobName() |
Gets the deceased's name.
|
boolean |
getMobPKFlag() |
Gets whether the mob, whose corpse this is, had their PlayerKill flag
on at the time of death, probably denoting a duel of some sort.
|
MOB |
getSavedMOB() |
Gets the mob object belonging to the deceased.
|
long |
getTimeOfDeath() |
Gets the real world time, in milliseconds, that the death of this
corpse occurred.
|
java.lang.String |
ID() |
The CoffeeMud Java Class ID shared by all instances of
this object.
|
boolean |
isDestroyedAfterLooting() |
Gets whether this corpse is automatically destroyed by the system after it has been
looted.
|
boolean |
isKillerPlayer() |
Gets whether the mob who killed the deceased mob whose corpse this is was a player
or a mob.
|
boolean |
isPlayerCorpse() |
Gets whether the deceased mob whose corpse this is was a player.
|
boolean |
okMessage(Environmental myHost,
CMMsg msg) |
The general message event previewer for the object.
|
void |
setCharStats(CharStats newStats) |
Sets the collection of character stats about the
deceased mob.
|
void |
setIsDestroyAfterLooting(boolean truefalse) |
Sets whether this corpse is automatically destroyed by the system after it has been
looted.
|
void |
setIsKillerPlayer(boolean trueFalse) |
Sets whether the mob who killed the deceased mob whose corpse this is was a player
or a mob.
|
void |
setIsPlayerCorpse(boolean truefalse) |
Sets whether the deceased mob whose corpse this is was a player.
|
void |
setKillerName(java.lang.String newName) |
Sets the name of the mob that killed the deceased mob whose corpse this is.
|
void |
setKillerTool(Environmental tool) |
Sets the weapon wielded by the killer at the time of death of the deceased mob.
|
void |
setLastMessage(java.lang.String lastMsg) |
Sets the last message seen by the deceased mob whose corpse this is.
|
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 |
setMobDescription(java.lang.String newDescription) |
Sets the deceased's description.
|
void |
setMobHash(int newHash) |
Sets the hash that uniquely identifies the deceased mob object.
|
void |
setMobName(java.lang.String newName) |
Sets the deceased's name.
|
void |
setMobPKFlag(boolean truefalse) |
Sets whether the mob, whose corpse this is, had their PlayerKill flag
on at the time of death, probably denoting a duel of some sort.
|
void |
setSavedMOB(MOB mob,
boolean preserve) |
Sets the mob object belonging to the deceased.
|
void |
setSecretIdentity(java.lang.String newIdentity) |
This method is used to change the string returned by rawSecretIdentity.
|
void |
setTimeOfDeath(long time) |
Sets the real world time, in milliseconds, that the death of this
corpse occurred.
|
addEffect, addNonUninvokableEffect, basePhyStats, delAllEffects, delEffect, eachEffect, effects, fetchEffect, fetchEffect, numEffects, phyStats, recoverPhyStats, setBasePhyStats
addBehavior, addScript, behaviors, delAllBehaviors, delAllScripts, delBehavior, delScript, eachBehavior, eachScript, fetchBehavior, fetchBehavior, fetchScript, numBehaviors, numScripts, scripts
defaultsClosed, defaultsLocked, hasADoor, hasALock, isLocked, isOpen, keyName, openDelayTicks, setDoorsNLocks, setKeyName, setOpenDelayTicks
copyOf, initializeClass, newInstance
canContain, capacity, containTypes, emptyPlease, getContents, getDeepContents, hasContent, isInside, setCapacity, setContainTypes
amDestroyed, isSavable, setSavable
canSaveDatabaseID, databaseID, setDatabaseID
description, displayText, image, isGeneric, L, maxRange, minRange, miscTextFormat, Name, rawImage, sameAs, setDescription, setDisplayText, setImage, setName, text
expirationDate, setExpirationDate
getStat, getStatCodes, isGeneric, keyName, readableText, sameAs, setKeyName, setReadableText, setStat, text
baseGoldValue, container, material, numberOfItems, owner, rawSecretIdentity, recursiveWeight, removeFromOwnerContainer, secretIdentity, setBaseValue, setContainer, setMaterial, setOwner, setUsesRemaining, stopTicking, subjectToWearAndTear, ultimateContainer, usesRemaining, value
getSaveStatIndex, getStat, getStatCodes, isStat, setStat
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
description, displayText, name
isReadable, readableText, setReadable, setReadableText
affectCharState, affectCharStats, affectPhyStats
canContain, capacity, containTypes, defaultsClosed, defaultsLocked, emptyPlease, getContents, getDeepContents, hasADoor, hasALock, hasContent, isInside, isLocked, isOpen, numberOfItems, openDelayTicks, recursiveWeight, setCapacity, setContainTypes, setDoorsNLocks, setOpenDelayTicks, tick
abilityImbuesMagic, addBehavior, addEffect, addNonUninvokableEffect, addScript, affectCharState, affectCharStats, affectPhyStats, alreadyWornMsg, amBeingWornProperly, amDestroyed, amWearingAt, baseGoldValue, basePhyStats, behaviors, canSaveDatabaseID, canWear, canWearComplete, cloneFix, compareProperLocations, compareTo, container, copyOf, databaseID, delAllBehaviors, delAllEffects, delAllScripts, delBehavior, delEffect, delScript, description, description, displayText, displayText, eachBehavior, eachEffect, eachScript, effects, expirationDate, fetchBehavior, fetchBehavior, fetchEffect, fetchEffect, fetchScript, fitsOn, getSaveStatIndex, getTickStatus, I, image, initializeClass, isReadable, isSavable, isStat, L, material, maxRange, minRange, miscTextFormat, name, name, Name, newInstance, numBehaviors, numEffects, numScripts, owner, phyStats, rawImage, rawLogicalAnd, rawProperLocationBitmap, rawSecretIdentity, rawWornCode, recoverPhyStats, removeFromOwnerContainer, riding, scripts, secretIdentity, setBasePhyStats, setBaseValue, setContainer, setDatabaseID, setDescription, setDisplayText, setExpirationDate, setImage, setMaterial, setName, setOwner, setRawLogicalAnd, setRawProperLocationBitmap, setRawWornCode, setReadable, setRiding, setSavable, setUsesRemaining, stopTicking, subjectToWearAndTear, tackOns, ultimateContainer, unWear, usesRemaining, value, wearAt, wearEvenIfImpossible, wearIfPossible, wearIfPossible, whereCantWear
getTickStatus, name, tick
amBeingWornProperly, amWearingAt, canWear, compareProperLocations, fitsOn, rawLogicalAnd, rawProperLocationBitmap, rawWornCode, setRawLogicalAnd, setRawProperLocationBitmap, setRawWornCode, unWear, wearAt, wearEvenIfImpossible, wearIfPossible, wearIfPossible, whereCantWear
protected CharStats charStats
protected java.lang.String mobName
protected java.lang.String mobDesc
protected java.lang.String killerName
protected boolean killerPlayer
protected java.lang.String lastMessage
protected Environmental killingTool
protected boolean playerCorpse
protected long timeOfDeath
protected boolean mobPKFlag
protected MOB savedMOB
protected boolean saveSavedMOB
protected int deadMobHash
protected boolean lootDestroy
public java.lang.String ID()
CMObject
ID
in interface CMObject
ID
in class GenContainer
public java.lang.String genericName()
Physical
genericName
in interface Physical
genericName
in class StdContainer
public void setMiscText(java.lang.String newText)
Environmental
setMiscText
in interface Environmental
setMiscText
in class GenContainer
newText
- either an open internal text string, or XMLpublic CharStats charStats()
DeadBody
charStats
in interface DeadBody
CharStats
,
DeadBody.setCharStats(CharStats)
public void setCharStats(CharStats newStats)
DeadBody
setCharStats
in interface DeadBody
newStats
- the collection of character statsCharStats
,
DeadBody.charStats()
public void setSecretIdentity(java.lang.String newIdentity)
Item
setSecretIdentity
in interface Item
setSecretIdentity
in class StdItem
newIdentity
- the secret properties of this item. Empty string means it has none.public void destroy()
Contingent
destroy
in interface Contingent
destroy
in class StdItem
public java.lang.String getMobName()
DeadBody
getMobName
in interface DeadBody
DeadBody.setMobName(String)
public void setMobName(java.lang.String newName)
DeadBody
setMobName
in interface DeadBody
newName
- the deceased's nameDeadBody.getMobName()
public java.lang.String getMobDescription()
DeadBody
getMobDescription
in interface DeadBody
DeadBody.setMobDescription(String)
public void setMobDescription(java.lang.String newDescription)
DeadBody
setMobDescription
in interface DeadBody
newDescription
- the deceased's descriptionDeadBody.getMobDescription()
public boolean getMobPKFlag()
DeadBody
getMobPKFlag
in interface DeadBody
DeadBody.setMobPKFlag(boolean)
public void setMobPKFlag(boolean truefalse)
DeadBody
setMobPKFlag
in interface DeadBody
truefalse
- true if the mob had their PK flag on, false otherwiseDeadBody.getMobPKFlag()
public int getMobHash()
DeadBody
getMobHash
in interface DeadBody
DeadBody.setMobHash(int)
public void setMobHash(int newHash)
DeadBody
setMobHash
in interface DeadBody
newHash
- hash that uniquely identifies the deceased mob object.DeadBody.setMobHash(int)
public java.lang.String getKillerName()
DeadBody
getKillerName
in interface DeadBody
DeadBody.setKillerName(String)
public void setKillerName(java.lang.String newName)
DeadBody
setKillerName
in interface DeadBody
newName
- the name of the mob that killed the deceased mob whose corpse this is.DeadBody.setKillerName(String)
public boolean isKillerPlayer()
DeadBody
isKillerPlayer
in interface DeadBody
DeadBody.setIsKillerPlayer(boolean)
public void setIsKillerPlayer(boolean trueFalse)
DeadBody
setIsKillerPlayer
in interface DeadBody
trueFalse
- true if the killer was a player, false otherwiseDeadBody.isKillerPlayer()
public boolean isPlayerCorpse()
DeadBody
isPlayerCorpse
in interface DeadBody
DeadBody.setIsPlayerCorpse(boolean)
public void setIsPlayerCorpse(boolean truefalse)
DeadBody
setIsPlayerCorpse
in interface DeadBody
truefalse
- true if the deceased was a player, false if a mobDeadBody.isPlayerCorpse()
public java.lang.String getLastMessage()
DeadBody
getLastMessage
in interface DeadBody
DeadBody.setLastMessage(String)
public void setLastMessage(java.lang.String lastMsg)
DeadBody
setLastMessage
in interface DeadBody
lastMsg
- the last message seen by the deceased mob whose corpse this isDeadBody.getLastMessage()
public Environmental getKillerTool()
DeadBody
getKillerTool
in interface DeadBody
DeadBody.setKillerTool(Environmental)
public void setKillerTool(Environmental tool)
DeadBody
setKillerTool
in interface DeadBody
tool
- the weapon wielded by the killer at the time of death of the deceased mob.DeadBody.getKillerTool()
public boolean isDestroyedAfterLooting()
DeadBody
isDestroyedAfterLooting
in interface DeadBody
DeadBody.setIsDestroyAfterLooting(boolean)
public void setIsDestroyAfterLooting(boolean truefalse)
DeadBody
setIsDestroyAfterLooting
in interface DeadBody
truefalse
- true to destroy after looting, false otherwiseDeadBody.isDestroyedAfterLooting()
public long getTimeOfDeath()
DeadBody
getTimeOfDeath
in interface DeadBody
DeadBody.setTimeOfDeath(long)
public void setTimeOfDeath(long time)
DeadBody
setTimeOfDeath
in interface DeadBody
time
- the time, in milliseconds, of deathDeadBody.getTimeOfDeath()
public void setSavedMOB(MOB mob, boolean preserve)
DeadBody
setSavedMOB
in interface DeadBody
mob
- the mob object belonging to the deceased.preserve
- flag to not delete when the body is destroyedDeadBody.getSavedMOB()
public MOB getSavedMOB()
DeadBody
getSavedMOB
in interface DeadBody
DeadBody.setSavedMOB(MOB, boolean)
public void executeMsg(Environmental myHost, CMMsg msg)
MsgListener
executeMsg
in interface MsgListener
executeMsg
in class StdContainer
myHost
- either the initiator of the event, or the host of this objectmsg
- the CMMsg that needs to be executedCMMsg
public boolean okMessage(Environmental myHost, CMMsg msg)
MsgListener
okMessage
in interface MsgListener
okMessage
in class StdContainer
myHost
- either the initiator of the event, or the host of this objectmsg
- the CMMsg that wants to be executedCMMsg
,
CMMsg.source()