|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object wyvern.lib.spells.effects.Slower
When placed on a monster, cuts the move-speed in half by doubling the event delay. The Slower attaches itself in the target's property list under the property name "@slower".
Field Summary | |
static int |
DEFAULT_DELAY
|
static int |
DEFAULT_DURATION
|
Constructor Summary | |
Slower()
Constructs a new Slower, ready to place on the specified monster. |
|
Slower(Monster target)
Constructs a new Slower on the specified monster. |
|
Slower(Monster target,
int duration)
Constructs a new Slower |
Method Summary | |
void |
dispel()
Stops paralyzing the target. |
int |
getDelay()
Retrieves the total delay for this confusion. |
int |
getDuration()
Retrieves the total duration for this confusion. |
void |
setDelay(int delay)
Sets the delay (how much to add to the move-speed) for the effect. |
void |
setDuration(int duration)
Sets the duration for being slowed. |
void |
slow(Monster target)
Attaches to, and slows, the specified target. |
void |
timerExpired()
Time to stop. |
java.lang.String |
toString()
Debugging string. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int DEFAULT_DURATION
public static final int DEFAULT_DELAY
Constructor Detail |
public Slower()
public Slower(Monster target)
target
- the target to slowpublic Slower(Monster target, int duration)
target
- the monster to slowduration
- the time (in millis) to slow the targetMethod Detail |
public void setDuration(int duration)
duration
- length of time to slow the target (in millis)public int getDuration()
public void setDelay(int delay)
delay
- length of time to slow the target (in millis)public int getDelay()
public void slow(Monster target)
If it finds a previous @slower on the target, it dispels the old one before adding the new one.
target
- the monster to slowpublic void timerExpired()
timerExpired
in interface Timed
public void dispel()
dispel
in interface Dispellable
public java.lang.String toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |