DataServer
index
/home/gerrit/cvs/brian/DataServer.py

# $Id: DataServer.html,v 1.10 2003/06/24 21:18:40 gerrit Exp $

 
Modules
       
fnmatch
level
os
pygame
sys
util

 
Classes
       
__builtin__.object
DataServer
ImageServer
LevelServer
MusicServer
SoundServer
Image

 
class DataServer(__builtin__.object)
     Methods defined here:
__init__(self, prefix='')

Data and other attributes defined here:
__dict__ = <dictproxy object>
dictionary for instance variables (if defined)
__weakref__ = <attribute '__weakref__' of 'DataServer' objects>
list of weak references to the object (if defined)
datadir = '/usr/local/bin/data'
scriptdir = '/usr/local/bin'

 
class Image(__builtin__.object)
    Limited container for grouping all images of a sprite
 
  Methods defined here:
__getitem__(self, key)
__init__(self)
__nonzero__(self)
__repr__(self)

Properties defined here:
data
Dictionairy for internal use, don't write to it.
get = get(self)

Data and other attributes defined here:
__dict__ = <dictproxy object>
dictionary for instance variables (if defined)
__weakref__ = <attribute '__weakref__' of 'Image' objects>
list of weak references to the object (if defined)
validkeys = ('NW', 'N', 'NE', 'W', 'C', 'E', 'SW', 'S', 'SE')

 
class ImageServer(DataServer)
    
Method resolution order:
ImageServer
DataServer
__builtin__.object

Methods defined here:
__getattr__(self, im)
__init__(self, *args)
convert(self)
get(self, im)

Data and other attributes defined here:
dataext = 'png'
datasubdir = 'image'

Data and other attributes inherited from DataServer:
__dict__ = <dictproxy object>
dictionary for instance variables (if defined)
__weakref__ = <attribute '__weakref__' of 'DataServer' objects>
list of weak references to the object (if defined)
datadir = '/usr/local/bin/data'
scriptdir = '/usr/local/bin'

 
class LevelServer(DataServer)
    
Method resolution order:
LevelServer
DataServer
__builtin__.object

Methods defined here:
__getattr__(self, levname)
save(self, level, levname=None)

Data and other attributes defined here:
dataext = 'blf'
datasubdir = 'levels'

Methods inherited from DataServer:
__init__(self, prefix='')

Data and other attributes inherited from DataServer:
__dict__ = <dictproxy object>
dictionary for instance variables (if defined)
__weakref__ = <attribute '__weakref__' of 'DataServer' objects>
list of weak references to the object (if defined)
datadir = '/usr/local/bin/data'
scriptdir = '/usr/local/bin'

 
class MusicServer(DataServer)
    
Method resolution order:
MusicServer
DataServer
__builtin__.object

Methods defined here:
__init__(self, *args)
fadeout(self)
isplaying(self)
play(self)

Data and other attributes defined here:
dataext = 'mid'
datasubdir = 'music'

Data and other attributes inherited from DataServer:
__dict__ = <dictproxy object>
dictionary for instance variables (if defined)
__weakref__ = <attribute '__weakref__' of 'DataServer' objects>
list of weak references to the object (if defined)
datadir = '/usr/local/bin/data'
scriptdir = '/usr/local/bin'

 
class SoundServer(DataServer)
    
Method resolution order:
SoundServer
DataServer
__builtin__.object

Methods defined here:
__init__(self, *args)
play(self, s)

Data and other attributes defined here:
dataext = 'wav'
datasubdir = 'sound'

Data and other attributes inherited from DataServer:
__dict__ = <dictproxy object>
dictionary for instance variables (if defined)
__weakref__ = <attribute '__weakref__' of 'DataServer' objects>
list of weak references to the object (if defined)
datadir = '/usr/local/bin/data'
scriptdir = '/usr/local/bin'

 
Functions
       
load_data(im=True, so=True, mu=True, le=True)

 
Data
        __all__ = ['DataServer', 'SoundServer', 'MusicServer', 'ImageServer']
image = None
level = None
music = None
sep = '_'
sound = None