8 void Stage::createStage(
string filename,
string name,
string img, SDL_Renderer* ren,
int width,
int height,
int r,
int count) {
9 createStage(filename, 1, name, img, ren, width, height, r, count);
11 void Stage::createStage(
string filename,
string name,
string img, SDL_Renderer* ren,
int width,
int height,
int r,
int rcount,
int count) {
12 createStage(filename, 1, name, img, ren, width, height, r, rcount, count);
14 void Stage::createStage(
string filename,
int startid,
string name,
string img, SDL_Renderer* ren,
int width,
int height,
int r,
int count) {
15 createStage(filename, startid, name, img, ren, width, height, r, count, count);
17 void Stage::createStage(
string filename,
int startid,
string name,
string img, SDL_Renderer* ren,
int width,
int height,
int r,
int rcount,
int count) {
19 setTileset(startid, name, img, ren, width, height, r, rcount, count);
23 setTileset(1, name, img, ren, width, height, r, count);
26 Tileset Stage::setTileset(
string name,
string img, SDL_Renderer* ren,
int width,
int height,
int r,
int rcount,
int count) {
27 setTileset(1, name, img, ren, width, height, r, rcount, count);
30 Tileset Stage::setTileset(
int startid,
string name,
string img, SDL_Renderer* ren,
int width,
int height,
int r,
int count) {
31 setTileset(startid, name, img, ren, width, height, r, count, count);
34 Tileset Stage::setTileset(
int startid,
string name,
string img, SDL_Renderer* ren,
int width,
int height,
int r,
int rcount,
int count) {
35 tileset.
create(startid, name, img, ren, width, height, r, rcount, count);
Class for loading in multiple Tiles.
void createStage(Map m, Tileset t)
Create a stage by passing in a Map and Tileset.
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 setMap(Map m)
Set the Map by passing in a Map.
void setTileset(Tileset t)
Set the Tileset with a given Tileset.