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

Public Member Functions

 __init__ (self, mapImageFile, tileSet, tileWidth, tileHeight)
 readMap (self)
 printProgress (self, percentage)
 write (self, fileName)

Public Attributes

 TileWidth = tileWidth
 TileHeight = tileHeight
 TileSet = tileSet
list List = []
 Width
 Height = MapImageWidth / self.TileWidth, MapImageHeight / self.TileHeight

Detailed Description

 This class represents a tile map.

Constructor & Destructor Documentation

◆ __init__()

MapWriter.TileMap.__init__ ( self,
mapImageFile,
tileSet,
tileWidth,
tileHeight )

Member Function Documentation

◆ printProgress()

MapWriter.TileMap.printProgress ( self,
percentage )
 This function prints the percentage on the current row after erasing what is already there.

◆ readMap()

MapWriter.TileMap.readMap ( self)
 This function takes the map image, and obtains a list self.List, where
    an entry equals i if self.TileSet.List[i-1] is the corresponding picture on the map
    image. If a matching tile is not found, i is set to 0.

◆ write()

MapWriter.TileMap.write ( self,
fileName )

Member Data Documentation

◆ Height

MapWriter.TileMap.Height = MapImageWidth / self.TileWidth, MapImageHeight / self.TileHeight

◆ List

list MapWriter.TileMap.List = []

◆ TileHeight

MapWriter.TileMap.TileHeight = tileHeight

◆ TileSet

MapWriter.TileMap.TileSet = tileSet

◆ TileWidth

MapWriter.TileMap.TileWidth = tileWidth

◆ Width

MapWriter.TileMap.Width

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