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>GenCorpsepublic 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 | 
idConverterCONTAIN_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_SWORDSreadableTextcapacity, 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, xtraValuesSTATUS_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_RESETDEFAULT_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, setBasePhyStatsaddBehavior, addScript, behaviors, delAllBehaviors, delAllScripts, delBehavior, delScript, eachBehavior, eachScript, fetchBehavior, fetchBehavior, fetchScript, numBehaviors, numScripts, scriptsdefaultsClosed, defaultsLocked, hasADoor, hasALock, isLocked, isOpen, keyName, openDelayTicks, setDoorsNLocks, setKeyName, setOpenDelayTickscopyOf, initializeClass, newInstancecanContain, capacity, containTypes, emptyPlease, getContents, getDeepContents, hasContent, isInside, setCapacity, setContainTypesamDestroyed, isSavable, setSavablecanSaveDatabaseID, databaseID, setDatabaseIDdescription, displayText, image, isGeneric, L, maxRange, minRange, miscTextFormat, Name, rawImage, sameAs, setDescription, setDisplayText, setImage, setName, textexpirationDate, setExpirationDategetStat, getStatCodes, isGeneric, keyName, readableText, sameAs, setKeyName, setReadableText, setStat, textbaseGoldValue, container, material, numberOfItems, owner, rawSecretIdentity, recursiveWeight, removeFromOwnerContainer, secretIdentity, setBaseValue, setContainer, setMaterial, setOwner, setUsesRemaining, stopTicking, subjectToWearAndTear, ultimateContainer, usesRemaining, valuegetSaveStatIndex, getStat, getStatCodes, isStat, setStatclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdescription, displayText, nameisReadable, readableText, setReadable, setReadableTextaffectCharState, affectCharStats, affectPhyStatscanContain, capacity, containTypes, defaultsClosed, defaultsLocked, emptyPlease, getContents, getDeepContents, hasADoor, hasALock, hasContent, isInside, isLocked, isOpen, numberOfItems, openDelayTicks, recursiveWeight, setCapacity, setContainTypes, setDoorsNLocks, setOpenDelayTicks, tickabilityImbuesMagic, 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, whereCantWeargetTickStatus, name, tickamBeingWornProperly, amWearingAt, canWear, compareProperLocations, fitsOn, rawLogicalAnd, rawProperLocationBitmap, rawWornCode, setRawLogicalAnd, setRawProperLocationBitmap, setRawWornCode, unWear, wearAt, wearEvenIfImpossible, wearIfPossible, wearIfPossible, whereCantWearprotected 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()
CMObjectID in interface CMObjectID in class GenContainerpublic java.lang.String genericName()
PhysicalgenericName in interface PhysicalgenericName in class StdContainerpublic void setMiscText(java.lang.String newText)
EnvironmentalsetMiscText in interface EnvironmentalsetMiscText in class GenContainernewText - either an open internal text string, or XMLpublic CharStats charStats()
DeadBodycharStats in interface DeadBodyCharStats, 
DeadBody.setCharStats(CharStats)public void setCharStats(CharStats newStats)
DeadBodysetCharStats in interface DeadBodynewStats - the collection of character statsCharStats, 
DeadBody.charStats()public void setSecretIdentity(java.lang.String newIdentity)
ItemsetSecretIdentity in interface ItemsetSecretIdentity in class StdItemnewIdentity - the secret properties of this item.  Empty string means it has none.public void destroy()
Contingentdestroy in interface Contingentdestroy in class StdItempublic java.lang.String getMobName()
DeadBodygetMobName in interface DeadBodyDeadBody.setMobName(String)public void setMobName(java.lang.String newName)
DeadBodysetMobName in interface DeadBodynewName - the deceased's nameDeadBody.getMobName()public java.lang.String getMobDescription()
DeadBodygetMobDescription in interface DeadBodyDeadBody.setMobDescription(String)public void setMobDescription(java.lang.String newDescription)
DeadBodysetMobDescription in interface DeadBodynewDescription - the deceased's descriptionDeadBody.getMobDescription()public boolean getMobPKFlag()
DeadBodygetMobPKFlag in interface DeadBodyDeadBody.setMobPKFlag(boolean)public void setMobPKFlag(boolean truefalse)
DeadBodysetMobPKFlag in interface DeadBodytruefalse - true if the mob had their PK flag on, false otherwiseDeadBody.getMobPKFlag()public int getMobHash()
DeadBodygetMobHash in interface DeadBodyDeadBody.setMobHash(int)public void setMobHash(int newHash)
DeadBodysetMobHash in interface DeadBodynewHash - hash that uniquely identifies the deceased mob object.DeadBody.setMobHash(int)public java.lang.String getKillerName()
DeadBodygetKillerName in interface DeadBodyDeadBody.setKillerName(String)public void setKillerName(java.lang.String newName)
DeadBodysetKillerName in interface DeadBodynewName - the name of the mob that killed the deceased mob whose corpse this is.DeadBody.setKillerName(String)public boolean isKillerPlayer()
DeadBodyisKillerPlayer in interface DeadBodyDeadBody.setIsKillerPlayer(boolean)public void setIsKillerPlayer(boolean trueFalse)
DeadBodysetIsKillerPlayer in interface DeadBodytrueFalse - true if the killer was a player, false otherwiseDeadBody.isKillerPlayer()public boolean isPlayerCorpse()
DeadBodyisPlayerCorpse in interface DeadBodyDeadBody.setIsPlayerCorpse(boolean)public void setIsPlayerCorpse(boolean truefalse)
DeadBodysetIsPlayerCorpse in interface DeadBodytruefalse - true if the deceased was a player, false if a mobDeadBody.isPlayerCorpse()public java.lang.String getLastMessage()
DeadBodygetLastMessage in interface DeadBodyDeadBody.setLastMessage(String)public void setLastMessage(java.lang.String lastMsg)
DeadBodysetLastMessage in interface DeadBodylastMsg - the last message seen by the deceased mob whose corpse this isDeadBody.getLastMessage()public Environmental getKillerTool()
DeadBodygetKillerTool in interface DeadBodyDeadBody.setKillerTool(Environmental)public void setKillerTool(Environmental tool)
DeadBodysetKillerTool in interface DeadBodytool - the weapon wielded by the killer at the time of death of the deceased mob.DeadBody.getKillerTool()public boolean isDestroyedAfterLooting()
DeadBodyisDestroyedAfterLooting in interface DeadBodyDeadBody.setIsDestroyAfterLooting(boolean)public void setIsDestroyAfterLooting(boolean truefalse)
DeadBodysetIsDestroyAfterLooting in interface DeadBodytruefalse - true to destroy after looting, false otherwiseDeadBody.isDestroyedAfterLooting()public long getTimeOfDeath()
DeadBodygetTimeOfDeath in interface DeadBodyDeadBody.setTimeOfDeath(long)public void setTimeOfDeath(long time)
DeadBodysetTimeOfDeath in interface DeadBodytime - the time, in milliseconds, of deathDeadBody.getTimeOfDeath()public void setSavedMOB(MOB mob, boolean preserve)
DeadBodysetSavedMOB in interface DeadBodymob - the mob object belonging to the deceased.preserve - flag to not delete when the body is destroyedDeadBody.getSavedMOB()public MOB getSavedMOB()
DeadBodygetSavedMOB in interface DeadBodyDeadBody.setSavedMOB(MOB, boolean)public void executeMsg(Environmental myHost, CMMsg msg)
MsgListenerexecuteMsg in interface MsgListenerexecuteMsg in class StdContainermyHost - either the initiator of the event, or the host of this objectmsg - the CMMsg that needs to be executedCMMsgpublic boolean okMessage(Environmental myHost, CMMsg msg)
MsgListenerokMessage in interface MsgListenerokMessage in class StdContainermyHost - either the initiator of the event, or the host of this objectmsg - the CMMsg that wants to be executedCMMsg, 
CMMsg.source()