Mercurial > pyntnclick
annotate gamelib/scenes/crew_quarters.py @ 311:00eb7ea2b7ea
Make self._interact_hilight_colour = None disable rect (matches comments)
author | Neil Muller <neil@dip.sun.ac.za> |
---|---|
date | Sat, 28 Aug 2010 08:56:12 +0200 |
parents | 6d93e04036c9 |
children | e1cae2b61443 |
rev | line source |
---|---|
233
7399b52f196f
Add a partial crew quarters (eighths?) implementation.
Jeremy Thurgood <firxen@gmail.com>
parents:
diff
changeset
|
1 """Crew quarters.""" |
7399b52f196f
Add a partial crew quarters (eighths?) implementation.
Jeremy Thurgood <firxen@gmail.com>
parents:
diff
changeset
|
2 |
7399b52f196f
Add a partial crew quarters (eighths?) implementation.
Jeremy Thurgood <firxen@gmail.com>
parents:
diff
changeset
|
3 from gamelib.cursor import CursorSprite |
263
3b4a78422201
Shuffled a bunch of stuff into more appropriate places.
Jeremy Thurgood <firxen@gmail.com>
parents:
252
diff
changeset
|
4 from gamelib.state import Scene, Item, Thing, Result |
3b4a78422201
Shuffled a bunch of stuff into more appropriate places.
Jeremy Thurgood <firxen@gmail.com>
parents:
252
diff
changeset
|
5 from gamelib.scenes.scene_widgets import (Door, InteractText, InteractNoImage, |
3b4a78422201
Shuffled a bunch of stuff into more appropriate places.
Jeremy Thurgood <firxen@gmail.com>
parents:
252
diff
changeset
|
6 InteractRectUnion, InteractImage, |
3b4a78422201
Shuffled a bunch of stuff into more appropriate places.
Jeremy Thurgood <firxen@gmail.com>
parents:
252
diff
changeset
|
7 InteractAnimated, GenericDescThing) |
233
7399b52f196f
Add a partial crew quarters (eighths?) implementation.
Jeremy Thurgood <firxen@gmail.com>
parents:
diff
changeset
|
8 |
7399b52f196f
Add a partial crew quarters (eighths?) implementation.
Jeremy Thurgood <firxen@gmail.com>
parents:
diff
changeset
|
9 class CrewQuarters(Scene): |
7399b52f196f
Add a partial crew quarters (eighths?) implementation.
Jeremy Thurgood <firxen@gmail.com>
parents:
diff
changeset
|
10 |
7399b52f196f
Add a partial crew quarters (eighths?) implementation.
Jeremy Thurgood <firxen@gmail.com>
parents:
diff
changeset
|
11 FOLDER = "crew_quarters" |
275
d78ce15bccc8
Crew quarters background and toolbar on the rect tool.
Jeremy Thurgood <firxen@gmail.com>
parents:
263
diff
changeset
|
12 BACKGROUND = "crew_quarters.png" |
233
7399b52f196f
Add a partial crew quarters (eighths?) implementation.
Jeremy Thurgood <firxen@gmail.com>
parents:
diff
changeset
|
13 |
283
3ac2e025478f
Fishbowl and laser lights that don't make the universe go away.
Jeremy Thurgood <firxen@gmail.com>
parents:
275
diff
changeset
|
14 OFFSET = (0, -50) |
3ac2e025478f
Fishbowl and laser lights that don't make the universe go away.
Jeremy Thurgood <firxen@gmail.com>
parents:
275
diff
changeset
|
15 |
233
7399b52f196f
Add a partial crew quarters (eighths?) implementation.
Jeremy Thurgood <firxen@gmail.com>
parents:
diff
changeset
|
16 INITIAL_DATA = { |
7399b52f196f
Add a partial crew quarters (eighths?) implementation.
Jeremy Thurgood <firxen@gmail.com>
parents:
diff
changeset
|
17 'accessible': True, |
7399b52f196f
Add a partial crew quarters (eighths?) implementation.
Jeremy Thurgood <firxen@gmail.com>
parents:
diff
changeset
|
18 } |
7399b52f196f
Add a partial crew quarters (eighths?) implementation.
Jeremy Thurgood <firxen@gmail.com>
parents:
diff
changeset
|
19 |
7399b52f196f
Add a partial crew quarters (eighths?) implementation.
Jeremy Thurgood <firxen@gmail.com>
parents:
diff
changeset
|
20 def __init__(self, state): |
7399b52f196f
Add a partial crew quarters (eighths?) implementation.
Jeremy Thurgood <firxen@gmail.com>
parents:
diff
changeset
|
21 super(CrewQuarters, self).__init__(state) |
242 | 22 self.add_thing(ToMap()) |
287
2a11709cb427
Hook up a few things in the crew quarters
Neil Muller <neil@dip.sun.ac.za>
parents:
283
diff
changeset
|
23 self.add_thing(Safe()) |
283
3ac2e025478f
Fishbowl and laser lights that don't make the universe go away.
Jeremy Thurgood <firxen@gmail.com>
parents:
275
diff
changeset
|
24 self.add_thing(FishbowlThing()) |
288
13b6fbfb39aa
Plotting in the crew quarters.
Jeremy Thurgood <firxen@gmail.com>
parents:
287
diff
changeset
|
25 self.add_thing(Safe()) |
283
3ac2e025478f
Fishbowl and laser lights that don't make the universe go away.
Jeremy Thurgood <firxen@gmail.com>
parents:
275
diff
changeset
|
26 self.add_item(Fishbowl('fishbowl')) |
288
13b6fbfb39aa
Plotting in the crew quarters.
Jeremy Thurgood <firxen@gmail.com>
parents:
287
diff
changeset
|
27 self.add_item(DuctTape('duct_tape')) |
287
2a11709cb427
Hook up a few things in the crew quarters
Neil Muller <neil@dip.sun.ac.za>
parents:
283
diff
changeset
|
28 self.add_thing(GenericDescThing('crew.plant', 1, |
2a11709cb427
Hook up a few things in the crew quarters
Neil Muller <neil@dip.sun.ac.za>
parents:
283
diff
changeset
|
29 "The plant is doing surprisingly well for centuries of neglect", |
2a11709cb427
Hook up a few things in the crew quarters
Neil Muller <neil@dip.sun.ac.za>
parents:
283
diff
changeset
|
30 ((624, 215, 61, 108),))) |
2a11709cb427
Hook up a few things in the crew quarters
Neil Muller <neil@dip.sun.ac.za>
parents:
283
diff
changeset
|
31 self.add_thing(GenericDescThing('crew.cat', 2, |
2a11709cb427
Hook up a few things in the crew quarters
Neil Muller <neil@dip.sun.ac.za>
parents:
283
diff
changeset
|
32 "A picture of a cat labelled 'Clementine'", |
2a11709cb427
Hook up a few things in the crew quarters
Neil Muller <neil@dip.sun.ac.za>
parents:
283
diff
changeset
|
33 ((722, 382, 66, 72),))) |
233
7399b52f196f
Add a partial crew quarters (eighths?) implementation.
Jeremy Thurgood <firxen@gmail.com>
parents:
diff
changeset
|
34 |
7399b52f196f
Add a partial crew quarters (eighths?) implementation.
Jeremy Thurgood <firxen@gmail.com>
parents:
diff
changeset
|
35 def enter(self): |
7399b52f196f
Add a partial crew quarters (eighths?) implementation.
Jeremy Thurgood <firxen@gmail.com>
parents:
diff
changeset
|
36 return Result("The crew were a messy bunch. Or maybe that's just the intervening centuries.") |
7399b52f196f
Add a partial crew quarters (eighths?) implementation.
Jeremy Thurgood <firxen@gmail.com>
parents:
diff
changeset
|
37 |
7399b52f196f
Add a partial crew quarters (eighths?) implementation.
Jeremy Thurgood <firxen@gmail.com>
parents:
diff
changeset
|
38 |
242 | 39 class ToMap(Door): |
233
7399b52f196f
Add a partial crew quarters (eighths?) implementation.
Jeremy Thurgood <firxen@gmail.com>
parents:
diff
changeset
|
40 |
252
dfc89bc64fdb
Start of walkthrough "unit test" and associated fixes and tweaks.
Jeremy Thurgood <firxen@gmail.com>
parents:
242
diff
changeset
|
41 SCENE = "crew" |
233
7399b52f196f
Add a partial crew quarters (eighths?) implementation.
Jeremy Thurgood <firxen@gmail.com>
parents:
diff
changeset
|
42 |
7399b52f196f
Add a partial crew quarters (eighths?) implementation.
Jeremy Thurgood <firxen@gmail.com>
parents:
diff
changeset
|
43 INTERACTS = { |
287
2a11709cb427
Hook up a few things in the crew quarters
Neil Muller <neil@dip.sun.ac.za>
parents:
283
diff
changeset
|
44 "door": InteractNoImage(233, 252, 125, 181), |
233
7399b52f196f
Add a partial crew quarters (eighths?) implementation.
Jeremy Thurgood <firxen@gmail.com>
parents:
diff
changeset
|
45 } |
7399b52f196f
Add a partial crew quarters (eighths?) implementation.
Jeremy Thurgood <firxen@gmail.com>
parents:
diff
changeset
|
46 |
7399b52f196f
Add a partial crew quarters (eighths?) implementation.
Jeremy Thurgood <firxen@gmail.com>
parents:
diff
changeset
|
47 INITIAL = "door" |
7399b52f196f
Add a partial crew quarters (eighths?) implementation.
Jeremy Thurgood <firxen@gmail.com>
parents:
diff
changeset
|
48 |
7399b52f196f
Add a partial crew quarters (eighths?) implementation.
Jeremy Thurgood <firxen@gmail.com>
parents:
diff
changeset
|
49 |
7399b52f196f
Add a partial crew quarters (eighths?) implementation.
Jeremy Thurgood <firxen@gmail.com>
parents:
diff
changeset
|
50 class Safe(Thing): |
7399b52f196f
Add a partial crew quarters (eighths?) implementation.
Jeremy Thurgood <firxen@gmail.com>
parents:
diff
changeset
|
51 "A safe, for keeping things safe." |
7399b52f196f
Add a partial crew quarters (eighths?) implementation.
Jeremy Thurgood <firxen@gmail.com>
parents:
diff
changeset
|
52 |
7399b52f196f
Add a partial crew quarters (eighths?) implementation.
Jeremy Thurgood <firxen@gmail.com>
parents:
diff
changeset
|
53 NAME = 'crew.safe' |
7399b52f196f
Add a partial crew quarters (eighths?) implementation.
Jeremy Thurgood <firxen@gmail.com>
parents:
diff
changeset
|
54 |
7399b52f196f
Add a partial crew quarters (eighths?) implementation.
Jeremy Thurgood <firxen@gmail.com>
parents:
diff
changeset
|
55 INTERACTS = { |
287
2a11709cb427
Hook up a few things in the crew quarters
Neil Muller <neil@dip.sun.ac.za>
parents:
283
diff
changeset
|
56 'safe': InteractNoImage(447, 238, 72, 73), |
288
13b6fbfb39aa
Plotting in the crew quarters.
Jeremy Thurgood <firxen@gmail.com>
parents:
287
diff
changeset
|
57 'full_safe': InteractImage(445, 227, 'open_safe_full.png'), |
13b6fbfb39aa
Plotting in the crew quarters.
Jeremy Thurgood <firxen@gmail.com>
parents:
287
diff
changeset
|
58 'empty_safe': InteractImage(445, 227, 'open_safe_empty.png'), |
233
7399b52f196f
Add a partial crew quarters (eighths?) implementation.
Jeremy Thurgood <firxen@gmail.com>
parents:
diff
changeset
|
59 } |
7399b52f196f
Add a partial crew quarters (eighths?) implementation.
Jeremy Thurgood <firxen@gmail.com>
parents:
diff
changeset
|
60 |
7399b52f196f
Add a partial crew quarters (eighths?) implementation.
Jeremy Thurgood <firxen@gmail.com>
parents:
diff
changeset
|
61 INITIAL = 'safe' |
7399b52f196f
Add a partial crew quarters (eighths?) implementation.
Jeremy Thurgood <firxen@gmail.com>
parents:
diff
changeset
|
62 |
7399b52f196f
Add a partial crew quarters (eighths?) implementation.
Jeremy Thurgood <firxen@gmail.com>
parents:
diff
changeset
|
63 INITIAL_DATA = { |
7399b52f196f
Add a partial crew quarters (eighths?) implementation.
Jeremy Thurgood <firxen@gmail.com>
parents:
diff
changeset
|
64 'is_cracked': False, |
288
13b6fbfb39aa
Plotting in the crew quarters.
Jeremy Thurgood <firxen@gmail.com>
parents:
287
diff
changeset
|
65 'has_tape': True, |
233
7399b52f196f
Add a partial crew quarters (eighths?) implementation.
Jeremy Thurgood <firxen@gmail.com>
parents:
diff
changeset
|
66 } |
7399b52f196f
Add a partial crew quarters (eighths?) implementation.
Jeremy Thurgood <firxen@gmail.com>
parents:
diff
changeset
|
67 |
7399b52f196f
Add a partial crew quarters (eighths?) implementation.
Jeremy Thurgood <firxen@gmail.com>
parents:
diff
changeset
|
68 def interact_without(self): |
7399b52f196f
Add a partial crew quarters (eighths?) implementation.
Jeremy Thurgood <firxen@gmail.com>
parents:
diff
changeset
|
69 if self.get_data('is_cracked'): |
288
13b6fbfb39aa
Plotting in the crew quarters.
Jeremy Thurgood <firxen@gmail.com>
parents:
287
diff
changeset
|
70 if self.get_data('has_tape'): |
13b6fbfb39aa
Plotting in the crew quarters.
Jeremy Thurgood <firxen@gmail.com>
parents:
287
diff
changeset
|
71 self.set_data('has_tape', False) |
13b6fbfb39aa
Plotting in the crew quarters.
Jeremy Thurgood <firxen@gmail.com>
parents:
287
diff
changeset
|
72 self.state.add_inventory_item('duct_tape') |
13b6fbfb39aa
Plotting in the crew quarters.
Jeremy Thurgood <firxen@gmail.com>
parents:
287
diff
changeset
|
73 self.set_interact('empty_safe') |
13b6fbfb39aa
Plotting in the crew quarters.
Jeremy Thurgood <firxen@gmail.com>
parents:
287
diff
changeset
|
74 return Result("Duct tape. It'll stick to everything except " |
13b6fbfb39aa
Plotting in the crew quarters.
Jeremy Thurgood <firxen@gmail.com>
parents:
287
diff
changeset
|
75 "ducts, apparently.") |
13b6fbfb39aa
Plotting in the crew quarters.
Jeremy Thurgood <firxen@gmail.com>
parents:
287
diff
changeset
|
76 return Result("The perfactly balanced door swings frictionlessly " |
13b6fbfb39aa
Plotting in the crew quarters.
Jeremy Thurgood <firxen@gmail.com>
parents:
287
diff
changeset
|
77 "to and fro. What craftsmanship!") |
13b6fbfb39aa
Plotting in the crew quarters.
Jeremy Thurgood <firxen@gmail.com>
parents:
287
diff
changeset
|
78 return Result("The safe is locked. This might be an interesting " |
13b6fbfb39aa
Plotting in the crew quarters.
Jeremy Thurgood <firxen@gmail.com>
parents:
287
diff
changeset
|
79 "challenge, if suitable equipment can be found.") |
233
7399b52f196f
Add a partial crew quarters (eighths?) implementation.
Jeremy Thurgood <firxen@gmail.com>
parents:
diff
changeset
|
80 |
7399b52f196f
Add a partial crew quarters (eighths?) implementation.
Jeremy Thurgood <firxen@gmail.com>
parents:
diff
changeset
|
81 def interact_with_stethoscope(self, item): |
7399b52f196f
Add a partial crew quarters (eighths?) implementation.
Jeremy Thurgood <firxen@gmail.com>
parents:
diff
changeset
|
82 if self.get_data('is_cracked'): |
7399b52f196f
Add a partial crew quarters (eighths?) implementation.
Jeremy Thurgood <firxen@gmail.com>
parents:
diff
changeset
|
83 return Result("It's already unlocked. There's no more challenge.") |
7399b52f196f
Add a partial crew quarters (eighths?) implementation.
Jeremy Thurgood <firxen@gmail.com>
parents:
diff
changeset
|
84 # TODO: Add years to the sentence for safecracking. |
7399b52f196f
Add a partial crew quarters (eighths?) implementation.
Jeremy Thurgood <firxen@gmail.com>
parents:
diff
changeset
|
85 # TODO: Wax lyrical some more about safecracking. |
288
13b6fbfb39aa
Plotting in the crew quarters.
Jeremy Thurgood <firxen@gmail.com>
parents:
287
diff
changeset
|
86 self.set_data('is_cracked', True) |
13b6fbfb39aa
Plotting in the crew quarters.
Jeremy Thurgood <firxen@gmail.com>
parents:
287
diff
changeset
|
87 self.set_interact('full_safe') |
233
7399b52f196f
Add a partial crew quarters (eighths?) implementation.
Jeremy Thurgood <firxen@gmail.com>
parents:
diff
changeset
|
88 return Result("Even after centuries of neglect, the tumblers slide" |
7399b52f196f
Add a partial crew quarters (eighths?) implementation.
Jeremy Thurgood <firxen@gmail.com>
parents:
diff
changeset
|
89 " almost silently into place. Turns out the combination" |
7399b52f196f
Add a partial crew quarters (eighths?) implementation.
Jeremy Thurgood <firxen@gmail.com>
parents:
diff
changeset
|
90 " was '1 2 3 4 5'. An idiot must keep his luggage in" |
7399b52f196f
Add a partial crew quarters (eighths?) implementation.
Jeremy Thurgood <firxen@gmail.com>
parents:
diff
changeset
|
91 " here.") |
7399b52f196f
Add a partial crew quarters (eighths?) implementation.
Jeremy Thurgood <firxen@gmail.com>
parents:
diff
changeset
|
92 |
7399b52f196f
Add a partial crew quarters (eighths?) implementation.
Jeremy Thurgood <firxen@gmail.com>
parents:
diff
changeset
|
93 def get_description(self): |
7399b52f196f
Add a partial crew quarters (eighths?) implementation.
Jeremy Thurgood <firxen@gmail.com>
parents:
diff
changeset
|
94 return "Ah, a vintage Knoxx & Co. model QR3. Quaint, but reasonably secure." |
7399b52f196f
Add a partial crew quarters (eighths?) implementation.
Jeremy Thurgood <firxen@gmail.com>
parents:
diff
changeset
|
95 |
7399b52f196f
Add a partial crew quarters (eighths?) implementation.
Jeremy Thurgood <firxen@gmail.com>
parents:
diff
changeset
|
96 |
283
3ac2e025478f
Fishbowl and laser lights that don't make the universe go away.
Jeremy Thurgood <firxen@gmail.com>
parents:
275
diff
changeset
|
97 class FishbowlThing(Thing): |
3ac2e025478f
Fishbowl and laser lights that don't make the universe go away.
Jeremy Thurgood <firxen@gmail.com>
parents:
275
diff
changeset
|
98 "A safe, for keeping things safe." |
3ac2e025478f
Fishbowl and laser lights that don't make the universe go away.
Jeremy Thurgood <firxen@gmail.com>
parents:
275
diff
changeset
|
99 |
3ac2e025478f
Fishbowl and laser lights that don't make the universe go away.
Jeremy Thurgood <firxen@gmail.com>
parents:
275
diff
changeset
|
100 NAME = 'crew.fishbowl' |
3ac2e025478f
Fishbowl and laser lights that don't make the universe go away.
Jeremy Thurgood <firxen@gmail.com>
parents:
275
diff
changeset
|
101 |
3ac2e025478f
Fishbowl and laser lights that don't make the universe go away.
Jeremy Thurgood <firxen@gmail.com>
parents:
275
diff
changeset
|
102 INTERACTS = { |
3ac2e025478f
Fishbowl and laser lights that don't make the universe go away.
Jeremy Thurgood <firxen@gmail.com>
parents:
275
diff
changeset
|
103 'fishbowl': InteractImage(356, 495, 'fishbowl_on_table.png'), |
3ac2e025478f
Fishbowl and laser lights that don't make the universe go away.
Jeremy Thurgood <firxen@gmail.com>
parents:
275
diff
changeset
|
104 'fish_no_bowl': InteractImage(372, 517, 'fish_minus_bowl.png'), |
3ac2e025478f
Fishbowl and laser lights that don't make the universe go away.
Jeremy Thurgood <firxen@gmail.com>
parents:
275
diff
changeset
|
105 } |
3ac2e025478f
Fishbowl and laser lights that don't make the universe go away.
Jeremy Thurgood <firxen@gmail.com>
parents:
275
diff
changeset
|
106 |
3ac2e025478f
Fishbowl and laser lights that don't make the universe go away.
Jeremy Thurgood <firxen@gmail.com>
parents:
275
diff
changeset
|
107 INITIAL = 'fishbowl' |
3ac2e025478f
Fishbowl and laser lights that don't make the universe go away.
Jeremy Thurgood <firxen@gmail.com>
parents:
275
diff
changeset
|
108 |
3ac2e025478f
Fishbowl and laser lights that don't make the universe go away.
Jeremy Thurgood <firxen@gmail.com>
parents:
275
diff
changeset
|
109 INITIAL_DATA = { |
3ac2e025478f
Fishbowl and laser lights that don't make the universe go away.
Jeremy Thurgood <firxen@gmail.com>
parents:
275
diff
changeset
|
110 'has_bowl': True, |
3ac2e025478f
Fishbowl and laser lights that don't make the universe go away.
Jeremy Thurgood <firxen@gmail.com>
parents:
275
diff
changeset
|
111 } |
3ac2e025478f
Fishbowl and laser lights that don't make the universe go away.
Jeremy Thurgood <firxen@gmail.com>
parents:
275
diff
changeset
|
112 |
3ac2e025478f
Fishbowl and laser lights that don't make the universe go away.
Jeremy Thurgood <firxen@gmail.com>
parents:
275
diff
changeset
|
113 def interact_without(self): |
3ac2e025478f
Fishbowl and laser lights that don't make the universe go away.
Jeremy Thurgood <firxen@gmail.com>
parents:
275
diff
changeset
|
114 if not self.get_data('has_bowl'): |
3ac2e025478f
Fishbowl and laser lights that don't make the universe go away.
Jeremy Thurgood <firxen@gmail.com>
parents:
275
diff
changeset
|
115 return Result("What's the point of lugging around a very dead fish " |
3ac2e025478f
Fishbowl and laser lights that don't make the universe go away.
Jeremy Thurgood <firxen@gmail.com>
parents:
275
diff
changeset
|
116 "and a kilogram or so of sand?") |
3ac2e025478f
Fishbowl and laser lights that don't make the universe go away.
Jeremy Thurgood <firxen@gmail.com>
parents:
275
diff
changeset
|
117 self.set_interact('fish_no_bowl') |
3ac2e025478f
Fishbowl and laser lights that don't make the universe go away.
Jeremy Thurgood <firxen@gmail.com>
parents:
275
diff
changeset
|
118 self.set_data('has_bowl', False) |
3ac2e025478f
Fishbowl and laser lights that don't make the universe go away.
Jeremy Thurgood <firxen@gmail.com>
parents:
275
diff
changeset
|
119 self.state.add_inventory_item('fishbowl') |
3ac2e025478f
Fishbowl and laser lights that don't make the universe go away.
Jeremy Thurgood <firxen@gmail.com>
parents:
275
diff
changeset
|
120 return Result("The fishbowl is useful, but its contents aren't.") |
3ac2e025478f
Fishbowl and laser lights that don't make the universe go away.
Jeremy Thurgood <firxen@gmail.com>
parents:
275
diff
changeset
|
121 |
3ac2e025478f
Fishbowl and laser lights that don't make the universe go away.
Jeremy Thurgood <firxen@gmail.com>
parents:
275
diff
changeset
|
122 def get_description(self): |
3ac2e025478f
Fishbowl and laser lights that don't make the universe go away.
Jeremy Thurgood <firxen@gmail.com>
parents:
275
diff
changeset
|
123 return "This fishbowl looks exactly like an old science fiction space helmet." |
3ac2e025478f
Fishbowl and laser lights that don't make the universe go away.
Jeremy Thurgood <firxen@gmail.com>
parents:
275
diff
changeset
|
124 |
3ac2e025478f
Fishbowl and laser lights that don't make the universe go away.
Jeremy Thurgood <firxen@gmail.com>
parents:
275
diff
changeset
|
125 |
3ac2e025478f
Fishbowl and laser lights that don't make the universe go away.
Jeremy Thurgood <firxen@gmail.com>
parents:
275
diff
changeset
|
126 class Fishbowl(Item): |
3ac2e025478f
Fishbowl and laser lights that don't make the universe go away.
Jeremy Thurgood <firxen@gmail.com>
parents:
275
diff
changeset
|
127 "A bowl. Sans fish." |
3ac2e025478f
Fishbowl and laser lights that don't make the universe go away.
Jeremy Thurgood <firxen@gmail.com>
parents:
275
diff
changeset
|
128 |
3ac2e025478f
Fishbowl and laser lights that don't make the universe go away.
Jeremy Thurgood <firxen@gmail.com>
parents:
275
diff
changeset
|
129 INVENTORY_IMAGE = 'fishbowl.png' |
302
6d93e04036c9
CursorSprite: Default pointer-position to the centre of the cursor
Stefano Rivera <stefano@rivera.za.net>
parents:
288
diff
changeset
|
130 CURSOR = CursorSprite('fishbowl.png') |
283
3ac2e025478f
Fishbowl and laser lights that don't make the universe go away.
Jeremy Thurgood <firxen@gmail.com>
parents:
275
diff
changeset
|
131 |
3ac2e025478f
Fishbowl and laser lights that don't make the universe go away.
Jeremy Thurgood <firxen@gmail.com>
parents:
275
diff
changeset
|
132 |
288
13b6fbfb39aa
Plotting in the crew quarters.
Jeremy Thurgood <firxen@gmail.com>
parents:
287
diff
changeset
|
133 class DuctTape(Item): |
13b6fbfb39aa
Plotting in the crew quarters.
Jeremy Thurgood <firxen@gmail.com>
parents:
287
diff
changeset
|
134 "A bowl. Sans fish." |
13b6fbfb39aa
Plotting in the crew quarters.
Jeremy Thurgood <firxen@gmail.com>
parents:
287
diff
changeset
|
135 |
13b6fbfb39aa
Plotting in the crew quarters.
Jeremy Thurgood <firxen@gmail.com>
parents:
287
diff
changeset
|
136 INVENTORY_IMAGE = 'duct_tape.png' |
302
6d93e04036c9
CursorSprite: Default pointer-position to the centre of the cursor
Stefano Rivera <stefano@rivera.za.net>
parents:
288
diff
changeset
|
137 CURSOR = CursorSprite('duct_tape.png') |
288
13b6fbfb39aa
Plotting in the crew quarters.
Jeremy Thurgood <firxen@gmail.com>
parents:
287
diff
changeset
|
138 |
13b6fbfb39aa
Plotting in the crew quarters.
Jeremy Thurgood <firxen@gmail.com>
parents:
287
diff
changeset
|
139 |
233
7399b52f196f
Add a partial crew quarters (eighths?) implementation.
Jeremy Thurgood <firxen@gmail.com>
parents:
diff
changeset
|
140 class SafeDetail(Scene): |
7399b52f196f
Add a partial crew quarters (eighths?) implementation.
Jeremy Thurgood <firxen@gmail.com>
parents:
diff
changeset
|
141 |
7399b52f196f
Add a partial crew quarters (eighths?) implementation.
Jeremy Thurgood <firxen@gmail.com>
parents:
diff
changeset
|
142 FOLDER = 'crew_quarters' |
241
b1451b0b906f
Link crew quarters to map.
Simon Cross <hodgestar+bzr@gmail.com>
parents:
233
diff
changeset
|
143 BACKGROUND = None # TODO |
233
7399b52f196f
Add a partial crew quarters (eighths?) implementation.
Jeremy Thurgood <firxen@gmail.com>
parents:
diff
changeset
|
144 NAME = 'safe_detail' |
7399b52f196f
Add a partial crew quarters (eighths?) implementation.
Jeremy Thurgood <firxen@gmail.com>
parents:
diff
changeset
|
145 |
7399b52f196f
Add a partial crew quarters (eighths?) implementation.
Jeremy Thurgood <firxen@gmail.com>
parents:
diff
changeset
|
146 SIZE = (300, 300) |
7399b52f196f
Add a partial crew quarters (eighths?) implementation.
Jeremy Thurgood <firxen@gmail.com>
parents:
diff
changeset
|
147 |
7399b52f196f
Add a partial crew quarters (eighths?) implementation.
Jeremy Thurgood <firxen@gmail.com>
parents:
diff
changeset
|
148 def __init__(self, state): |
7399b52f196f
Add a partial crew quarters (eighths?) implementation.
Jeremy Thurgood <firxen@gmail.com>
parents:
diff
changeset
|
149 super(SafeDetail, self).__init__(state) |
7399b52f196f
Add a partial crew quarters (eighths?) implementation.
Jeremy Thurgood <firxen@gmail.com>
parents:
diff
changeset
|
150 |
7399b52f196f
Add a partial crew quarters (eighths?) implementation.
Jeremy Thurgood <firxen@gmail.com>
parents:
diff
changeset
|
151 |
241
b1451b0b906f
Link crew quarters to map.
Simon Cross <hodgestar+bzr@gmail.com>
parents:
233
diff
changeset
|
152 SCENES = [CrewQuarters] |
b1451b0b906f
Link crew quarters to map.
Simon Cross <hodgestar+bzr@gmail.com>
parents:
233
diff
changeset
|
153 DETAIL_VIEWS = [SafeDetail] |