com.planet_ink.coffee_mud.Items.Basic
Class Corpse

java.lang.Object
  extended by com.planet_ink.coffee_mud.Items.Basic.StdItem
      extended by com.planet_ink.coffee_mud.Items.Basic.StdContainer
          extended by com.planet_ink.coffee_mud.Items.Basic.GenContainer
              extended by com.planet_ink.coffee_mud.Items.Basic.Corpse
All Implemented Interfaces:
Affectable, Behavable, CloseableLockable, CMObject, Contingent, DBIdentifiable, Environmental, Modifiable, MsgListener, Physical, PhysicalAgent, Readable, Rider, StatsAffecting, Tickable, Container, DeadBody, Item, Wearable, java.lang.Cloneable, java.lang.Comparable<CMObject>
Direct Known Subclasses:
GenCorpse

public class Corpse
extends GenContainer
implements DeadBody


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.planet_ink.coffee_mud.Items.interfaces.Wearable
Wearable.CODES
 
Field Summary
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
           
 
Fields inherited from class com.planet_ink.coffee_mud.Items.Basic.GenContainer
readableText
 
Fields inherited from class com.planet_ink.coffee_mud.Items.Basic.StdContainer
capacity, containType, defaultsClosed, defaultsLocked, hasALid, hasALock, isLocked, isOpen, openDelayTicks
 
Fields inherited from class com.planet_ink.coffee_mud.Items.Basic.StdItem
affectPhyStats, affects, baseGoldValue, basePhyStats, behaviors, cachedImageName, CODES, databaseID, description, destroyed, displayText, dispossessionTime, material, me, miscText, myContainer, myUses, myWornCode, name, owner, phyStats, properWornBitmap, rawImageName, riding, scripts, secretIdentity, tickCtr, tickStatus, wornLogicalAnd, xtraValues
 
Fields inherited from interface com.planet_ink.coffee_mud.Items.interfaces.Container
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_SMOKEABLES, CONTAIN_SSCOMPONENTS, CONTAIN_SWORDS
 
Fields inherited from interface com.planet_ink.coffee_mud.core.interfaces.Tickable
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_BEAMWEAPON, TICKID_CLAN, TICKID_CLANITEM, TICKID_DEADBODY_DECAY, TICKID_ELECTRONICS, TICKID_EMAIL, 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_SOLITARYMASK, TICKID_SPECIALCOMBAT, TICKID_SPECIALMANEUVER, TICKID_SPELL_AFFECT, TICKID_SUPPORT, TICKID_TIMEAUCTION, TICKID_TRAP_DESTRUCTION, TICKID_TRAP_RESET
 
Fields inherited from interface com.planet_ink.coffee_mud.Items.interfaces.Wearable
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 Summary
Corpse()
           
 
Method Summary
 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 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.
 
Methods inherited from class com.planet_ink.coffee_mud.Items.Basic.GenContainer
getCodeNum, getStat, getStatCodes, isGeneric, keyName, readableText, sameAs, setKeyName, setReadableText, setStat, text
 
Methods inherited from class com.planet_ink.coffee_mud.Items.Basic.StdContainer
canContain, capacity, containTypes, defaultsClosed, defaultsLocked, emptyPlease, getContents, getDeepContents, hasADoor, hasALock, hasContent, isInside, isLocked, isOpen, numberOfItems, openDelayTicks, recursiveWeight, setCapacity, setContainTypes, setDoorsNLocks, setOpenDelayTicks, tick
 
Methods inherited from class com.planet_ink.coffee_mud.Items.Basic.StdItem
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.planet_ink.coffee_mud.Items.interfaces.Container
canContain, capacity, containTypes, emptyPlease, getContents, getDeepContents, hasContent, isInside, setCapacity, setContainTypes
 
Methods inherited from interface com.planet_ink.coffee_mud.Items.interfaces.Item
baseGoldValue, container, material, numberOfItems, owner, rawSecretIdentity, recursiveWeight, removeFromOwnerContainer, secretIdentity, setBaseValue, setContainer, setMaterial, setOwner, setUsesRemaining, stopTicking, subjectToWearAndTear, ultimateContainer, usesRemaining, value
 
Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.Rider
riding, setRiding
 
Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.Physical
description, displayText, name
 
Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.Environmental
description, displayText, expirationDate, image, isGeneric, L, maxRange, minRange, miscTextFormat, Name, rawImage, sameAs, setDescription, setDisplayText, setExpirationDate, setImage, setName, text
 
Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.Tickable
getTickStatus, name, tick
 
Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.StatsAffecting
affectCharState, affectCharStats, affectPhyStats
 
Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.Contingent
amDestroyed, isSavable, setSavable
 
Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.CMObject
copyOf, initializeClass, newInstance
 
Methods inherited from interface java.lang.Comparable
compareTo
 
Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.Modifiable
getSaveStatIndex, getStat, getStatCodes, isStat, setStat
 
Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.Affectable
addEffect, addNonUninvokableEffect, basePhyStats, delAllEffects, delEffect, eachEffect, effects, fetchEffect, fetchEffect, numEffects, phyStats, recoverPhyStats, setBasePhyStats
 
Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.Behavable
addBehavior, addScript, behaviors, delAllBehaviors, delAllScripts, delBehavior, delScript, eachBehavior, eachScript, fetchBehavior, fetchBehavior, fetchScript, numBehaviors, numScripts, scripts
 
Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.DBIdentifiable
canSaveDatabaseID, databaseID, setDatabaseID
 
Methods inherited from interface com.planet_ink.coffee_mud.Items.interfaces.Wearable
amBeingWornProperly, amWearingAt, canWear, compareProperLocations, fitsOn, rawLogicalAnd, rawProperLocationBitmap, rawWornCode, setRawLogicalAnd, setRawProperLocationBitmap, setRawWornCode, unWear, wearAt, wearEvenIfImpossible, wearIfPossible, wearIfPossible, whereCantWear
 
Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.Readable
isReadable, readableText, setReadable, setReadableText
 
Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.CloseableLockable
defaultsClosed, defaultsLocked, hasADoor, hasALock, isLocked, isOpen, keyName, openDelayTicks, setDoorsNLocks, setKeyName, setOpenDelayTicks
 

Field Detail

charStats

protected CharStats charStats

mobName

protected java.lang.String mobName

mobDesc

protected java.lang.String mobDesc

killerName

protected java.lang.String killerName

killerPlayer

protected boolean killerPlayer

lastMessage

protected java.lang.String lastMessage

killingTool

protected Environmental killingTool

playerCorpse

protected boolean playerCorpse

timeOfDeath

protected long timeOfDeath

mobPKFlag

protected boolean mobPKFlag

savedMOB

protected MOB savedMOB

saveSavedMOB

protected boolean saveSavedMOB

deadMobHash

protected int deadMobHash

lootDestroy

protected boolean lootDestroy
Constructor Detail

Corpse

public Corpse()
Method Detail

ID

public java.lang.String ID()
Description copied from interface: CMObject
The CoffeeMud Java Class ID shared by all instances of this object. Unlike the Java Class name, this method does not include package information. However, it must return a String value unique to its class category in the ClassLoader. Class categories include Libraries, Common, Areas, Abilities, Behaviors, CharClasses, Commands, Exits Locales, MOBS, Races, WebMacros, Basic Items, Armor, Weapons, ClanItems, Tech. The name is typically identical to the class name.

Specified by:
ID in interface CMObject
Overrides:
ID in class GenContainer
Returns:
the name of this class

setMiscText

public void setMiscText(java.lang.String newText)
Description copied from interface: Environmental
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. For objects which have true for their isGeneric method, this is used to set and parse the XML which will be used to fill out the fields in this object. Since Ability objects are never Generic, this will always be where parameters are read from an Ability instance.

Specified by:
setMiscText in interface Environmental
Overrides:
setMiscText in class GenContainer
Parameters:
newText - either an open internal text string, or XML

charStats

public CharStats charStats()
Description copied from interface: DeadBody
Returns the collection of character stats about the deceased mob. This is stuff like strength and race.

Specified by:
charStats in interface DeadBody
Returns:
the collection of character stats
See Also:
CharStats, DeadBody.setCharStats(CharStats)

setCharStats

public void setCharStats(CharStats newStats)
Description copied from interface: DeadBody
Sets the collection of character stats about the deceased mob. This is stuff like strength and race.

Specified by:
setCharStats in interface DeadBody
Parameters:
newStats - the collection of character stats
See Also:
CharStats, DeadBody.charStats()

setSecretIdentity

public void setSecretIdentity(java.lang.String newIdentity)
Description copied from interface: Item
This method is used to change the string returned by rawSecretIdentity. This string is saved to the database as the items secret properties desctiption. The secretIdentity method uses this string to construct its full description.

Specified by:
setSecretIdentity in interface Item
Overrides:
setSecretIdentity in class StdItem
Parameters:
newIdentity - the secret properties of this item. Empty string means it has none.

destroy

public void destroy()
Description copied from interface: Contingent
Utterly and permanently destroy this object, not only removing it from the map, but causing this object to be collected as garbage by Java. Containers, rooms. and mobs who have their destroy() method called will also call the destroy() methods on all items and other objects listed as content, recursively.

Specified by:
destroy in interface Contingent
Overrides:
destroy in class StdItem

getMobName

public java.lang.String getMobName()
Description copied from interface: DeadBody
Gets the deceased's name. Not the display name of the corpse, but the original dudes plain old name.

Specified by:
getMobName in interface DeadBody
Returns:
the deceased's name
See Also:
DeadBody.setMobName(String)

setMobName

public void setMobName(java.lang.String newName)
Description copied from interface: DeadBody
Sets the deceased's name. Not the display name of the corpse, but the original dudes plain old name.

Specified by:
setMobName in interface DeadBody
Parameters:
newName - the deceased's name
See Also:
DeadBody.getMobName()

getMobDescription

public java.lang.String getMobDescription()
Description copied from interface: DeadBody
Gets the deceased's description. Not the display name of the corpse, but the original dudes description text.

Specified by:
getMobDescription in interface DeadBody
Returns:
the deceased's description
See Also:
DeadBody.setMobDescription(String)

setMobDescription

public void setMobDescription(java.lang.String newDescription)
Description copied from interface: DeadBody
Sets the deceased's description. Not the display name of the corpse, but the original dudes description text.

Specified by:
setMobDescription in interface DeadBody
Parameters:
newDescription - the deceased's description
See Also:
DeadBody.getMobDescription()

getMobPKFlag

public boolean getMobPKFlag()
Description copied from interface: DeadBody
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.

Specified by:
getMobPKFlag in interface DeadBody
Returns:
true if the mob had their PK flag on, false otherwise
See Also:
DeadBody.setMobPKFlag(boolean)

setMobPKFlag

public void setMobPKFlag(boolean truefalse)
Description copied from interface: DeadBody
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.

Specified by:
setMobPKFlag in interface DeadBody
Parameters:
truefalse - true if the mob had their PK flag on, false otherwise
See Also:
DeadBody.getMobPKFlag()

getMobHash

public int getMobHash()
Description copied from interface: DeadBody
Gets the hash that uniquely identifies the deceased mob object.

Specified by:
getMobHash in interface DeadBody
Returns:
hash that uniquely identifies the deceased mob object.
See Also:
DeadBody.setMobHash(int)

setMobHash

public void setMobHash(int newHash)
Description copied from interface: DeadBody
Sets the hash that uniquely identifies the deceased mob object.

Specified by:
setMobHash in interface DeadBody
Parameters:
newHash - hash that uniquely identifies the deceased mob object.
See Also:
DeadBody.setMobHash(int)

getKillerName

public java.lang.String getKillerName()
Description copied from interface: DeadBody
Gets the name of the mob that killed the deceased mob whose corpse this is.

Specified by:
getKillerName in interface DeadBody
Returns:
the name of the mob that killed the deceased mob whose corpse this is.
See Also:
DeadBody.setKillerName(String)

setKillerName

public void setKillerName(java.lang.String newName)
Description copied from interface: DeadBody
Sets the name of the mob that killed the deceased mob whose corpse this is.

Specified by:
setKillerName in interface DeadBody
Parameters:
newName - the name of the mob that killed the deceased mob whose corpse this is.
See Also:
DeadBody.setKillerName(String)

isKillerPlayer

public boolean isKillerPlayer()
Description copied from interface: DeadBody
Gets whether the mob who killed the deceased mob whose corpse this is was a player or a mob.

Specified by:
isKillerPlayer in interface DeadBody
Returns:
true if the killer was a player, false otherwise
See Also:
DeadBody.setIsKillerPlayer(boolean)

setIsKillerPlayer

public void setIsKillerPlayer(boolean trueFalse)
Description copied from interface: DeadBody
Sets whether the mob who killed the deceased mob whose corpse this is was a player or a mob.

Specified by:
setIsKillerPlayer in interface DeadBody
Parameters:
trueFalse - true if the killer was a player, false otherwise
See Also:
DeadBody.isKillerPlayer()

isPlayerCorpse

public boolean isPlayerCorpse()
Description copied from interface: DeadBody
Gets whether the deceased mob whose corpse this is was a player.

Specified by:
isPlayerCorpse in interface DeadBody
Returns:
true if the deceased was a player, false if a mob
See Also:
DeadBody.setIsPlayerCorpse(boolean)

setIsPlayerCorpse

public void setIsPlayerCorpse(boolean truefalse)
Description copied from interface: DeadBody
Sets whether the deceased mob whose corpse this is was a player.

Specified by:
setIsPlayerCorpse in interface DeadBody
Parameters:
truefalse - true if the deceased was a player, false if a mob
See Also:
DeadBody.isPlayerCorpse()

getLastMessage

public java.lang.String getLastMessage()
Description copied from interface: DeadBody
Gets the last message seen by the deceased mob whose corpse this is. Usually this would be the killing blow.

Specified by:
getLastMessage in interface DeadBody
Returns:
the last message seen by the deceased mob whose corpse this is
See Also:
DeadBody.setLastMessage(String)

setLastMessage

public void setLastMessage(java.lang.String lastMsg)
Description copied from interface: DeadBody
Sets the last message seen by the deceased mob whose corpse this is. Usually this would be the killing blow.

Specified by:
setLastMessage in interface DeadBody
Parameters:
lastMsg - the last message seen by the deceased mob whose corpse this is
See Also:
DeadBody.getLastMessage()

getKillerTool

public Environmental getKillerTool()
Description copied from interface: DeadBody
Gets the weapon wielded by the killer at the time of death of the deceased mob.

Specified by:
getKillerTool in interface DeadBody
Returns:
the weapon wielded by the killer at the time of death of the deceased mob.
See Also:
DeadBody.setKillerTool(Environmental)

setKillerTool

public void setKillerTool(Environmental tool)
Description copied from interface: DeadBody
Sets the weapon wielded by the killer at the time of death of the deceased mob.

Specified by:
setKillerTool in interface DeadBody
Parameters:
tool - the weapon wielded by the killer at the time of death of the deceased mob.
See Also:
DeadBody.getKillerTool()

isDestroyedAfterLooting

public boolean isDestroyedAfterLooting()
Description copied from interface: DeadBody
Gets whether this corpse is automatically destroyed by the system after it has been looted.

Specified by:
isDestroyedAfterLooting in interface DeadBody
Returns:
true to destroy after looting, false otherwise
See Also:
DeadBody.setIsDestroyAfterLooting(boolean)

setIsDestroyAfterLooting

public void setIsDestroyAfterLooting(boolean truefalse)
Description copied from interface: DeadBody
Sets whether this corpse is automatically destroyed by the system after it has been looted.

Specified by:
setIsDestroyAfterLooting in interface DeadBody
Parameters:
truefalse - true to destroy after looting, false otherwise
See Also:
DeadBody.isDestroyedAfterLooting()

getTimeOfDeath

public long getTimeOfDeath()
Description copied from interface: DeadBody
Gets the real world time, in milliseconds, that the death of this corpse occurred.

Specified by:
getTimeOfDeath in interface DeadBody
Returns:
the time, in milliseconds, of death
See Also:
DeadBody.setTimeOfDeath(long)

setTimeOfDeath

public void setTimeOfDeath(long time)
Description copied from interface: DeadBody
Sets the real world time, in milliseconds, that the death of this corpse occurred.

Specified by:
setTimeOfDeath in interface DeadBody
Parameters:
time - the time, in milliseconds, of death
See Also:
DeadBody.getTimeOfDeath()

setSavedMOB

public void setSavedMOB(MOB mob,
                        boolean preserve)
Description copied from interface: DeadBody
Sets the mob object belonging to the deceased.

Specified by:
setSavedMOB in interface DeadBody
Parameters:
mob - the mob object belonging to the deceased.
preserve - TODO
See Also:
DeadBody.getSavedMOB()

getSavedMOB

public MOB getSavedMOB()
Description copied from interface: DeadBody
Gets the mob object belonging to the deceased.

Specified by:
getSavedMOB in interface DeadBody
Returns:
the mob object belonging to the deceased.
See Also:
DeadBody.setSavedMOB(MOB, boolean)

executeMsg

public void executeMsg(Environmental myHost,
                       CMMsg msg)
Description copied from interface: MsgListener
The general message event handler for the object. Messages passed herein may not necessarily be FOR this object, or from it, but will almost always represent events happening in the same room. The messages have already been through an approval process, so this method is called only to affect the final execution of the meaning of the message. Every game event goes through these methods.

Specified by:
executeMsg in interface MsgListener
Overrides:
executeMsg in class StdContainer
Parameters:
myHost - either the initiator of the event, or the host of this object
msg - the CMMsg that needs to be executed
See Also:
CMMsg

okMessage

public boolean okMessage(Environmental myHost,
                         CMMsg msg)
Description copied from interface: MsgListener
The general message event previewer for the object. Messages passed herein are in a pending state, and may be safely modified or rejected without fear that they might be in the middle of being executed. Messages passed herein may not necessarily be FOR or FROM this object, but will almost always represent events which want to happen in the same rom. This method should always always return true UNLESS this message needs to be canceled, in which case it is necessary to tell the mob initiating the event (CMMsg.source()) why it is being cancelled. Every game event goes through these methods.

Specified by:
okMessage in interface MsgListener
Overrides:
okMessage in class StdContainer
Parameters:
myHost - either the initiator of the event, or the host of this object
msg - the CMMsg that wants to be executed
Returns:
whether this message is allowed to execute
See Also:
CMMsg, CMMsg.source()