Ignore:
Timestamp:
09/01/13 15:06:06 (8 years ago)
Author:
Simon Cross <hodgestar@…>
Branch:
default
Phase:
public
Rebase:
64653134306534303664626663323464396434623235626336396239666236353836613932373734
Message:

Give screens a name and a world.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • nagslang/engine.py

    r25 r37  
    2525        if self._current_screen is not None:
    2626            self._current_screen.teardown()
    27         self._current_screen = self._screens[new_screen]()
    28         self._current_screen.setup(self._world)
     27        screen_cls = self._screens[new_screen]
     28        self._current_screen = screen_cls(new_screen, self._world)
     29        self._current_screen.setup()
    2930
    3031    def run(self):
Note: See TracChangeset for help on using the changeset viewer.