diff options
Diffstat (limited to 'desktop/src')
-rw-r--r-- | desktop/src/ch/asynk/rustanddust/desktop/DesktopBackend.java | 13 |
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"); + } } |