Home | Trees | Indices | Help |
|
---|
|
object --+ | DisplayList
Sprite-list manager.
DisplayList collects and manages a set of Sprites so you can worry about other things.
Each sprite is assigned a priority or stacking order. Low numbers on top, high numbers on the bottom. When you ask the display list to update, the list is sorted and blitted bottom to top (the order of two sprites with the same priority is undefined).
The other useful thing is that the UserDisplay class (see userdpy.py) has a display() method that takes a display list and draws simplified versions of each sprite on the user display so the user can see (approximately) what the monkeys is seeing.
NB Sprites are only drawn when they are on (see on() and off() methods for Sprites).
Instance Methods | |||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from |
Properties | |
Inherited from |
Method Details |
|
Delete method. Called when the display list is deleted. Goes through and tries to delete all the member sprites. The idea is that if you delete the display list at the each of each trial, this function will clean up all your sprites automatically. |
Add sprite to display list. Each time self.update is called, the timer will be checked and used to decide whether to turn this sprite on or off.
|
Delete single or multiple sprites from display list. NB Same as clear() and delete_all() methods if called with no arguments.
|
Delete all sprites from the display list. Same as delete_all(). |
Delete all sprites from display list. Same as clear(). |
Set up an action to be called in the future. After 'time' ms, the action function will be called with three arguments: requested elapsed time, actual elapsed time and the user-specfied args.
|
Draw sprites on framebuffer
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Sat Nov 17 00:22:04 2018 | http://epydoc.sourceforge.net |