pyj2d :: sprite :: Sprite :: Class Sprite

Class Sprite

object --+
         |
        Sprite

pyj2d.sprite.Sprite

Instance Methods
 
__init__(self, *groups)
Return Sprite. Optional argument inludes group(s) to place sprite. Sprite require image and rect attributes for some functionality.
 
__str__(self)
str(x)
 
__repr__(self)
repr(x)
 
add(self, *groups)
Add sprite to group(s).
 
remove(self, *groups)
Remove sprite from group(s).
 
kill(self)
Remove sprite from all member groups.
 
alive(self)
Return True if sprite is member of any groups.
 
groups(self)
Return list of groups that sprite is a member.
 
update(self, *args)
Method to place sprite update statements that is called by group update.

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

Properties

Inherited from object: __class__

Method Details

__init__(self, *groups)
(Constructor)

 
Return Sprite. Optional argument inludes group(s) to place sprite. Sprite require image and rect attributes for some functionality.
Overrides: object.__init__

__str__(self)
(Informal representation operator)

 
str(x)
Overrides: object.__str__
(inherited documentation)

__repr__(self)
(Representation operator)

 
repr(x)
Overrides: object.__repr__
(inherited documentation)