diff options
Diffstat (limited to 'core/src/ch/asynk/rustanddust/game/Player.java')
-rw-r--r-- | core/src/ch/asynk/rustanddust/game/Player.java | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/core/src/ch/asynk/rustanddust/game/Player.java b/core/src/ch/asynk/rustanddust/game/Player.java index 01ba89f..9ee087a 100644 --- a/core/src/ch/asynk/rustanddust/game/Player.java +++ b/core/src/ch/asynk/rustanddust/game/Player.java @@ -6,7 +6,7 @@ public class Player { private static final float MOVE_TIME = 0.4f; - public int _id; + private int id; private int turn; private int apSpent; private int actionPoints; @@ -23,8 +23,9 @@ public class Player public int engagementWon; public int engagementLost; - public Player(final RustAndDust game, Army army, int n) + public Player(final RustAndDust game, int id, Army army, int n) { + this.id = id; this.army = army; this.units = new UnitList(n); this.casualties = new UnitList(n); @@ -40,6 +41,11 @@ public class Player this.engagementLost = 0; } + public int getId() + { + return id; + } + public String getName() { return army.toString(); |