summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2014-11-01 23:38:28 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2014-11-01 23:38:28 +0100
commitc834255b4558298750db270d1771e300f04e06d0 (patch)
treecdf9b969d011af4f60aec8eed2bfa7a2abf049cd /core/src/ch/asynk
parentdaddc5d539c3e137da8ac6769c24072c057c120c (diff)
downloadRustAndDust-c834255b4558298750db270d1771e300f04e06d0.zip
RustAndDust-c834255b4558298750db270d1771e300f04e06d0.tar.gz
engine/Player: add getFaction()
Diffstat (limited to 'core/src/ch/asynk')
-rw-r--r--core/src/ch/asynk/tankontank/engine/Player.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/core/src/ch/asynk/tankontank/engine/Player.java b/core/src/ch/asynk/tankontank/engine/Player.java
index 5022769..4678484 100644
--- a/core/src/ch/asynk/tankontank/engine/Player.java
+++ b/core/src/ch/asynk/tankontank/engine/Player.java
@@ -24,6 +24,11 @@ public abstract class Player
this.reinforcement = new ArrayList<Pawn>(n);
}
+ public Faction getFaction()
+ {
+ return faction;
+ }
+
public int unitsLeft()
{
return (units.size() + reinforcement.size());