Decoupled the TileSheet class from the Map class
I moved the rangeEnd variable into the TileSheet class, making it static. I also tweaked the return types for a few functions in Region, and removed the sheetIndex member from Tile.
This commit is contained in:
@@ -25,6 +25,8 @@
|
||||
|
||||
#include <stdexcept>
|
||||
|
||||
int TileSheet::rangeEnd = 0;
|
||||
|
||||
SDL_Surface* TileSheet::LoadSurface(std::string fname, Uint16 w, Uint16 h) {
|
||||
//setup the image
|
||||
image.LoadSurface(fname);
|
||||
|
||||
Reference in New Issue
Block a user