summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2016-06-29 14:54:17 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2016-06-29 14:54:17 +0200
commit92968cd8a14d7dbadbab4056b9722adb59ae1b8d (patch)
tree24bdb5bb40102ddc38a633c11f999c650d4795b1
parent335600076e6792d639f239dd8babb3d54f81407b (diff)
downloadRustAndDust-92968cd8a14d7dbadbab4056b9722adb59ae1b8d.zip
RustAndDust-92968cd8a14d7dbadbab4056b9722adb59ae1b8d.tar.gz
Backend: param RustAndDust game is final
-rw-r--r--android/src/ch/asynk/rustanddust/android/AndroidBackend.java2
-rw-r--r--core/src/ch/asynk/rustanddust/util/Backend.java2
-rw-r--r--desktop/src/ch/asynk/rustanddust/desktop/DesktopBackend.java2
3 files changed, 3 insertions, 3 deletions
diff --git a/android/src/ch/asynk/rustanddust/android/AndroidBackend.java b/android/src/ch/asynk/rustanddust/android/AndroidBackend.java
index 33cdc4e..796e4e2 100644
--- a/android/src/ch/asynk/rustanddust/android/AndroidBackend.java
+++ b/android/src/ch/asynk/rustanddust/android/AndroidBackend.java
@@ -24,7 +24,7 @@ public class AndroidBackend implements Backend
public int getOpponentId() { return opponent; }
@Override
- public void init(RustAndDust game)
+ public void init(final RustAndDust game)
{
AccountManager aMgr = (AccountManager) app.getSystemService(Context.ACCOUNT_SERVICE);
Account[] accounts = aMgr.getAccountsByType("com.google");
diff --git a/core/src/ch/asynk/rustanddust/util/Backend.java b/core/src/ch/asynk/rustanddust/util/Backend.java
index 5a10a1a..8942033 100644
--- a/core/src/ch/asynk/rustanddust/util/Backend.java
+++ b/core/src/ch/asynk/rustanddust/util/Backend.java
@@ -4,7 +4,7 @@ import ch.asynk.rustanddust.RustAndDust;
public interface Backend
{
- public void init(RustAndDust game);
+ public void init(final RustAndDust game);
public int getMyId();
diff --git a/desktop/src/ch/asynk/rustanddust/desktop/DesktopBackend.java b/desktop/src/ch/asynk/rustanddust/desktop/DesktopBackend.java
index db7f212..f7d235e 100644
--- a/desktop/src/ch/asynk/rustanddust/desktop/DesktopBackend.java
+++ b/desktop/src/ch/asynk/rustanddust/desktop/DesktopBackend.java
@@ -15,7 +15,7 @@ public class DesktopBackend implements Backend
public int getMyId() { return me; }
public int getOpponentId() { return opponent; }
- public void init(RustAndDust game)
+ public void init(final RustAndDust game)
{
me = game.db.storePlayerGetId("me", "myself");
opponent = me;