From 83496d75dd423e60919808ea4bc26ee8c1fd0337 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Thu, 31 Mar 2016 14:43:51 +0200 Subject: Map3Animations: add addBounceAnimation(Unit, float) --- core/src/ch/asynk/rustanddust/game/map/Map3Animations.java | 6 ++++++ 1 file changed, 6 insertions(+) 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(); -- cgit v1.1-2-g2b99