Package rats :: Module render :: Class Renderer
[hide private]
[frames] | no frames]

Class Renderer

source code

object --+
         |
        Renderer

Integrates a pygame game and twisted. See http://twistedmatrix.com/pipermail/twisted-python/2002-October/001884.html

Instance Methods [hide private]
 
__init__(self, game, verbose=False)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
_on_events_error(self, reason)
ErrBack for the self._looping_events_check LoopingCall.
source code
 
_setup_events_looping_call(self)
Sets up the self._looping_events_check LoopingCall.
source code
 
check_for_events(self)
Check for pygame events and warn the game.
source code
 
update(self)
Renders one frame sequenced using the Twisted events loop.
source code
 
_stop(self)
Stops the game and quits
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, game, verbose=False)
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: object.__init__
(inherited documentation)

check_for_events(self)

source code 

Check for pygame events and warn the game. :param events: got them using pygame.event.get()