From 2db955979ca08f6c325dac12593eab59fa87418e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Mon, 1 Feb 2016 23:55:49 +0100 Subject: Player: getAp() getApSpent() getCurrentAp() --- core/src/ch/asynk/rustanddust/game/Player.java | 10 ++++++++++ 1 file changed, 10 insertions(+) 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); } -- cgit v1.1-2-g2b99