|  |  | 
__builtin__.object
Path
Briandead
Goto
JumpFall
 
 
| class Briandead(Path)
 |  |  | Used to let Brian hop over the screen when he dies 
 |  |  | Method resolution order:BriandeadPath__builtin__.object
 Methods defined here:
 
 __init__(self, step=10)
 next(self)
 Methods inherited from Path:
 
 __iter__(self)
 Data and other attributes inherited from Path:
 
 __dict__ = <dictproxy object>dictionary for instance variables (if defined)
 __weakref__ = <attribute '__weakref__' of 'Path' objects>list of weak references to the object (if defined)
 |  
 
| class Goto(Path)
 |  |  | Go directly to (x, y) in n steps, raising cls(*args) on arrival 
 |  |  | Method resolution order:GotoPath__builtin__.object
 Methods defined here:
 
 __init__(self, (x, y), n, cls=<class exceptions.StopIteration>, *args)
 next(self)
 Data and other attributes defined here:
 
 x = 0
 y = 0
 Methods inherited from Path:
 
 __iter__(self)
 Data and other attributes inherited from Path:
 
 __dict__ = <dictproxy object>dictionary for instance variables (if defined)
 __weakref__ = <attribute '__weakref__' of 'Path' objects>list of weak references to the object (if defined)
 |  
 
| class JumpFall(Path)
 |  |  | Calculate jump and fall speeds 
 |  |  | Method resolution order:JumpFallPath__builtin__.object
 Methods defined here:
 
 __init__(self, grav, mass, power)Class initializer.
 Takes as arguments the gravity (approx 1-30), the mass (approx
 5-25) and the power (approx 100-500).
 __nonzero__(self)Returns True if we are (vertically) moving (that is, either jumping or falling)
 fall(self)Start falling.
 falling(self)Returns True if we are falling.
 jump(self)Set speed to initial jump speed, calculated using power and mass.
 jumping(self)Returns True if we are jumping.
 next(self)Calculate vertical speed for next frame.
 reset(self)
 Data and other attributes defined here:
 
 factor = 0.20000000000000001
 speed = 0
 Methods inherited from Path:
 
 __iter__(self)
 Data and other attributes inherited from Path:
 
 __dict__ = <dictproxy object>dictionary for instance variables (if defined)
 __weakref__ = <attribute '__weakref__' of 'Path' objects>list of weak references to the object (if defined)
 |  
 
| class Path(__builtin__.object)
 |  |  | Some creatures walk preset paths 
 |  |  | Methods defined here: 
 __init__(self)
 __iter__(self)
 next(self)
 Data and other attributes defined here:
 
 __dict__ = <dictproxy object>dictionary for instance variables (if defined)
 __weakref__ = <attribute '__weakref__' of 'Path' objects>list of weak references to the object (if defined)
 |  |