From 92968cd8a14d7dbadbab4056b9722adb59ae1b8d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Wed, 29 Jun 2016 14:54:17 +0200 Subject: Backend: param RustAndDust game is final --- android/src/ch/asynk/rustanddust/android/AndroidBackend.java | 2 +- core/src/ch/asynk/rustanddust/util/Backend.java | 2 +- desktop/src/ch/asynk/rustanddust/desktop/DesktopBackend.java | 2 +- 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; -- cgit v1.1-2-g2b99