diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2014-12-03 23:41:25 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2014-12-03 23:41:25 +0100 |
commit | 81bcdbf34e78df2b1bcad44737099833ba93e2ba (patch) | |
tree | 5499b1c59dcfdee6d06194defec5047fc3915344 | |
parent | acb0250a3bf9dd6b91e0aa3b227a7013888183a3 (diff) | |
download | RustAndDust-81bcdbf34e78df2b1bcad44737099833ba93e2ba.zip RustAndDust-81bcdbf34e78df2b1bcad44737099833ba93e2ba.tar.gz |
add
-rw-r--r-- | core/src/ch/asynk/tankontank/game/Map.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/core/src/ch/asynk/tankontank/game/Map.java b/core/src/ch/asynk/tankontank/game/Map.java index d7f5e92..f1d8420 100644 --- a/core/src/ch/asynk/tankontank/game/Map.java +++ b/core/src/ch/asynk/tankontank/game/Map.java @@ -20,6 +20,7 @@ import ch.asynk.tankontank.engine.gfx.animations.AnimationSequence; import ch.asynk.tankontank.engine.gfx.animations.DiceAnimation; import ch.asynk.tankontank.engine.gfx.animations.FireAnimation; import ch.asynk.tankontank.engine.gfx.animations.TankFireAnimation; +import ch.asynk.tankontank.engine.gfx.animations.InfantryFireAnimation; import ch.asynk.tankontank.engine.gfx.animations.PromoteAnimation; import ch.asynk.tankontank.engine.gfx.animations.SoundAnimation; import ch.asynk.tankontank.engine.gfx.animations.RunnableAnimation; @@ -410,7 +411,10 @@ public abstract class Map extends Board for (Unit u : activatedUnits) { Hex from = u.getHex(); AnimationSequence seq = AnimationSequence.get(2); - seq.addAnimation(TankFireAnimation.get(ctrl.cfg.fxVolume, (u.getWidth() / 2.f), from.getX(), from.getY(), to.getX(), to.getY())); + if (u.isA(Unit.UnitType.INFANTRY)) + seq.addAnimation(InfantryFireAnimation.get(ctrl.cfg.fxVolume, (u.getWidth() / 2.f), from.getX(), from.getY(), to.getX(), to.getY())); + else + seq.addAnimation(TankFireAnimation.get(ctrl.cfg.fxVolume, (u.getWidth() / 2.f), from.getX(), from.getY(), to.getX(), to.getY())); seq.addAnimation(notifyDoneAnimation(target)); addAnimation(seq); } |