#include <Tile.h>
Public Member Functions | |
Tile (TileSet *tileset, int x, int y, int id, int type) | |
void | drawTile () |
void | drawTile (int x, int y, int w, int h, int index) |
int | getType () |
void | setType (int type) |
Public Attributes | |
int | x |
int | y |
int | id |
int | type |
Represents an Basic Tile for the BaseEngine.
This Tile in conjuction with an Tileset can be used to Create Tile based Games.
You need to initialize it with an Tileset before using it.
void Tile::drawTile | ( | ) |
Draws this Tile to Screen
void Tile::drawTile | ( | int | x, |
int | y, | ||
int | w, | ||
int | h, | ||
int | index | ||
) |
int Tile::getType | ( | ) |
Gets the Type of the Tile /return int
void Tile::setType | ( | int | type | ) |
Sets the Type of the Tile /param int type