From 7da0637c8af9dcbc3698e0675b755efeb7a6d065 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Tue, 15 Dec 2015 14:40:31 +0100 Subject: BattleCommon: add abTurnDone() --- core/src/ch/asynk/rustanddust/game/battles/BattleCommon.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/core/src/ch/asynk/rustanddust/game/battles/BattleCommon.java b/core/src/ch/asynk/rustanddust/game/battles/BattleCommon.java index b3ffef8..03dbc3c 100644 --- a/core/src/ch/asynk/rustanddust/game/battles/BattleCommon.java +++ b/core/src/ch/asynk/rustanddust/game/battles/BattleCommon.java @@ -99,6 +99,11 @@ public abstract class BattleCommon implements Battle return burn; } + protected boolean abTurnDone() + { + return ((currentPlayer.getTurnDone() > 0) && (currentPlayer.getTurnDone() == getOpponent().getTurnDone())); + } + @Override public boolean turnDone() { -- cgit v1.1-2-g2b99