summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2016-02-03 01:00:16 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2016-02-03 01:00:16 +0100
commitcbcfb75fbd51915b68c51d15d85fe102a85b50de (patch)
tree2f2dcd118e01c13dac6d0d32101f993cba784bd9
parent802d7c04ebdb70202f8cad65f516c8ae1a7c5c14 (diff)
downloadRustAndDust-cbcfb75fbd51915b68c51d15d85fe102a85b50de.zip
RustAndDust-cbcfb75fbd51915b68c51d15d85fe102a85b50de.tar.gz
Player: add setTurn(turn, ap, apSent)
-rw-r--r--core/src/ch/asynk/rustanddust/game/Player.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/core/src/ch/asynk/rustanddust/game/Player.java b/core/src/ch/asynk/rustanddust/game/Player.java
index 3ed012b..1263ff4 100644
--- a/core/src/ch/asynk/rustanddust/game/Player.java
+++ b/core/src/ch/asynk/rustanddust/game/Player.java
@@ -40,6 +40,13 @@ public class Player
this.engagementLost = 0;
}
+ public void setTurn(int turn, int ap, int apSpent)
+ {
+ this.turn = turn;
+ this.ap = ap;
+ this.apSpent = apSpent;
+ }
+
public int getId()
{
return id;