Module Data :: Class Data
[hide private]
[frames] | no frames]

Class Data

source code

object --+
         |
        Data

A collection of globally used data resources such as fonts and sound effects.

Instance Methods [hide private]
 
__init__(self, resource, svg)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
loadSoundEffect(self, target, name, fileName) source code
 
loadScrewUpSounds(self) source code
 
loadSvgDrawing(self, target, name, fileName, textureSize='')
Load an SVG drawing synchronously.
source code
 
customizeFont(self, font) source code
 
getSelectSound(self)
Returns: A randomly chosen selection sound.
source code
 
getScrewUpSound(self)
Returns: A randomly chosen screw-up sound.
source code
 
essentialResourcesLoaded(self)
return: True if essential resources such as the font have been loaded.
source code
 
resourcesLoaded(self)
return: True if all the resources have been loaded.
source code

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Properties [hide private]
  selectSound
  screwUpSound

Inherited from object: __class__

Method Details [hide private]

__init__(self, resource, svg)
(Constructor)

source code 
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
Overrides: object.__init__
(inherited documentation)

loadSvgDrawing(self, target, name, fileName, textureSize='')

source code 

Load an SVG drawing synchronously.

@param target:      An object that will own the drawing
@param name:        The name of the attribute the drawing will be assigned to
@param fileName:    The name of the file in the data directory
@param textureSize  Either None or (x, y), in which case the file will
                    be rendered to an x by y texture
@return:            L{SvgDrawing} instance

getSelectSound(self)

source code 
Returns:
A randomly chosen selection sound.

getScrewUpSound(self)

source code 
Returns:
A randomly chosen screw-up sound.

Property Details [hide private]

selectSound

Get Method:
Data.Data.getSelectSound(self) - Returns: A randomly chosen selection sound.
Set Method:
''
Delete Method:
''

screwUpSound

Get Method:
Data.Data.getScrewUpSound(self) - Returns: A randomly chosen screw-up sound.
Set Method:
''
Delete Method:
''