Mercurial > boomslang
comparison 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 |
comparison
equal
deleted
inserted
replaced
119:d5f7cccfdb6c | 120:48d24a48d0ce |
---|---|
1 """Bridge where the final showdown with the AI occurs.""" | 1 """Bridge where the final showdown with the AI occurs.""" |
2 | 2 |
3 from gamelib.state import Scene, Item, Thing | 3 from gamelib.state import Scene, Item, Thing, Result |
4 | 4 |
5 | 5 |
6 class Bridge(Scene): | 6 class Bridge(Scene): |
7 | 7 |
8 # FOLDER = "bridge" | 8 # FOLDER = "bridge" |
15 | 15 |
16 INITIAL_DATA = { | 16 INITIAL_DATA = { |
17 'accessible': False, | 17 'accessible': False, |
18 } | 18 } |
19 | 19 |
20 def enter(self): | |
21 return Result("The bridge is in a sorry, shabby state") | |
22 | |
23 | |
20 | 24 |
21 SCENES = [Bridge] | 25 SCENES = [Bridge] |