Fission FSN
Loading...
Searching...
No Matches
MapWriter.Tileset Class Reference

Public Member Functions

 __init__ (self, tileImageFile, tileWidth, tileHeight)
 readTiles (self)
 findTile (self, tileImage)

Public Attributes

 TileWidth = tileWidth
 TileHeight = tileHeight
 Filename = tileImageFile
 Name = os.path.splitext(tileImageFile)[0]
list List = []
dict TileDict = {}

Detailed Description

 This class represents a set of tiles.

Constructor & Destructor Documentation

◆ __init__()

MapWriter.Tileset.__init__ ( self,
tileImageFile,
tileWidth,
tileHeight )

Member Function Documentation

◆ findTile()

MapWriter.Tileset.findTile ( self,
tileImage )
 This method returns the tile index for the given tile image if it is part of this tileset,
    and returns 0 if the tile could not be found. Constant complexity due to dictionary lookup.

◆ readTiles()

MapWriter.Tileset.readTiles ( self)
 This method reads the tiles from the tileset and also fills up the tile dictionary.

Member Data Documentation

◆ Filename

MapWriter.Tileset.Filename = tileImageFile

◆ List

list MapWriter.Tileset.List = []

◆ Name

MapWriter.Tileset.Name = os.path.splitext(tileImageFile)[0]

◆ TileDict

dict MapWriter.Tileset.TileDict = {}

◆ TileHeight

MapWriter.Tileset.TileHeight = tileHeight

◆ TileWidth

MapWriter.Tileset.TileWidth = tileWidth

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