summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk/rustanddust/game/battles
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2016-01-27 14:15:17 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2016-01-27 22:26:28 +0100
commit50f542d9a7511fa077541d3416a672c426b11157 (patch)
tree5c46f27b968a8c68d57b589068369ea13d0ada42 /core/src/ch/asynk/rustanddust/game/battles
parent916990628809b964d4255bfcd0abc4c5fd5eb37d (diff)
downloadRustAndDust-50f542d9a7511fa077541d3416a672c426b11157.zip
RustAndDust-50f542d9a7511fa077541d3416a672c426b11157.tar.gz
Battle: add setPlayerIds
Diffstat (limited to 'core/src/ch/asynk/rustanddust/game/battles')
-rw-r--r--core/src/ch/asynk/rustanddust/game/battles/BattleCommon.java6
1 files changed, 6 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 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()
{