summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2016-03-31 14:43:51 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2016-03-31 14:43:51 +0200
commit83496d75dd423e60919808ea4bc26ee8c1fd0337 (patch)
tree2aeeb40bd31d72ded32dd97bf7956358bf809454
parent6859800c15183cc1669285635778269c52df662b (diff)
downloadRustAndDust-83496d75dd423e60919808ea4bc26ee8c1fd0337.zip
RustAndDust-83496d75dd423e60919808ea4bc26ee8c1fd0337.tar.gz
Map3Animations: add addBounceAnimation(Unit, float)
-rw-r--r--core/src/ch/asynk/rustanddust/game/map/Map3Animations.java6
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();