| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IBeing
The Being Interface.
| Method Summary | |
|---|---|
 void | 
addEnchantment(Enchantment anEnchantment)
Add an enchantment to this Being.  | 
 Enchantment[] | 
getEnchantments()
Return an array of all Enchantments that are in effect upon
 this Being. | 
 Gender | 
getGender()
Return the Gender of this Being. | 
 int | 
getHitPoints()
Returns the value of the current Hit Points for this Being. | 
 Id | 
getId()
The Id of this Being. | 
 boolean | 
getLeavesCorpse()
Indicates whether this Being should leave a corpse when it
 dies. | 
 int | 
getMaxHitPoints()
Returns the value for the Maximum Hit Points for this Being. | 
 java.lang.String | 
getName()
The name of the Being. | 
 boolean | 
isActive()
Indicates whether this Being is active this turn. | 
 boolean | 
isAlive()
Determine if this Being is currently alive. | 
 void | 
removeEnchantment(Enchantment enchantment)
Remove the specified Enchantment from this
 Being. | 
 void | 
setActive(boolean isActive)
Sets this Being as active for this turn. | 
 void | 
setAlive(boolean isAlive)
Sets whether this Being is currently alive. | 
 void | 
setGender(Gender theGender)
Sets the Gender of this Being. | 
 void | 
setHitPoints(int theHitPoints)
Set the value for the current HitPoints for this Being. | 
 void | 
setId(Id theId)
Set the Id of this Being. | 
 void | 
setLeavesCorpse(boolean shouldLeaveCorpse)
This Being will leave a corpse on death if this value is
 true, otherwise no corpse will be created. | 
 void | 
setMaxHitPoints(int theMaxHitPoints)
Set the value for the Maximum Hit Points for this Being. | 
 void | 
setName(java.lang.String theName)
Sets the name of this Being. | 
 void | 
shouldDie()
Determine if this being should die.  | 
 void | 
takeDamage(Damage damageDealt)
The specified damage is dealt to this Being.  | 
 void | 
updateEnchantments()
Each Enchantment on this Being is notified
 that the turn has been completed via turnComplete. | 
| Methods inherited from interface util.Nullable | 
|---|
isNull | 
| Method Detail | 
|---|
void addEnchantment(Enchantment anEnchantment)
anEnchantment - the enchantment to add.void removeEnchantment(Enchantment enchantment)
Enchantment from this
 Being. If the enchantment does not exist then nothing is
 removed.
enchantment - the enchantment to remove. Ignored if the enchantment
        is not in effect on this Being.Enchantment[] getEnchantments()
Enchantments that are in effect upon
 this Being.
Enchantments that are in effect
         upon this Being.void updateEnchantments()
Enchantment on this Being is notified
 that the turn has been completed via turnComplete. If the
 Enchantment indicates that it should no longer be in
 effect then it is removed.
Enchantment.turnComplete()boolean isActive()
Being is active this turn.
Being is active this turn.void setActive(boolean isActive)
Being as active for this turn.
isActive - if thisBeing is active for this turn, false
        otherwise.boolean isAlive()
Being is currently alive. True if alive,
 false otherwise.
Being is alive, false otherwise.void setAlive(boolean isAlive)
Being is currently alive. True if alive,
 false otherwise.
isAlive - true if alive, false otherwise.void shouldDie()
Id getId()
Id of this Being.
Id of this Being.void setId(Id theId)
Id of this Being.
theId - the Id of this Being.int getHitPoints()
Being.
 The current hit points will never exceed max hit points.
Being.void setHitPoints(int theHitPoints)
HitPoints for this Being. Any
 values that are negative are converted into 0. Any values that are
 greater than getMaxHitPoints are converted into
 getMaxHitPoints.
theHitPoints - the value to set the Hit Points to. Any negative
        values are converted to 0. Any values that are greater
        thangetMaxHitPoints are converted into
        getMaxHitPoints.int getMaxHitPoints()
Being.
Being.void setMaxHitPoints(int theMaxHitPoints)
Being.
 Only positive values are allowed for maxHitPoints.  Any invalid values
 are silently ignored and the value is set to 0.
theMaxHitPoints - the value to set the Maximum Hit Points to. Valid
        values are > 0. Invalid values are silently ignored and the
        value is set to 0.void takeDamage(Damage damageDealt)
Enchantments that provide resistance to the
 DamageType being dealt then the damage is reduced to zero.
damageDealt - the damage to deal to this Being.java.lang.String getName()
Being.
Being.void setName(java.lang.String theName)
Being.
theName - the name for this Being.Gender getGender()
Gender of this Being.
Gender of this Being.void setGender(Gender theGender)
Gender of this Being.
theGender - the Gender of this Being.boolean getLeavesCorpse()
Being should leave a corpse when it
 dies.
void setLeavesCorpse(boolean shouldLeaveCorpse)
Being will leave a corpse on death if this value is
 true, otherwise no corpse will be created.
shouldLeaveCorpse - true if a corpse should be created on death,
        false otherwise.
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||