gummworld2.tiledmap (version $Id: tiledmap.py 407 2013-08-12 15:11:30Z stabbingfinger@gmail.com $)
index
c:\cygwin64\home\bw\dev\python\dist\gummworld2\gamelib\gummworld2\tiledmap.py

tiledmap.py - Tiled Map module for Gummworld2.
 
See basicmap module for the basic docs.
 
These classes add support for Tiled maps loaded by tiletmxloader.

 
Modules
       
pygame
gummworld2.spatialhash
sys

 
Classes
       
__builtin__.object
TiledLayer
gummworld2.basicmap.BasicMap(__builtin__.object)
TiledMap

 
class TiledLayer(__builtin__.object)
     Methods defined here:
__init__(self, parent_map, layer, layeri)
__iter__(self)
__len__(self)
add(self, tile)
blit_layer(self, src_layer)
collapse(self, collapse=(1, 1))
get_objects_in_rect(self, rect)

Data descriptors defined here:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

 
class TiledMap(gummworld2.basicmap.BasicMap)
    
Method resolution order:
TiledMap
gummworld2.basicmap.BasicMap
__builtin__.object

Methods defined here:
__init__(self, map_file_name, collapse=(1, 1), collapse_layers=None, load_invisible=True)
Construct a TiledMap object.
 
the map_file_name argument is the path and filename of the TMX map file.
 
The collapse argument is the number of tiles on the X and Y axes to
join.
 
The collapse_layers argument is a sequence of indices indicating to
which TiledMap.layers the collapse algorithm should be applied. See the
tiledmap.collapse_map.
 
If you don't want every layer collapsed, or different collapse values
per layer, use the default of (1,1) and pick individual tile layers to
collapse via TileMap.collapse(), collapse_map(), or collapse_layer().
get_layer_by_name(self, layer_name)
get_object_groups(self)
get_tile_layers(self)

Methods inherited from gummworld2.basicmap.BasicMap:
collapse(self, collapse=(1, 1), which_layers=None)
Collapse which_layers by joining num_tiles into one tile. The
original layers are replaced by new layers.
 
The collapse argument is the number of tiles on the X and Y axes to
join.
 
The collapse_layers argument is a sequence of indices indicating to
which TiledMap.layers the collapse algorithm should be applied. See the
tiledmap.collapse_map.
get_layer(self, layer_index)
get_layers(self, which_layers=None)
merge_layers(self, which_layers=None)

Data descriptors inherited from gummworld2.basicmap.BasicMap:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

 
Data
        __all__ = ['TiledMap', 'TiledLayer']
__author__ = 'Gummbum, (c) 2011-2014'
__version__ = '$Id: tiledmap.py 407 2013-08-12 15:11:30Z stabbingfinger@gmail.com $'

 
Author
        Gummbum, (c) 2011-2014