summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2016-01-31 01:51:59 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2016-01-31 01:51:59 +0100
commit8244dd3748900fa7beb3dd78a62382fc21989a2c (patch)
tree78accbb97f1e8d2d22249ea309bcc8f7f72b8442 /core
parent3d1f6cbaabf630f5a334f43183ff75e06fbf1ee5 (diff)
downloadRustAndDust-8244dd3748900fa7beb3dd78a62382fc21989a2c.zip
RustAndDust-8244dd3748900fa7beb3dd78a62382fc21989a2c.tar.gz
Backend: add init(), getMyId() and getOpponentId()
Diffstat (limited to 'core')
-rw-r--r--core/src/ch/asynk/rustanddust/Backend.java5
-rw-r--r--core/src/ch/asynk/rustanddust/RustAndDust.java1
2 files changed, 6 insertions, 0 deletions
diff --git a/core/src/ch/asynk/rustanddust/Backend.java b/core/src/ch/asynk/rustanddust/Backend.java
index 357304f..ec23aa3 100644
--- a/core/src/ch/asynk/rustanddust/Backend.java
+++ b/core/src/ch/asynk/rustanddust/Backend.java
@@ -2,4 +2,9 @@ package ch.asynk.rustanddust;
public interface Backend
{
+ public void init(RustAndDust game);
+
+ public int getMyId();
+
+ public int getOpponentId();
}
diff --git a/core/src/ch/asynk/rustanddust/RustAndDust.java b/core/src/ch/asynk/rustanddust/RustAndDust.java
index c675966..8e8a384 100644
--- a/core/src/ch/asynk/rustanddust/RustAndDust.java
+++ b/core/src/ch/asynk/rustanddust/RustAndDust.java
@@ -111,6 +111,7 @@ public class RustAndDust extends Game
manager = new AssetManager();
factory = new Factory(this);
config = new Config();
+ backend.init(this);
state = State.NONE;
loadUiAssets();