OldSchool Library
|
Structure representing a map. More...
#include <map.h>
Data Fields | |
OSL_IMAGE * | img |
void * | map |
int | scrollX |
int | scrollY |
int | tileX |
int | tileY |
int | drawSizeX |
int | drawSizeY |
int | mapSizeX |
int | mapSizeY |
u8 | format |
u8 | flags |
u8 | addit1 |
Structure representing a map.
The OSL_MAP
structure holds all the necessary information about a map, including its tileset image, map data, scrolling values, tile sizes, and the format of the map.
OSL_IMAGE* OSL_MAP::img |
Pointer to the tileset image used by the map.
void* OSL_MAP::map |
Pointer to the raw binary map data.
int OSL_MAP::scrollX |
Horizontal scroll position (in pixels).
int OSL_MAP::scrollY |
Vertical scroll position (in pixels).
int OSL_MAP::tileX |
Width of a tile in the tileset (in pixels).
int OSL_MAP::tileY |
Height of a tile in the tileset (in pixels).
int OSL_MAP::drawSizeX |
Width of the drawing area (in pixels).
int OSL_MAP::drawSizeY |
Height of the drawing area (in pixels).
int OSL_MAP::mapSizeX |
Width of the map (in tiles).
int OSL_MAP::mapSizeY |
Height of the map (in tiles).
u8 OSL_MAP::format |
Format of the map, defined by OSL_MAP_FORMATS
.
u8 OSL_MAP::flags |
Flags defining map properties, see OSL_MAP_FLAGS
.
u8 OSL_MAP::addit1 |
Additional map data used for special formats.