| Trees | Indices | Help |
|---|
|
|
MapController is the command and control center for the program. It manages communication between the other modules and controls the tilemap.
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
| graphics.RGBA |
|
||
|
|||
|
|||
|
|||
|
|||
|
|||
| bool |
|
||
| str |
|
||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
| int |
|
||
| bool |
|
||
|
|||
|
|||
| string |
|
||
|
|||
|
|||
| (cairo.ImageSurface, int) |
|
||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
| [(string, bool)] |
|
||
|
|||
| cairo.ImageSurface[] |
|
||
| bool |
|
||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|
|
|
|
Opens a file
|
Creates a new map of the given width, height, and tile dimentions
|
|
|
|
|
Brief Description
|
Opens an image file and adds it to the list of open images
|
Draws the shapes in the map to the given context
|
|
|
|
Sets the tile selection. x1 must be less than x2. y1 must be less than y2.
|
Adds a tile to the currently selected layer.
@type x: int
@param x: x-coordinate of tile
@type y: int
@param y: y-coordinate of tile
@type z: int
@param z: layer of the tile
@type ix: int
@param ix: x-coordinate of the image for the tile
@type iy: int
@param iy: y-coordinate of the image for the tile
@type ii: int
@param ii: image index
@rtype: (int, int, int)
@return: The x-coordinate, y-coordinate, and index of the image of the
tile that used to be at the coordinates (x, y, z), or None if there
was no tile there before
|
Removes a tile from the selected layer
@type x: int
@param x: the x-coordinate of the tile to remove
@type y: int
@param y: the y-coordinate of the tile to remove
@rtype: (int, int, int)
@return: The x-coordinate, y-coordinate, and index of the image of the
tile that used to be at the coordinates (x, y, z), or None if there
was no tile there before
|
|
|
Draws layers from tile data
|
|
Notify the controller (and all of its listeners) of a modification to the map.
|
| Trees | Indices | Help |
|---|
| Generated by Epydoc 3.0.1 on Tue Oct 6 15:18:45 2009 | http://epydoc.sourceforge.net |