DOCUMENTATION FOR TileLib V.0.3



Table Of Contents:

Structures Used -    A list of all the different map layer structures
       BaseStruct -    Base tile layer structure
       FringeStruct - Fringe tile layer structure
       ObjectStruct - Object tile layer structure
       RoofStruct -    Roof tile layer structure

Constructors - Ways to initialze a TL_Class object
       TL_Class(char *mapname) - Creates a new TL_Class object and loads a map
       TL_Class()                          - Creates an emptry TL_Class object, a map needs to be loaded

World Manipulation - A list of functions used to manipulate a map world
       update(...)     - Draw a map onto a buffer or the screen
       scroll(...)      - Scroll the map world
       loadMap(...)  - Loads a world file from disk

Tile Access - A list of functions used to get/set parameters on tiles in the world map
       tileInfo(...BaseStruct)         - Gets information on a base layer tile
       tileInfo(...FringeStruct)      - Gets information on a fringe layer tile
       tileInfo(...ObjectStruct)      - Gets information on an object layer tile
       tileInfo(...RoofStruct)         - Gets information on a roof layer tile
       modifyTile(...BaseStruct)    - Changes tile attributes for a base layer tile
       modifyTile(...FringeStruct) - Changes tile attributes for a fringe layer tile
       modifyTile(...ObjectStruct) - Changes tile attributes for an object layer tile
       modifyTile(...RoofStruct)    - Changes tile attributes for a roof layer tile

Border Manipulation - A list of functions to change/get info on the current border around the world
       setBorderX1 - Sets the upper left hand X coordinate
       setBorderY1 - Sets the upper left hand Y coordinate
       setBorderX2 - Sets the lower right hand X coordinate
       setBorderY2 - Sets the lower right hand Y coordinate
       getBorderX1 - Gets the current X1 coordinate
       getBorderY1 - Gets the current Y1 coordinate
       getBorderX2 - Gets the current X2 coordinate
       getBorderY2 - Gets the current Y2 coordinate

Roof Tile Manipulation - A list of functions designed to interface with the roof tile layer
       removeRoofVisibleWindow   - Removes all tiles in a group from the current window
       removeRoofBoundedWindow - Removes all tiles in a group from a user defined region
       removeRoofEntireMap          - Removes all tiles in a group from the entire world map
       replaceRoofVisibleWindow    - Replaces all tiles in a group to the current window
       replaceRoofBoundedWindow  - Replaces all tiles in a group to a user defined region
       replaceRoofEntireMap           - Replaces all tiles in a group to the entire world map
    
Misc. Functions - A list of functions that don't fit into any other category
       getVideoMode - Retrieves the current GFX_ video mode setting
       getTileW        - Returns the width in pixels of tiles in the world
       getTileH         - Retrusn the height in pixels of tiles in the world
       getResX          - Gets the current screen pixel width resolution
       getResY          - Gets the current screen pixel height resolution
       setPalette       - Adjusts the current palette to that defiend in the world map data file.