From c834255b4558298750db270d1771e300f04e06d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Sat, 1 Nov 2014 23:38:28 +0100 Subject: engine/Player: add getFaction() --- core/src/ch/asynk/tankontank/engine/Player.java | 5 +++++ 1 file changed, 5 insertions(+) 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(n); } + public Faction getFaction() + { + return faction; + } + public int unitsLeft() { return (units.size() + reinforcement.size()); -- cgit v1.1-2-g2b99