diff options
Diffstat (limited to 'core/src/ch/asynk')
-rw-r--r-- | core/src/ch/asynk/rustanddust/Backend.java | 5 | ||||
-rw-r--r-- | core/src/ch/asynk/rustanddust/RustAndDust.java | 1 |
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(); |