Package fortuneengine :: Module DynamicDrawableObject :: Class DynamicDrawableObject
[hide private]
[frames] | no frames]

Class DynamicDrawableObject

source code

               object --+        
                        |        
     pygame.sprite.Sprite --+    
                            |    
DrawableObject.DrawableObject --+
                                |
                   object --+   |
                            |   |
         pygame.sprite.Sprite --+
                                |
                               DynamicDrawableObject

Instance Methods [hide private]
 
__init__(self, images, textfileName, fps=10, x=0, y=0, xVelocity=0, yVelocity=0)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
addImages(self, images) source code
 
setSpeed(self, xVelocity=None, yVelocity=None) source code
 
getXSpeed(self) source code
 
getYSpeed(self) source code
 
move(self) source code
 
update(self, t)
method to control sprite behavior Sprite.update(*args):
source code
 
nextFrame(self) source code
 
nextCurrentAnimFrame(self) source code

Inherited from DrawableObject.DrawableObject: calcColorKey, fill, getRotation, getXPos, getXSize, getYPos, getYSize, goToAnim, goToFrame, makeTransparent, nudge, repopulateImages, rotate, scale, setColorKey, setPosition

Inherited from pygame.sprite.Sprite: __repr__, add, add_internal, alive, groups, kill, remove, remove_internal

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

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, images, textfileName, fps=10, x=0, y=0, xVelocity=0, yVelocity=0)
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: object.__init__
(inherited documentation)

addImages(self, images)

source code 
Overrides: DrawableObject.DrawableObject.addImages

update(self, t)

source code 

method to control sprite behavior Sprite.update(*args):

The default implementation of this method does nothing; it's just a convenient "hook" that you can override. This method is called by Group.update() with whatever arguments you give it.

There is no need to use this method if not using the convenience method by the same name in the Group class.

Overrides: pygame.sprite.Sprite.update
(inherited documentation)

nextFrame(self)

source code 
Overrides: DrawableObject.DrawableObject.nextFrame

nextCurrentAnimFrame(self)

source code 
Overrides: DrawableObject.DrawableObject.nextCurrentAnimFrame