public class TimeEffect extends Effect implements java.lang.Comparable<TimeEffect>
Modifier and Type | Field and Description |
---|---|
Effect |
delegate
The effect itself, that is triggered by this.
|
boolean |
isNative
True if this is a time effect defined in VGDL using TIME.
|
int |
itype
itype of the sprite that suffers the effects of the delegated Effect.
|
int |
nextExecution
Indicates the next time step when this effect will be automatically triggered without collisions.
|
boolean |
repeating
Indicates if the effect should be repeated periodically ad infinitum
|
int |
timer
timer for the effect, -1 by default.
|
applyScore, collision, count, countElse, counter, counterElse, enabled, hashCode, inBatch, is_kill_effect, is_stochastic, prob, repeat, scoreChange, sequential
Constructor and Description |
---|
TimeEffect() |
TimeEffect(Effect delegate) |
TimeEffect(InteractionContent ic,
Effect delegate) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(TimeEffect o) |
TimeEffect |
copy() |
void |
copyTo(TimeEffect tef) |
void |
execute(VGDLSprite sprite1,
VGDLSprite sprite2,
Game game)
Executes the effect
|
void |
planExecution(Game game) |
calculatePixelPerfect, determineCollision, executeBatch, getCounter, getCounterElse, getEffectSprites, getScoreChange, parseParameters, setStochastic, sortBatch
public int timer
public int nextExecution
public boolean repeating
public int itype
public boolean isNative
public Effect delegate
public TimeEffect()
public TimeEffect(InteractionContent ic, Effect delegate)
public TimeEffect(Effect delegate)
public void execute(VGDLSprite sprite1, VGDLSprite sprite2, Game game)
public void planExecution(Game game)
public int compareTo(TimeEffect o)
compareTo
in interface java.lang.Comparable<TimeEffect>
public TimeEffect copy()
public void copyTo(TimeEffect tef)