Mercurial > boomslang
comparison gamelib/scenes/scene_widgets.py @ 252:dfc89bc64fdb
Start of walkthrough "unit test" and associated fixes and tweaks.
author | Jeremy Thurgood <firxen@gmail.com> |
---|---|
date | Fri, 27 Aug 2010 16:45:47 +0200 |
parents | 12c4f87ea424 |
children | 3b4a78422201 |
comparison
equal
deleted
inserted
replaced
251:602fe654bd37 | 252:dfc89bc64fdb |
---|---|
7 | 7 |
8 class Door(Thing): | 8 class Door(Thing): |
9 """A door somewhere""" | 9 """A door somewhere""" |
10 | 10 |
11 DEST = "map" | 11 DEST = "map" |
12 SCENE = None | |
13 | |
14 def __init__(self): | |
15 self.NAME = self.SCENE + '.door' | |
16 Thing.__init__(self) | |
12 | 17 |
13 def is_interactive(self): | 18 def is_interactive(self): |
14 return True | 19 return True |
15 | 20 |
16 def interact_without(self): | 21 def interact_without(self): |