diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2016-03-31 14:43:51 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2016-03-31 14:43:51 +0200 |
commit | 83496d75dd423e60919808ea4bc26ee8c1fd0337 (patch) | |
tree | 2aeeb40bd31d72ded32dd97bf7956358bf809454 /core/src | |
parent | 6859800c15183cc1669285635778269c52df662b (diff) | |
download | RustAndDust-83496d75dd423e60919808ea4bc26ee8c1fd0337.zip RustAndDust-83496d75dd423e60919808ea4bc26ee8c1fd0337.tar.gz |
Map3Animations: add addBounceAnimation(Unit, float)
Diffstat (limited to 'core/src')
-rw-r--r-- | core/src/ch/asynk/rustanddust/game/map/Map3Animations.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/core/src/ch/asynk/rustanddust/game/map/Map3Animations.java b/core/src/ch/asynk/rustanddust/game/map/Map3Animations.java index 0bca8c2..522e347 100644 --- a/core/src/ch/asynk/rustanddust/game/map/Map3Animations.java +++ b/core/src/ch/asynk/rustanddust/game/map/Map3Animations.java @@ -7,6 +7,7 @@ import ch.asynk.rustanddust.RustAndDust; import ch.asynk.rustanddust.engine.SelectedTile; import ch.asynk.rustanddust.engine.gfx.Moveable; import ch.asynk.rustanddust.engine.gfx.animations.AnimationSequence; +import ch.asynk.rustanddust.engine.gfx.animations.BounceAnimation; import ch.asynk.rustanddust.engine.gfx.animations.DiceAnimation; import ch.asynk.rustanddust.engine.gfx.animations.FireAnimation; import ch.asynk.rustanddust.engine.gfx.animations.TankFireAnimation; @@ -90,6 +91,11 @@ public abstract class Map3Animations extends Map2Moves implements MoveToAnimatio // <- implement MoveToAnimationCb + protected void addBounceAnimation(final Unit unit, float duration) + { + addAnimation(BounceAnimation.get(unit, duration)); + } + protected void addPromoteAnimation(final Unit unit, final Player player, final Runnable after) { Hex hex = unit.getHex(); |