|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectrle.core.charm.CharmBase
rle.core.charm.TimedCharm
public class TimedCharm
A TimedCharm is a TemporaryCharm which is active for a fixed period of time before stopping itself. Examples include speed due to quaffing a potion of speed and being temporarily blinded by a flash of light.
| Constructor Summary | |
|---|---|
TimedCharm(Thing target,
java.util.Map<java.lang.String,java.lang.Object> attributes,
int ticks,
Cause cause)
|
|
| Method Summary | |
|---|---|
java.util.Map<java.lang.String,java.lang.Object> |
attributes()
Any attributes used to direct the course of this TemporaryCharm. |
Cause |
cause()
The cause of this charm, for example quaffing a potion of speed. |
void |
startCharm()
Start this charm. |
void |
stopCharm(Cause stopCause)
End any affects caused by this charm. |
void |
tick(GameClockEvent event)
Respond to time elapsing. |
| Methods inherited from class rle.core.charm.CharmBase |
|---|
getAttributes, getCause, getTarget, setAttributes, setCause, setTarget |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface rle.core.charm.Charm |
|---|
getAttributes, getCause, getTarget, setAttributes, setCause, setTarget |
| Constructor Detail |
|---|
public TimedCharm(Thing target,
java.util.Map<java.lang.String,java.lang.Object> attributes,
int ticks,
Cause cause)
| Method Detail |
|---|
public void startCharm()
startCharm in interface Charmpublic void stopCharm(Cause stopCause)
stopCharm in interface TemporaryCharmpublic Cause cause()
public java.util.Map<java.lang.String,java.lang.Object> attributes()
public void tick(GameClockEvent event)
tick in interface GameClockListener
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||