Mercurial > pyntnclick
comparison pyntnclick/tests/mad_clicker.py @ 792:bdaffaa8b6bf pyntnclick
Loading and saving! (Plus a bunch of other stuff to make it possible.)
author | Jeremy Thurgood <firxen@gmail.com> |
---|---|
date | Sun, 27 Jan 2013 12:43:28 +0200 |
parents | 386475464202 |
children |
comparison
equal
deleted
inserted
replaced
791:56ec01e51f3d | 792:bdaffaa8b6bf |
---|---|
84 self.clear_event_queue() | 84 self.clear_event_queue() |
85 | 85 |
86 def do_mad_clicker(self): | 86 def do_mad_clicker(self): |
87 """Implement frantic clicking behaviour""" | 87 """Implement frantic clicking behaviour""" |
88 for scene in self.state.scenes.values(): | 88 for scene in self.state.scenes.values(): |
89 self.state.current_scene = scene | 89 self.state.data.set_current_scene(scene.name) |
90 for thing in scene.things.values(): | 90 for thing in scene.things.values(): |
91 for interact_name in thing.interacts: | 91 for interact_name in thing.interacts: |
92 thing._set_interact(interact_name) | 92 thing._set_interact(interact_name) |
93 self.do_thing(thing, None) | 93 self.do_thing(thing, None) |
94 for item in self.state.items.values(): | 94 for item in self.state.items.values(): |