Changeset 254:f399e4926c36


Ignore:
Timestamp:
Sep 5, 2009, 12:44:53 PM (11 years ago)
Author:
Neil Muller <drnlmuller@…>
Branch:
default
Convert:
svn:b4e93282-eac8-4b8b-b765-0f5d36de2b68@255
Message:

Fix events getting sent to the gameboard

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • TODO

    r249 r254  
    2121     -- Sapper foxes blowing things up?
    2222
    23 * <Nitwit> And we need to start testing for lose conditions, and set an upper time limit
    24   -- Think about length of game (i.e. number of days)
     23* Balance game (game length, profits & costs, etc.)
    2524
    2625== POST PYWEEK ==
  • gamelib/engine.py

    r245 r254  
    1818        self._open_window = None
    1919        self.scoreboard = gameover.ScoreTable()
     20        self.gameboard = None
    2021
    2122    def tick(self):
     
    4748        """Create and open the Game Over window"""
    4849        game_over = gameover.create_game_over(self.gameboard, self.scoreboard)
     50        self.gameboard = None
    4951        self.open_window(game_over)
     52
     53    def event(self, e):
     54        if not Game.event(self, e) and self.gameboard:
     55            self.gameboard.event(e)
     56       
    5057
    5158class MainMenuState(State):
Note: See TracChangeset for help on using the changeset viewer.