Created the TileSheet class

This is incomplete on it's own, but used as part of the whole map system,
it should work well. This class keeps track of various, seemingly
unrelated states, which are used as part of the larger map system.

Also, fixed Region's members being public.
This commit is contained in:
Kayne Ruse
2013-09-25 20:39:59 +10:00
parent a54fbfb9e9
commit d5b14c2679
3 changed files with 124 additions and 3 deletions
+1 -3
View File
@@ -30,8 +30,6 @@
* This class stores the tiles relative to it's own position, but
* there are functions for referencing the tiles' absolute position.
* These functions simply wrap the normal functions.
*
* TODO: This class needs to be thoroughly tested.
*/
class Region {
public:
@@ -89,7 +87,7 @@ public:
friend bool operator>(Region const& lhs, Region const& rhs);
friend bool operator==(Region const& lhs, Region const& rhs);
public: //TMP
private:
int const x;
int const y;
int const width;