Mercurial > pyntnclick
diff gamelib/scenes/bridge.py @ 120:48d24a48d0ce
Enter and leave hooks
author | Neil Muller <neil@dip.sun.ac.za> |
---|---|
date | Tue, 24 Aug 2010 17:24:54 +0200 |
parents | 75bf3d3689e9 |
children | 5e5d71e40e54 |
line wrap: on
line diff
--- a/gamelib/scenes/bridge.py Tue Aug 24 17:04:56 2010 +0200 +++ b/gamelib/scenes/bridge.py Tue Aug 24 17:24:54 2010 +0200 @@ -1,6 +1,6 @@ """Bridge where the final showdown with the AI occurs.""" -from gamelib.state import Scene, Item, Thing +from gamelib.state import Scene, Item, Thing, Result class Bridge(Scene): @@ -17,5 +17,9 @@ 'accessible': False, } + def enter(self): + return Result("The bridge is in a sorry, shabby state") + + SCENES = [Bridge]