Package spyre :: Module spyre :: Class PedestrianInterface
[frames | no frames]

Type PedestrianInterface

    object --+            
             |            
     Interface --+        
                 |        
BareBonesInterface --+    
                     |    
        BasicInterface --+
                         |
                        PedestrianInterface

Known Subclasses:
PedestrianInterfaceY

A pedestrian interface moves the camera on a roughly horizontal plane. (constant z). The cursor keys move the viewpoint directly, and the camera indirectly.
Method Summary
  __init__(self, engine)
Initialize new instance.
  backward(self, empty)
Move camera backward.
  forward(self, empty)
Move camera forward.
  left(self, empty)
Rotate camera left.
  moveCam(self, inc)
  right(self, empty)
Rotate camera right.
    Inherited from BasicInterface
  step(self, empty)
Advance engine one step only.
  toggle(self, empty)
Toggle engine progress on/off.
  zoomIn(self, empty)
Zoom in on principle camera.
  zoomOut(self, empty)
Zoom out on principle camera.
    Inherited from BareBonesInterface
  entryChange(self, entered)
The mouse moved into or out of the window.
  event(self, ev)
Handle all interface events (from Pygame events)
  mouseDrag(self, button, loc)
The mouse was dragged to the specified location while the given mouse button was held down.
  mouseMove(self, loc)
The mouse moved with no buttons pressed.
  quit(self, empty)
  reset(self, empty)
Resets all cameras.
  sizeDown(self, empty)
Decrease window size.
  sizeUp(self, empty)
Increase window size.
  visibilityChange(self, visible)
The window had a visibility chnage.
    Inherited from Interface
  keyPressed(self, key)
A key was pressed.
  mouseDown(self, button, loc)
The specified mouse button was clicked while the mouse was at the given location.
  mouseUp(self, button, loc)
The specified mouse button was released while the mouse was at the given location.
  setup(self)
Setup interface after components all exist.
    Inherited from object
  __delattr__(...)
x.__delattr__('name') <==> del x.name
  __getattribute__(...)
x.__getattribute__('name') <==> x.name
  __hash__(x)
x.__hash__() <==> hash(x)
  __new__(T, S, ...)
T.__new__(S, ...) -> a new object with type S, a subtype of T
  __reduce__(...)
helper for pickle
  __reduce_ex__(...)
helper for pickle
  __repr__(x)
x.__repr__() <==> repr(x)
  __setattr__(...)
x.__setattr__('name', value) <==> x.name = value
  __str__(x)
x.__str__() <==> str(x)

Class Variable Summary
tuple defaultCamera: preferred camera class and default __init__ params
float increment = 0.050000000000000003                                                  
float rotate_inc: how far to rotate camera per keystroke.

Method Details

__init__(self, engine)
(Constructor)

Initialize new instance.
Parameters:
engine - the engine
Overrides:
spyre.spyre.BasicInterface.__init__ (inherited documentation)

backward(self, empty=None)

Move camera backward.

forward(self, empty=None)

Move camera forward.

left(self, empty=None)

Rotate camera left.

right(self, empty=None)

Rotate camera right.

Class Variable Details

defaultCamera

preferred camera class and default __init__ params
Type:
tuple
Value:
(<class 'spyre.spyre.RovingCameraOrtho'>, ())                          

increment

Type:
float
Value:
0.050000000000000003                                                  

rotate_inc

how far to rotate camera per keystroke.
Type:
float
Value:
0.02                                                                  

Generated by Epydoc 2.1 on Sat Jan 07 17:58:15 2006 http://epydoc.sf.net