|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.mud4j.effect.AbstractLocationEffect
public class AbstractLocationEffect
Abstract location effect.
Constructor Summary | |
---|---|
AbstractLocationEffect(Location location)
|
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 |
setLocation(Location location)
|
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 |
Constructor Detail |
---|
public AbstractLocationEffect(Location location)
Method Detail |
---|
public void setLocation(Location location)
setLocation
in interface LocationEffect
public void apply()
apply
in interface Effect
public java.lang.String getName()
getName
in interface Effect
public boolean hasExpired()
hasExpired
in interface Effect
public void undo()
undo
in interface Effect
public boolean isPermanent()
isPermanent
in interface Effect
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |