Created the TileSheetManager class

This class will manage the large(ish) number of tile sheets for a specific
map.
This commit is contained in:
Kayne Ruse
2013-10-21 23:53:36 +11:00
parent 7e603ffa89
commit 0b4e6003d6
4 changed files with 101 additions and 23 deletions
-9
View File
@@ -44,15 +44,9 @@ public:
bool InRange(int i) { return i >= begin && i < end; }
static int SetRangeEnd(int i) { return rangeEnd = i; }
static int GetRangeEnd() { return rangeEnd; }
//accessors and mutators
Image* GetImage() { return &image; }
std::string SetName(std::string s) { return name = s; }
std::string GetName() const { return name; }
int GetTotalCount() const { return totalCount; }
int GetXCount() const { return xCount; }
int GetYCount() const { return yCount; }
@@ -63,10 +57,7 @@ public:
int GetBegin() const { return begin; }
int GetEnd() const { return end; }
private:
static int rangeEnd;
Image image;
std::string name;
//these are generated and used by internal processes
int totalCount = 0, xCount = 0, yCount = 0;