Rename info bar from toolbar to infobar. Add target number to infobar. Tweak rendering
[tabakrolletjie.git] / tabakrolletjie / gamestate.py
index 091b7093d419ac3024c4c52c35c6e984444fe47f..8d74d8106fcfc39e6199512903d09dc452a99744 100644 (file)
@@ -1,7 +1,5 @@
 """ The game state. """
 
-from .loader import loader
-
 
 class GameState(object):
     def __init__(self):
@@ -11,6 +9,7 @@ class GameState(object):
         }
         self.harvested = 0
         self.eaten = 0
+        self.days = 0
 
     @property
     def station(self):
@@ -38,5 +37,11 @@ class GameState(object):
     def seeds(self, value):
         self._state['seeds'] = value
 
-    def load_station(self, station):
-        self._state["station"] = loader.load_station(station)
+    def set_station(self, station):
+        self._state["station"] = station
+
+    def get_spawn_positions(self):
+        return self._state["station"]["config"]["spawn positions"]
+
+    def get_target(self):
+        return self._state["station"]["config"]["turnip target"]