comparison gamelib/scenes/crew_quarters.py @ 287:2a11709cb427

Hook up a few things in the crew quarters
author Neil Muller <neil@dip.sun.ac.za>
date Fri, 27 Aug 2010 23:50:53 +0200
parents 3ac2e025478f
children 13b6fbfb39aa
comparison
equal deleted inserted replaced
286:776bcf563ea0 287:2a11709cb427
18 } 18 }
19 19
20 def __init__(self, state): 20 def __init__(self, state):
21 super(CrewQuarters, self).__init__(state) 21 super(CrewQuarters, self).__init__(state)
22 self.add_thing(ToMap()) 22 self.add_thing(ToMap())
23 self.add_thing(Safe())
23 self.add_thing(FishbowlThing()) 24 self.add_thing(FishbowlThing())
24 self.add_item(Fishbowl('fishbowl')) 25 self.add_item(Fishbowl('fishbowl'))
26 self.add_thing(GenericDescThing('crew.plant', 1,
27 "The plant is doing surprisingly well for centuries of neglect",
28 ((624, 215, 61, 108),)))
29 self.add_thing(GenericDescThing('crew.cat', 2,
30 "A picture of a cat labelled 'Clementine'",
31 ((722, 382, 66, 72),)))
25 32
26 def enter(self): 33 def enter(self):
27 return Result("The crew were a messy bunch. Or maybe that's just the intervening centuries.") 34 return Result("The crew were a messy bunch. Or maybe that's just the intervening centuries.")
28 35
29 36
30 class ToMap(Door): 37 class ToMap(Door):
31 38
32 SCENE = "crew" 39 SCENE = "crew"
33 40
34 INTERACTS = { 41 INTERACTS = {
35 "door": InteractText(100, 200, "To Map"), 42 "door": InteractNoImage(233, 252, 125, 181),
36 } 43 }
37 44
38 INITIAL = "door" 45 INITIAL = "door"
39 46
40 47
42 "A safe, for keeping things safe." 49 "A safe, for keeping things safe."
43 50
44 NAME = 'crew.safe' 51 NAME = 'crew.safe'
45 52
46 INTERACTS = { 53 INTERACTS = {
47 'safe': InteractText(200, 200, 'Safe'), 54 'safe': InteractNoImage(447, 238, 72, 73),
48 } 55 }
49 56
50 INITIAL = 'safe' 57 INITIAL = 'safe'
51 58
52 INITIAL_DATA = { 59 INITIAL_DATA = {