X-Git-Url: https://git.ctpug.org.za/?a=blobdiff_plain;f=tabakrolletjie%2Fgamestate.py;h=4ce92e832007db534b6af5422b7be2cc4d799d9d;hb=a4d6c97f61e01e005b2f4571346578feed597f48;hp=c678befb968eb83d6520531698ee78a82c4fabcb;hpb=7fe679f0d81d81b6bc3b8dc20d4b0a62840144f3;p=tabakrolletjie.git diff --git a/tabakrolletjie/gamestate.py b/tabakrolletjie/gamestate.py index c678bef..4ce92e8 100644 --- a/tabakrolletjie/gamestate.py +++ b/tabakrolletjie/gamestate.py @@ -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,8 +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"]