public class AddTimer extends TimeEffect
Modifier and Type | Field and Description |
---|---|
java.lang.String |
ftype |
Effect |
timerDelegate |
delegate, isNative, itype, nextExecution, repeating, timer
applyScore, collision, count, countElse, counter, counterElse, enabled, hashCode, inBatch, is_kill_effect, is_stochastic, prob, repeat, scoreChange, sequential
Constructor and Description |
---|
AddTimer() |
AddTimer(InteractionContent cnt) |
Modifier and Type | Method and Description |
---|---|
TimeEffect |
copy() |
void |
copyTo(TimeEffect adT) |
void |
execute(VGDLSprite sprite1,
VGDLSprite sprite2,
Game game)
Executes the effect
|
compareTo, planExecution
calculatePixelPerfect, determineCollision, executeBatch, getCounter, getCounterElse, getEffectSprites, getScoreChange, parseParameters, setStochastic, sortBatch
public java.lang.String ftype
public Effect timerDelegate
public AddTimer()
public AddTimer(InteractionContent cnt) throws java.lang.Exception
java.lang.Exception
public void execute(VGDLSprite sprite1, VGDLSprite sprite2, Game game)
TimeEffect
execute
in class TimeEffect
sprite1
- first sprite of the collisionsprite2
- second sprite of the collisiongame
- reference to the game object with the current state.public TimeEffect copy()
copy
in class TimeEffect
public void copyTo(TimeEffect adT)
copyTo
in class TimeEffect