public class WallReverse extends Effect
applyScore, collision, count, countElse, counter, counterElse, enabled, hashCode, inBatch, is_kill_effect, is_stochastic, prob, repeat, scoreChange, sequential
Constructor and Description |
---|
WallReverse(InteractionContent cnt) |
Modifier and Type | Method and Description |
---|---|
void |
execute(VGDLSprite sprite1,
VGDLSprite sprite2,
Game game)
Executes the effect
|
int |
executeBatch(VGDLSprite sprite1,
java.util.ArrayList<VGDLSprite> sprite2list,
Game game)
Executes the effect to all second sprites at once.
|
calculatePixelPerfect, determineCollision, getCounter, getCounterElse, getEffectSprites, getScoreChange, parseParameters, setStochastic, sortBatch
public WallReverse(InteractionContent cnt)
public void execute(VGDLSprite sprite1, VGDLSprite sprite2, Game game)
Effect
public int executeBatch(VGDLSprite sprite1, java.util.ArrayList<VGDLSprite> sprite2list, Game game)
Effect
executeBatch
in class Effect
sprite1
- first sprite of the collisionsprite2list
- list of all second sprites of the collisiongame
- reference to the game object with the current state.