Mercurial > boomslang
diff pyntnclick/gamescreen.py @ 581:7e4a20eb78b8 pyntnclick
Pass game_description to all screens
author | Stefano Rivera <stefano@rivera.za.net> |
---|---|
date | Sat, 11 Feb 2012 16:28:41 +0200 |
parents | 1b1ab71535bd |
children | 2d2ea51b73ad |
line wrap: on
line diff
--- a/pyntnclick/gamescreen.py Sat Feb 11 16:22:56 2012 +0200 +++ b/pyntnclick/gamescreen.py Sat Feb 11 16:28:41 2012 +0200 @@ -208,11 +208,11 @@ class GameScreen(Screen, CursorWidget): - def __init__(self, shell, create_initial_state): + def __init__(self, shell, game_description): CursorWidget.__init__(self, self) Screen.__init__(self, shell) self.running = False - self.create_initial_state = create_initial_state + self.create_initial_state = game_description.initial_state def _clear_all(self): for widget in self.subwidgets[:]: