diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2016-01-27 14:15:17 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2016-01-27 22:26:28 +0100 |
commit | 50f542d9a7511fa077541d3416a672c426b11157 (patch) | |
tree | 5c46f27b968a8c68d57b589068369ea13d0ada42 /core/src/ch/asynk/rustanddust/game | |
parent | 916990628809b964d4255bfcd0abc4c5fd5eb37d (diff) | |
download | RustAndDust-50f542d9a7511fa077541d3416a672c426b11157.zip RustAndDust-50f542d9a7511fa077541d3416a672c426b11157.tar.gz |
Battle: add setPlayerIds
Diffstat (limited to 'core/src/ch/asynk/rustanddust/game')
-rw-r--r-- | core/src/ch/asynk/rustanddust/game/Battle.java | 2 | ||||
-rw-r--r-- | core/src/ch/asynk/rustanddust/game/battles/BattleCommon.java | 6 |
2 files changed, 8 insertions, 0 deletions
diff --git a/core/src/ch/asynk/rustanddust/game/Battle.java b/core/src/ch/asynk/rustanddust/game/Battle.java index 3e958f6..df17838 100644 --- a/core/src/ch/asynk/rustanddust/game/Battle.java +++ b/core/src/ch/asynk/rustanddust/game/Battle.java @@ -13,6 +13,8 @@ public interface Battle public MapType getMapType(); + public void setPlayerIds(int a, int b); + public Player getPlayer(); public Player getOpponent(); diff --git a/core/src/ch/asynk/rustanddust/game/battles/BattleCommon.java b/core/src/ch/asynk/rustanddust/game/battles/BattleCommon.java index 4d75857..2a966b3 100644 --- a/core/src/ch/asynk/rustanddust/game/battles/BattleCommon.java +++ b/core/src/ch/asynk/rustanddust/game/battles/BattleCommon.java @@ -176,6 +176,12 @@ public abstract class BattleCommon implements Battle return getOpponent(); } + public void setPlayerIds(int a, int b) + { + usPlayer._id = a; + gePlayer._id = b; + } + @Override public Player getPlayer() { |