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

Class Scene

source code

                 object --+            
                          |            
pygame.sprite.AbstractGroup --+        
                              |        
            pygame.sprite.Group --+    
                                  |    
        pygame.sprite.RenderUpdates --+
                                      |
                                     Scene

Instance Methods [hide private]
 
__init__(self, sprites)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
calcPosition(self) source code
 
calcSize(self) source code
 
addObject(self, newDrawableObject) source code
 
addObjects(self, newDrawableObjects) source code
 
setRelativePositions(self) source code
 
removeObject(self, sprite) source code
 
getObject(self, index) source code
 
getListSize(self) source code
 
getList(self) source code
 
moveObjects(self) source code
 
moveScene(self, xNudge=0, yNudge=0) source code
 
setPosition(self, newXPos=None, newYPos=None) source code
 
getXPos(self) source code
 
getYPos(self) source code
 
getXSize(self) source code
 
getYSize(self) source code
 
scaleObjects(self, newXSize=None, newYSize=None) source code
 
scaleScene(self, newXSize=None, newYSize=None) source code
 
update(self, t)
call update for all member sprites
source code
 
draw(self, surface)
draw all sprites onto the surface
source code
 
drawEntireScene(self, surface) source code
 
nextFrame(self) source code

Inherited from pygame.sprite.AbstractGroup: __contains__, __iter__, __len__, __nonzero__, __repr__, add, add_internal, clear, copy, empty, has, has_internal, remove, remove_internal, sprites

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

Class Variables [hide private]

Inherited from pygame.sprite.AbstractGroup (private): _spritegroup

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, sprites)
(Constructor)

source code 

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

Overrides: object.__init__
(inherited documentation)

update(self, t)

source code 

call update for all member sprites

calls the update method for all sprites in the group. Passes all arguments on to the Sprite update function.

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

draw(self, surface)

source code 

draw all sprites onto the surface

Draws all the sprites onto the given surface.

Overrides: pygame.sprite.AbstractGroup.draw
(inherited documentation)