pyzzle :: Switch :: Switch :: Class Switch
[hide private]
[frames] | no frames]

Class Switch

source code

A collection of slides and hotspots that together represent an object within the game world that has persistant on/off modes (switch, lever, button, etc.)

Warning: The Switch class is still very early in design, and I reserve the right to radically change as I see fit. You have been warned.

Instance Methods [hide private]
__init__(self, onslide, offslide, hotspots, on=False, onSwitch=lambda self: Switch.switch(self), id=None) source code
switch(self) source code
Static Methods [hide private]
_load(cells) source code
Class Variables [hide private]
  __metaclass__ = Table