public class CollectResourceIfHeld extends Effect
Modifier and Type | Field and Description |
---|---|
java.lang.String |
heldResource |
int |
heldResourceId |
boolean |
killResource |
int |
value |
applyScore, collision, count, countElse, counter, counterElse, enabled, hashCode, inBatch, is_kill_effect, is_stochastic, prob, repeat, scoreChange, sequential
Constructor and Description |
---|
CollectResourceIfHeld(InteractionContent cnt) |
Modifier and Type | Method and Description |
---|---|
void |
execute(VGDLSprite sprite1,
VGDLSprite sprite2,
Game game)
Executes the effect
|
calculatePixelPerfect, determineCollision, executeBatch, getCounter, getCounterElse, getEffectSprites, getScoreChange, parseParameters, setStochastic, sortBatch
public boolean killResource
public java.lang.String heldResource
public int heldResourceId
public int value
public CollectResourceIfHeld(InteractionContent cnt)
public void execute(VGDLSprite sprite1, VGDLSprite sprite2, Game game)
Effect