summaryrefslogtreecommitdiffstats
path: root/desktop
diff options
context:
space:
mode:
Diffstat (limited to 'desktop')
-rw-r--r--desktop/src/ch/asynk/rustanddust/desktop/DesktopBackend.java13
1 files changed, 13 insertions, 0 deletions
diff --git a/desktop/src/ch/asynk/rustanddust/desktop/DesktopBackend.java b/desktop/src/ch/asynk/rustanddust/desktop/DesktopBackend.java
index 4b54056..610ac6d 100644
--- a/desktop/src/ch/asynk/rustanddust/desktop/DesktopBackend.java
+++ b/desktop/src/ch/asynk/rustanddust/desktop/DesktopBackend.java
@@ -1,10 +1,23 @@
package ch.asynk.rustanddust.desktop;
+import ch.asynk.rustanddust.RustAndDust;
import ch.asynk.rustanddust.Backend;
public class DesktopBackend implements Backend
{
+ private int me;
+ private int opponent;
+
public DesktopBackend()
{
}
+
+ 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");
+ }
}