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

Class DrawableObject

source code

          object --+    
                   |    
pygame.sprite.Sprite --+
                       |
                      DrawableObject
Known Subclasses:

Instance Methods [hide private]
 
__init__(self, images, textfileName, transparent=False, x=0, y=0)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
repopulateImages(self, newImages) source code
 
addImages(self, images) source code
 
goToAnim(self, animName) source code
 
goToFrame(self, frame) source code
 
nudge(self, x, y) source code
 
scale(self, x=None, y=None) source code
 
fill(self, color) source code
 
getXSize(self) source code
 
getYSize(self) source code
 
rotate(self, angle) source code
 
getRotation(self) source code
 
setPosition(self, x=None, y=None) source code
 
getXPos(self) source code
 
getYPos(self) source code
 
calcColorKey(self, x=0, y=0) source code
 
makeTransparent(self, bool=True) source code
 
setColorKey(self, aColor) source code
 
update(self, t=None)
method to control sprite behavior Sprite.update(*args):
source code
 
nextFrame(self) source code
 
nextCurrentAnimFrame(self) source code

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, transparent=False, x=0, y=0)
(Constructor)

source code 

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

Overrides: object.__init__
(inherited documentation)

update(self, t=None)

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)