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

## Class GameLooper

Known Subclasses:
  `Game`, `GameConfiguration`

Abstract game control class

Method Summary
| `__init__(self)`
| ``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)`
| `unpause(self)`

Method Details

### addEventGroup(self, event=()) return a `Event.EventGroup` At this point, this is just a convenience to get a new Group, but it could at some point in the future keep track of all groups in the Game.

### addGroup(self, sprites=[], layer=None) return a `SpriteGroup` At this point, this is just a convenience to get a new Group, but it could at some point in the future keep track of all groups in the Game.

### addLayer(self, size=None) return a `Drawable.Layer` and keep track. Each `Game` has a list (`.layers`) of all the layers in the game.

### checkCollisions(self) Defaults to no collision checks. Game.mainloop() will call this function once each time through the loop. Subclasses should override to check collisions and perform the needed actions.

Generated by Epydoc 2.0 on Fri Nov 11 14:26:38 2005 | http://epydoc.sf.net