diff gamelib/engine.py @ 396:19e583e5cdc0

Refactor for further move work
author Neil Muller <drnlmuller@gmail.com>
date Thu, 12 Nov 2009 21:31:52 +0000
parents bb75979b58e6
children 03d5cb669298
line wrap: on
line diff
--- a/gamelib/engine.py	Thu Nov 12 21:14:21 2009 +0000
+++ b/gamelib/engine.py	Thu Nov 12 21:31:52 2009 +0000
@@ -226,7 +226,7 @@
             self.cycle_count += 1
             if self.cycle_count > constants.NIGHT_LENGTH:
                 return pygame.event.post(START_DAY)
-            if self.game.gameboard.move_foxes():
+            if self.game.gameboard.do_night_step():
                 # All foxes are gone/safe, so dawn happens
                 return pygame.event.post(START_DAY)
             # Re-enable timers