summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2014-11-21 17:02:47 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2014-11-21 17:02:47 +0100
commit13c9f21be040b203c4f81cf34f43f128972ee276 (patch)
treec08208b707180abd4f13b34ff53fbe4ebee54b09 /core
parentdf8853df21b3e67a04f8e8e34d28ed9b097484ed (diff)
downloadRustAndDust-13c9f21be040b203c4f81cf34f43f128972ee276.zip
RustAndDust-13c9f21be040b203c4f81cf34f43f128972ee276.tar.gz
Unit: add getArmy
Diffstat (limited to 'core')
-rw-r--r--core/src/ch/asynk/tankontank/game/Unit.java5
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();