| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Enchantment
An Enchantment is something that affects IBeing. It
 is normally the result of casting a spell.
| Method Summary | |
|---|---|
 IBeing | 
getCaster()
The caster of the Enchantment. | 
 java.lang.String | 
getDescription()
Return the description of this Enchantment. | 
 int | 
getDuration()
Return the duration left on this Enchantment before it
 expires. | 
 Id | 
getId()
The Id of this Enchantment. | 
 java.lang.String | 
getName()
Return the name of this Enchantment. | 
 IBeing | 
getTarget()
The target of the Enchantment. | 
 boolean | 
isPermanent()
isPermanent indicates whether the Enchantment is permanently enabled.  | 
 boolean | 
isResistant(DamageType damageType)
isResistant checks to see if the Enchantment will resist the specified DamageType. | 
 void | 
setPermanent(boolean isPermanent)
setPermanent sets the permanency value of this Enchantment to the value specified.  | 
 boolean | 
turnComplete()
Notify the Enchantment that a turn has been completed and to update itself accordingly.  | 
| Method Detail | 
|---|
java.lang.String getName()
Enchantment.
Enchantment.java.lang.String getDescription()
Enchantment.
Enchantment.int getDuration()
Enchantment before it
 expires.  If the Enchantment is permanent then this value
 has no meaning.
Enchantment.Id getId()
Id of this Enchantment.
Id of this Enchantment.boolean isPermanent()
void setPermanent(boolean isPermanent)
isPermanent - indicates what to set the permanency value to. True
        indicates an enchantment is permanent, false indicates it is not
        permanent.  Only an enchantment can have its permanency set to
        true.boolean isResistant(DamageType damageType)
DamageType.
damageType - the DamageType to check against for
        resistance.
DamageType, false otherwise.boolean turnComplete()
IBeing getCaster()
Enchantment.
Enchantment.IBeing getTarget()
Enchantment.
Enchantment.
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||