pyj2d :: sprite :: OrderedUpdates :: Class OrderedUpdates

Class OrderedUpdates

object --+        
         |        
     Group --+    
             |    
 RenderUpdates --+
                 |
                OrderedUpdates

pyj2d.sprite.OrderedUpdates

Instance Methods
 
__init__(self, *sprites)
Return OrderedUpdates, a RenderUpdates subclass that maintains order of sprites. Can optionally be called with sprite(s) to add.
 
__iter__(self)
 
sprites(self)
Return ordered list of sprites in the group.
 
copy(self)
Return copy of group.
 
add(self, *sprites)
Add sprite(s) to group, maintaining order of addition.
 
remove(self, *sprites)
Remove sprite(s) from group.
 
empty(self)
Empty group.

Inherited from RenderUpdates: draw

Inherited from Group: __contains__, __len__, __repr__, __str__, clear, has, update

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __subclasshook__

Properties

Inherited from object: __class__

Method Details

__init__(self, *sprites)
(Constructor)

 
Return OrderedUpdates, a RenderUpdates subclass that maintains order of sprites. Can optionally be called with sprite(s) to add.
Overrides: object.__init__

__iter__(self)

 
Overrides: Group.__iter__

sprites(self)

 
Return ordered list of sprites in the group.
Overrides: Group.sprites

copy(self)

 
Return copy of group.
Overrides: Group.copy

add(self, *sprites)

 
Add sprite(s) to group, maintaining order of addition.
Overrides: Group.add

remove(self, *sprites)

 
Remove sprite(s) from group.
Overrides: Group.remove

empty(self)

 
Empty group.
Overrides: Group.empty