Created the TileSheetManager class
This class will manage the large(ish) number of tile sheets for a specific map.
This commit is contained in:
@@ -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 ℑ }
|
||||
|
||||
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;
|
||||
|
||||
Reference in New Issue
Block a user