summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2016-02-01 23:55:49 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2016-02-01 23:55:49 +0100
commit2db955979ca08f6c325dac12593eab59fa87418e (patch)
tree77cd0b859c093d2101bf9014ce8da1d84ed23fab
parent9e2d8ffa4e19858b3e878d144e8fec9122e52f36 (diff)
downloadRustAndDust-2db955979ca08f6c325dac12593eab59fa87418e.zip
RustAndDust-2db955979ca08f6c325dac12593eab59fa87418e.tar.gz
Player: getAp() getApSpent() getCurrentAp()
-rw-r--r--core/src/ch/asynk/rustanddust/game/Player.java10
1 files changed, 10 insertions, 0 deletions
diff --git a/core/src/ch/asynk/rustanddust/game/Player.java b/core/src/ch/asynk/rustanddust/game/Player.java
index ca4fc88..3ed012b 100644
--- a/core/src/ch/asynk/rustanddust/game/Player.java
+++ b/core/src/ch/asynk/rustanddust/game/Player.java
@@ -141,6 +141,16 @@ public class Player
public int getAp()
{
+ return ap;
+ }
+
+ public int getApSpent()
+ {
+ return apSpent;
+ }
+
+ public int getCurrentAp()
+ {
return ((apSpent < ap) ? (apSpent + 1) : apSpent);
}