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

Class Variable Summary
    Inherited from Game
str splash_filename = 'pygsear_logo.png'

Method Details

mainloop(self)

The main twisted game loop.
Overrides:
pygsear.Game.Game.mainloop

Generated by Epydoc 2.0 on Sat Dec 9 14:11:20 2006 http://epydoc.sf.net