diff options
Diffstat (limited to 'core/src')
-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() { |