diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2016-02-29 06:53:47 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2016-02-29 06:53:47 +0100 |
commit | 5114770988dc15fe245cd9d0439468f4664134bf (patch) | |
tree | bd97515114721fb4e68219c663a913bbb504364f /core/src/ch/asynk/rustanddust/game | |
parent | 98a329b9e709b77a861f532d4ba694dab6093efd (diff) | |
download | RustAndDust-5114770988dc15fe245cd9d0439468f4664134bf.zip RustAndDust-5114770988dc15fe245cd9d0439468f4664134bf.tar.gz |
Solo: processTurn() save orders only into turns table
Diffstat (limited to 'core/src/ch/asynk/rustanddust/game')
-rw-r--r-- | core/src/ch/asynk/rustanddust/game/ctrl/Solo.java | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/core/src/ch/asynk/rustanddust/game/ctrl/Solo.java b/core/src/ch/asynk/rustanddust/game/ctrl/Solo.java index ce52756..212e5ad 100644 --- a/core/src/ch/asynk/rustanddust/game/ctrl/Solo.java +++ b/core/src/ch/asynk/rustanddust/game/ctrl/Solo.java @@ -36,7 +36,7 @@ public class Solo extends Ctrl @Override protected void processTurn() { - // TODO must store Orders in turns table + storeOrders(); storeState(); } @@ -44,4 +44,9 @@ public class Solo extends Ctrl { game.db.storeState(gameId, battle.getPlayer().getId(), battle.getOpponent().getId(), battle.unload(true)); } + + private void storeOrders() + { + game.db.storeTurn(gameId, battle.getPlayer().getId(), battle.unload(false)); + } } |