Package pygsear :: Module Game :: Class TwistedGame
[show private | hide private]
[frames | no frames]

Class TwistedGame

GameLooper --+    
             |    
          Game --+
                 |
                TwistedGame


Alternate central game object using Twisted event loop
Method Summary
  __init__(self, window, reactor, delay)
  addEventGroup(self, event)
return a Event.EventGroup (inherited from GameLooper)
  addGroup(self, sprites, layer)
return a SpriteGroup (inherited from GameLooper)
  addLayer(self, size)
return a Drawable.Layerand keep track. (inherited from GameLooper)
  beep(self)
(inherited from GameLooper)
  checkCollisions(self)
Defaults to no collision checks. (inherited from GameLooper)
  checkEvents(self)
(inherited from GameLooper)
  checkGameOver(self)
  configure(self, pygame_event, **kwargs)
Bring up the configuration screen (inherited from Game)
  freeMouse(self, free)
Stop capturing all input (inherited from Game)
  gameOver(self)
Show a Game Over message. (inherited from Game)
  grabMouse(self, grab)
Capture all mouse and keyboard input (inherited from Game)
  hideMouse(self, hide)
Hide the mouse cursor (inherited from Game)
  initialize(self)
Further initialization (inherited from Game)
  loop(self)
(inherited from GameLooper)
  mainloop(self)
The main twisted game loop.
  pause(self)
(inherited from GameLooper)
  playAgain(self)
Ask if player wants to play again. (inherited from Game)
  resize_reset(self)
Fix up the game after the screen has been resized (inherited from Game)
  restart(self)
(inherited from Game)
  set_background(self, filename, img, tilename, tile, color)
Set the background. (inherited from Game)
  set_title(self, title)
(inherited from Game)
  showMouse(self, show)
Show the mouse cursor (inherited from Game)
  splash_screen(self)
Show the splash screen (inherited from Game)
  splash_screen_poof(self)
Erase the splash screen (inherited from Game)
  step(self)
Take one trip through the mainloop (inherited from Game)
  unpause(self)
(inherited from Game)
  update(self, areas)
update the display (inherited from Game)
  waitFor(self, key, timeout)
Pause the game, waiting for a keystroke. (inherited from Game)

Method Details

mainloop(self)

The main twisted game loop.

Generated by Epydoc 1.1 on Sun Jan 25 19:10:10 2004 http://epydoc.sf.net