|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Effect
Effect to provide addon effects for specific objects.
Method Summary | |
---|---|
void |
apply()
Apply effect on the target. |
java.lang.String |
getName()
Get name of the effect |
boolean |
hasExpired()
Determine if the effect has expired duration. |
boolean |
isPermanent()
Determine if the effect is permanent. |
void |
undo()
Undo the effect from the target. |
Method Detail |
---|
void apply() throws EffectException
target
- Target object to apply effect on.
EffectException
void undo() throws EffectException
target
- Target object to remove effect from.
EffectException
boolean hasExpired()
boolean isPermanent()
java.lang.String getName()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |