| |
- __builtin__.object
-
- TiledLayer
- gummworld2.basicmap.BasicMap(__builtin__.object)
-
- TiledMap
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)
| |