diff options
Diffstat (limited to 'android/src/ch')
-rw-r--r-- | android/src/ch/asynk/rustanddust/android/AndroidBackend.java | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/android/src/ch/asynk/rustanddust/android/AndroidBackend.java b/android/src/ch/asynk/rustanddust/android/AndroidBackend.java index c1650ad..6e0c581 100644 --- a/android/src/ch/asynk/rustanddust/android/AndroidBackend.java +++ b/android/src/ch/asynk/rustanddust/android/AndroidBackend.java @@ -3,13 +3,25 @@ package ch.asynk.rustanddust.android; import android.app.Application; import ch.asynk.rustanddust.Backend; +import ch.asynk.rustanddust.RustAndDust; public class AndroidBackend implements Backend { + private int me; + private int opponent; private Application app; public AndroidBackend(Application app) { this.app = app; } + + public int getMyId() { return me; } + public int getOpponentId() { return opponent; } + + public void init(RustAndDust game) + { + me = game.db.storePlayerGetId("me", "myself", "I"); + opponent = game.db.storePlayerGetId("opponent", "other", "you"); + } } |