Logo Search packages:      
Sourcecode: magicor version File versions  Download package

magicor::resources::Resources Class Reference

List of all members.

Detailed Description

Resource managing class. Caches all resources found in the
sticky attribute. (second, optional init argument)
Ommiting or passing None to the sticky argument means all are sticky.

Definition at line 21 of file resources.py.

Public Member Functions

def __getitem__
def __init__
def __str__
def addLevelResources
def addResources
def clear
def clearLevelResources
def findAlternative
def get
def getJoystick
def getTile
def has_key
def loadData
def loadImage
def loadLevelData
def loadSound
def playMusic
def playSound
def setDefaultTile
def stopMusic

Public Attributes


Static Public Attributes

tuple SUPPORTED_IMAGES = ("png", "jpg", "gif")
tuple SUPPORTED_MUSIC = ("ogg", "mp3", "mod", "xm")
tuple SUPPORTED_SOUNDS = ("wav",)

Private Member Functions

def _addResources
def _loadImage
def _loadLevelData
def _loadMusic
def _loadSomething
def _loadSound

Private Attributes


The documentation for this class was generated from the following file:

Generated by  Doxygen 1.6.0   Back to index