Prettied it up, comments, refactors

This commit is contained in:
2015-08-22 17:43:38 -07:00
parent 8fc8db2d78
commit ee6ea3442d
12 changed files with 258 additions and 237 deletions

View File

@@ -4,21 +4,27 @@
class Map {
public:
// Width and height of the map in individual cells
static const int CELLS_HEIGHT = 153;
static const int CELLS_WIDTH = 319;
// Constructors
Map();
~Map();
// Get the tile at the specified position, overloaded
Tile* getTile(sf::Vector2i position);
Tile* getTile(int x_, int y_);
bool isTileSolid(sf::Vector2i);
void setTile(sf::Vector2i position, Tile* data);
// completely replaces the data at the specified position
void overwriteTile(sf::Vector2i position, Tile* data);
private:
void Init();
// Data
Tile* tileArray[319][153];
};