diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2014-11-21 17:02:47 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2014-11-21 17:02:47 +0100 |
commit | 13c9f21be040b203c4f81cf34f43f128972ee276 (patch) | |
tree | c08208b707180abd4f13b34ff53fbe4ebee54b09 | |
parent | df8853df21b3e67a04f8e8e34d28ed9b097484ed (diff) | |
download | RustAndDust-13c9f21be040b203c4f81cf34f43f128972ee276.zip RustAndDust-13c9f21be040b203c4f81cf34f43f128972ee276.tar.gz |
Unit: add getArmy
-rw-r--r-- | core/src/ch/asynk/tankontank/game/Unit.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/core/src/ch/asynk/tankontank/game/Unit.java b/core/src/ch/asynk/tankontank/game/Unit.java index a53dab0..0f94cdd 100644 --- a/core/src/ch/asynk/tankontank/game/Unit.java +++ b/core/src/ch/asynk/tankontank/game/Unit.java @@ -116,6 +116,11 @@ public class Unit extends HeadedPawn commonSetup(); } + public Army getArmy() + { + return (Army) getFaction(); + } + public Hex getHex() { return (Hex) getTile(); |