diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2016-02-01 23:55:49 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2016-02-01 23:55:49 +0100 |
commit | 2db955979ca08f6c325dac12593eab59fa87418e (patch) | |
tree | 77cd0b859c093d2101bf9014ce8da1d84ed23fab /core/src | |
parent | 9e2d8ffa4e19858b3e878d144e8fec9122e52f36 (diff) | |
download | RustAndDust-2db955979ca08f6c325dac12593eab59fa87418e.zip RustAndDust-2db955979ca08f6c325dac12593eab59fa87418e.tar.gz |
Player: getAp() getApSpent() getCurrentAp()
Diffstat (limited to 'core/src')
-rw-r--r-- | core/src/ch/asynk/rustanddust/game/Player.java | 10 |
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); } |