X-Git-Url: https://git.ctpug.org.za/?a=blobdiff_plain;f=tabakrolletjie%2Fgamestate.py;h=c678befb968eb83d6520531698ee78a82c4fabcb;hb=7fe679f0d81d81b6bc3b8dc20d4b0a62840144f3;hp=ca7f961466a1b841bb78fce2a11047e65d8f6c32;hpb=272c2ba80ea242bf9084d5066ec87237793989e0;p=tabakrolletjie.git diff --git a/tabakrolletjie/gamestate.py b/tabakrolletjie/gamestate.py index ca7f961..c678bef 100644 --- a/tabakrolletjie/gamestate.py +++ b/tabakrolletjie/gamestate.py @@ -10,6 +10,7 @@ class GameState(object): "turnips": [], } self.harvested = 0 + self.eaten = 0 @property def station(self): @@ -39,3 +40,6 @@ class GameState(object): def load_station(self, station): self._state["station"] = loader.load_station(station) + + def get_spawn_positions(self): + return self._state["station"]["config"]["spawn positions"]