Mercurial > skaapsteker
comparison skaapsteker/gamestate.py @ 454:95527fd29872
More complete game load/save/restart.
author | Jeremy Thurgood <firxen@gmail.com> |
---|---|
date | Sat, 09 Apr 2011 20:47:35 +0200 |
parents | 4bec05fed6c7 |
children | fb9258d66137 |
comparison
equal
deleted
inserted
replaced
453:9c9df17b98a7 | 454:95527fd29872 |
---|---|
35 | 35 |
36 class GameState(object): | 36 class GameState(object): |
37 | 37 |
38 def __init__(self, game_file): | 38 def __init__(self, game_file): |
39 self._game_file = game_file | 39 self._game_file = game_file |
40 self.world = None | |
40 | 41 |
41 def can_resume(self): | 42 def can_resume(self): |
42 return os.path.exists(self._game_file) | 43 return os.path.exists(self._game_file) |
43 | 44 |
44 def load_game(self, game_file=None): | 45 def load_game(self, game_file=None): |