From 50f542d9a7511fa077541d3416a672c426b11157 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Wed, 27 Jan 2016 14:15:17 +0100 Subject: Battle: add setPlayerIds --- core/src/ch/asynk/rustanddust/game/Battle.java | 2 ++ core/src/ch/asynk/rustanddust/game/battles/BattleCommon.java | 6 ++++++ 2 files changed, 8 insertions(+) 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() { -- cgit v1.1-2-g2b99