summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2015-12-15 14:40:31 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2015-12-15 14:40:31 +0100
commit7da0637c8af9dcbc3698e0675b755efeb7a6d065 (patch)
tree70cf8f821cf6081523d092a2b7870ed440fce064
parent068ba938f46d92b44acb2e6ce9fda0e86989b5ca (diff)
downloadRustAndDust-7da0637c8af9dcbc3698e0675b755efeb7a6d065.zip
RustAndDust-7da0637c8af9dcbc3698e0675b755efeb7a6d065.tar.gz
BattleCommon: add abTurnDone()
-rw-r--r--core/src/ch/asynk/rustanddust/game/battles/BattleCommon.java5
1 files changed, 5 insertions, 0 deletions
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()
{