|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.mud4j.effect.AbstractEffect
public abstract class AbstractEffect
Abstract implementation for effects.
Constructor Summary | |
---|---|
AbstractEffect()
|
|
AbstractEffect(java.lang.String effectName)
|
Method Summary | |
---|---|
abstract 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. |
abstract void |
undo()
Undo the effect from the target. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface net.sf.mud4j.effect.Effect |
---|
isPermanent |
Constructor Detail |
---|
public AbstractEffect()
public AbstractEffect(java.lang.String effectName)
Method Detail |
---|
public java.lang.String getName()
getName
in interface Effect
public boolean hasExpired()
hasExpired
in interface Effect
public abstract void undo() throws EffectException
undo
in interface Effect
EffectException
public abstract void apply() throws EffectException
apply
in interface Effect
EffectException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |