diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2015-12-15 14:40:31 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2015-12-15 14:40:31 +0100 |
commit | 7da0637c8af9dcbc3698e0675b755efeb7a6d065 (patch) | |
tree | 70cf8f821cf6081523d092a2b7870ed440fce064 /core/src/ch | |
parent | 068ba938f46d92b44acb2e6ce9fda0e86989b5ca (diff) | |
download | RustAndDust-7da0637c8af9dcbc3698e0675b755efeb7a6d065.zip RustAndDust-7da0637c8af9dcbc3698e0675b755efeb7a6d065.tar.gz |
BattleCommon: add abTurnDone()
Diffstat (limited to 'core/src/ch')
-rw-r--r-- | core/src/ch/asynk/rustanddust/game/battles/BattleCommon.java | 5 |
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() { |