|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface EffectBehavior
Effect behavior to decouple the behavior of managing effects from
the objects that have effects Effectable
so that the objects
that implement the interface will only have to worry about
providing a way to retrieve an EffectBehavior
Method Summary | |
---|---|
void |
addEffect(Effect effect)
Add effect to behavior object. |
void |
clear()
Clear all effects. |
java.util.List<Effect> |
getEffects()
Get list of effects. |
void |
removeEffect(Effect effect)
Remove effect from behavior object. |
Method Detail |
---|
java.util.List<Effect> getEffects()
void addEffect(Effect effect) throws EffectException
effect
- Effect to add.
EffectException
- in case adding an effect will not be possible.void removeEffect(Effect effect) throws EffectException
effect
- Effect to remove.
EffectException
- in case removing an effect will not be possible.void clear()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |