You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
592 B

10 years ago
#pragma once
#include "Tile.h"
#include <SFML/System/Vector2.hpp>
class Map {
public:
// Width and height of the map in individual cells
10 years ago
static const int CELLS_HEIGHT = 153;
static const int CELLS_WIDTH = 319;
// Constructors
10 years ago
Map();
~Map();
// Get the tile at the specified position, overloaded
10 years ago
Tile* getTile(sf::Vector2i position);
Tile* getTile(int x_, int y_);
10 years ago
bool isTileSolid(sf::Vector2i);
// completely replaces the data at the specified position
void overwriteTile(sf::Vector2i position, Tile* data);
10 years ago
private:
void Init();
// Data
10 years ago
Tile* tileArray[319][153];
};