From 9c18ced1eb38279f35cb431a27bf0f527ee39d3f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Mon, 1 Feb 2016 20:09:31 +0100 Subject: Backend -> util.Backend --- android/src/ch/asynk/rustanddust/android/AndroidBackend.java | 2 +- core/src/ch/asynk/rustanddust/Backend.java | 10 ---------- core/src/ch/asynk/rustanddust/RustAndDust.java | 1 + core/src/ch/asynk/rustanddust/util/Backend.java | 12 ++++++++++++ desktop/src/ch/asynk/rustanddust/desktop/DesktopBackend.java | 2 +- 5 files changed, 15 insertions(+), 12 deletions(-) delete mode 100644 core/src/ch/asynk/rustanddust/Backend.java create mode 100644 core/src/ch/asynk/rustanddust/util/Backend.java diff --git a/android/src/ch/asynk/rustanddust/android/AndroidBackend.java b/android/src/ch/asynk/rustanddust/android/AndroidBackend.java index 6e0c581..f0b1a6d 100644 --- a/android/src/ch/asynk/rustanddust/android/AndroidBackend.java +++ b/android/src/ch/asynk/rustanddust/android/AndroidBackend.java @@ -2,8 +2,8 @@ package ch.asynk.rustanddust.android; import android.app.Application; -import ch.asynk.rustanddust.Backend; import ch.asynk.rustanddust.RustAndDust; +import ch.asynk.rustanddust.util.Backend; public class AndroidBackend implements Backend { diff --git a/core/src/ch/asynk/rustanddust/Backend.java b/core/src/ch/asynk/rustanddust/Backend.java deleted file mode 100644 index ec23aa3..0000000 --- a/core/src/ch/asynk/rustanddust/Backend.java +++ /dev/null @@ -1,10 +0,0 @@ -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 b530ea7..a73a725 100644 --- a/core/src/ch/asynk/rustanddust/RustAndDust.java +++ b/core/src/ch/asynk/rustanddust/RustAndDust.java @@ -15,6 +15,7 @@ import com.badlogic.gdx.graphics.g2d.freetype.FreeTypeFontGenerator.FreeTypeFont import ch.asynk.rustanddust.screens.MenuScreen; import ch.asynk.rustanddust.screens.GameScreen; import ch.asynk.rustanddust.util.DB; +import ch.asynk.rustanddust.util.Backend; import ch.asynk.rustanddust.game.Ctrl; import ch.asynk.rustanddust.game.Config; import ch.asynk.rustanddust.game.Factory; diff --git a/core/src/ch/asynk/rustanddust/util/Backend.java b/core/src/ch/asynk/rustanddust/util/Backend.java new file mode 100644 index 0000000..5a10a1a --- /dev/null +++ b/core/src/ch/asynk/rustanddust/util/Backend.java @@ -0,0 +1,12 @@ +package ch.asynk.rustanddust.util; + +import ch.asynk.rustanddust.RustAndDust; + +public interface Backend +{ + public void init(RustAndDust game); + + public int getMyId(); + + public int getOpponentId(); +} diff --git a/desktop/src/ch/asynk/rustanddust/desktop/DesktopBackend.java b/desktop/src/ch/asynk/rustanddust/desktop/DesktopBackend.java index 610ac6d..48dd97b 100644 --- a/desktop/src/ch/asynk/rustanddust/desktop/DesktopBackend.java +++ b/desktop/src/ch/asynk/rustanddust/desktop/DesktopBackend.java @@ -1,7 +1,7 @@ package ch.asynk.rustanddust.desktop; import ch.asynk.rustanddust.RustAndDust; -import ch.asynk.rustanddust.Backend; +import ch.asynk.rustanddust.util.Backend; public class DesktopBackend implements Backend { -- cgit v1.1-2-g2b99