14 vector<Tile> getTileset()
const {
return tiles; }
15 SDL_Rect getFrame(
int i) { tiles[i-1].getFrame(); }
17 vector<Tile>
create(
string name,
string img, SDL_Renderer* ren,
int width,
int height,
int r,
int count);
19 vector<Tile>
create(
string name,
string img, SDL_Renderer* ren,
int width,
int height,
int r,
int rcount,
int count);
21 vector<Tile>
create(
int startid,
string name,
string img, SDL_Renderer* ren,
int width,
int height,
int r,
int count);
23 vector<Tile>
create(
int startid,
string name,
string img, SDL_Renderer* ren,
int width,
int height,
int r,
int rcount,
int count);
27 Tile addTile(
string name,
string file, SDL_Renderer* ren,
int value,
int r,
int c,
int width,
int height);
29 Tile addTile(
string name,
string file, SDL_Renderer* ren,
int value,
int width,
int height);
31 Tile addTile(
string name,
string file, SDL_Renderer* ren,
int value,
int size);
36 void setSolid(
int s,
int e);
38 void setPassable(
int t);
39 void setPassable(
int s,
int e);
40 void setName(
string n,
int id);
Class for loading in multiple Tiles.
vector< Tile > create(string name, string img, SDL_Renderer *ren, int width, int height, int r, int count)
Load in a map file with the name for all the tiles, the path to the map file, path to the tileset ima...
void addTile(Tile t)
Push Tile in tile with given Tile.
An Object class that stores the a tile value and name.
void setAngle(int ang)
Set the angle of all the tiles. Calls pushAng().