TileLib Game Library
TileLib Game Library
TL_Class()
~TL_Class()
void update(BITMAP *buffer)
int scroll(int xAmt, int yAmt)
yAmt - the number of tiles to scroll in the Y direction
int smoothScroll(int xAmt, int yAmt)
yAmt - the number of pixels to scroll in the Y direction
int tileInfo(unsigned int x, unsigned int y, BaseStruct *base)
y - the y coordinate at which you want to retrieve information
base - the BaseStruct to store the result in
int tileInfo(unsigned int x, unsigned int y, FringeStruct *fringe)
y - the y coordinate at which you want to retrieve information
fringe - the FringeStruct to store the result in
int tileInfo(unsigned int x, unsigned int y, ObjectStruct *obj)
y - the y coordinate at which you want to retrieve information
obj - the ObjectStruct to store the result in
int tileInfo(unsigned int x, unsigned int y, RoofStruct *roof)
y - the y coordinate at which you want to retrieve information
roof - the RoofStruct to store the result in
int modifyTile(unsigned int x, unsigned int y, BaseStruct bs)
y - the y coordinate at which you want to retrieve information
bs - the BaseStruct to store the result in
int modifyTile(unsigned int x, unsigned int y, FringeStruct fs)
y - the y coordinate at which you want to retrieve information
fs - the FringeStruct to store the result in
int modifyTile(unsigned int x, unsigned int y, ObjectStruct os)
y - the y coordinate at which you want to retrieve information
os - the ObjectStruct to store the result in
int modifyTile(unsigned int x, unsigned int y, RoofStruct rs)
y - the y coordinate at which you want to retrieve information
rs - the RoofStruct to store the result in
int loadMap(char *name)
void setPalette(void)
int removeRoofVisibleWindow(unsigned int group_no)
int removeRoofBoundedWindow(unsigned int group_no, unsigned int x1, unsigned int y1, unsigned int x2, unsigned int y2)
x1 - the upper left x coordinate in tiles to begin removing roof tiles from
y1 - the upper left y coordinate in tiles to begin removing roof tiles from
x2 - the lower right x coordinate in tiles to begin removing roof tiles from
y2 - the lower right y coordinate in tiles to begin removing roof tiles from
int removeRoofEntireMap(unsigned int group_no)
int replaceRoofVisibleWindow(unsigned int group_no)
int replaceRoofBoundedWindow(unsigned int group_no, unsigned int x1, unsigned int y1, unsigned int x2, unsigned int y2)
x1 - the upper left x coordinate in tiles
y1 - the upper left y coordinate in tiles
x2 - the lower right x coordinate in tiles
y2 - the lower right y coordinate in tiles
int replaceRoofEntireMap(unsigned int group_no)
void setBorderX1(unsigned int x)
void setBorderX2(unsigned int x)
void setBorderY1(unsigned int y)
void setBorderY2(unsigned int y)
unsigned int getBorderX1(void)
unsigned int getBorderX2(void)
unsigned int getBorderY1(void)
unsigned int getBorderY2(void)
int getVideoMode(void)
unsigned int getResX(void)
unsigned int getResY(void)
unsigned int getTileW(void)
unsigned int getTileH(void)
int freeMem(void)
void clearAll(void)
MapStruct** map
DATAFILE* data
unsigned int resX
unsigned int tileW
unsigned int mapW
byte numLayers
int palNo
char dataFile[80]
unsigned int borderX1
unsigned int borderY1
unsigned int borderX2
unsigned int borderY2
unsigned int mapXStart
unsigned int mapYStart
int videoMode
byte bl
int xOff
Alphabetic index HTML hierarchy of classes or Java