Engine.Engine

Module Engine :: Class Engine |
[show private | hide private]
[frames | no frames]

## Class Engine

Known Subclasses:
  `GameEngine`

Main task scheduler.

Method Summary
| `__init__(self, fps, tickrate)`
| ``addTask`(self, task, synchronized)` Add a task to the engine.
| ``pauseTask`(self, task)` Pause a task.
| `quit(self)`
| ``removeTask`(self, task)` Remove a task from the engine.
| ``resumeTask`(self, task)` Resume a paused task.
| ``run`(self)` Run one cycle of the task scheduler engine.
| `_getTaskQueues(self, task)`
| `_runTask(self, task, ticks)`

Method Details

### addTask(self, task, synchronized=True) Add a task to the engine. Parameters: `task` - `Task` to add `synchronized` - If True, the task will be run with small timesteps tied to the engine clock. Otherwise the task will be run once per frame. (type=bool)

### pauseTask(self, task) Pause a task. Parameters: `task` - `Task` to pause

### removeTask(self, task) Remove a task from the engine. Parameters: `task` - `Task` to remove

### resumeTask(self, task) Resume a paused task. Parameters: `task` - `Task` to resume

### run(self) Run one cycle of the task scheduler engine.

Generated by Epydoc 2.1 on Thu Nov 23 23:40:42 2006 | http://epydoc.sf.net