Add days to gamestate and day screen display
[tabakrolletjie.git] / tabakrolletjie / gamestate.py
index 091b7093d419ac3024c4c52c35c6e984444fe47f..4ce92e832007db534b6af5422b7be2cc4d799d9d 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,8 @@ 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"]