|
||||||||||
| 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 LocationEffectpublic void apply()
apply in interface Effectpublic java.lang.String getName()
getName in interface Effectpublic boolean hasExpired()
hasExpired in interface Effectpublic void undo()
undo in interface Effectpublic boolean isPermanent()
isPermanent in interface Effect
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||