|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Damageable
Interface for objects to implement that want the ability to be damaged. Once the object has sustained enough damage, it will cease to be. Once an object implements, if the object will sustain damage, it will An object that implements this should use the composite pattern to delegate any methods to a DamageBehavior object
Method Summary | |
---|---|
DamageBehavior |
getDamageBehavior()
Get the defined damage behavior for the damageable entity. |
void |
setDamageBehavior(DamageBehavior damageBehavior)
Sets the damage behavior for the damageable object. |
Method Detail |
---|
DamageBehavior getDamageBehavior()
void setDamageBehavior(DamageBehavior damageBehavior)
behavior
- DamageBehavior behavior object to set.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |