2020-02-19 12:50:09 -05:00
|
|
|
#include "level.h"
|
|
|
|
|
|
|
|
Level::Level()
|
2020-02-25 11:53:57 -05:00
|
|
|
{}
|
2020-02-20 13:34:41 -05:00
|
|
|
|
2020-02-21 09:13:12 -05:00
|
|
|
void Level::placeBridge(coordinate x, coordinate y)
|
2020-02-20 13:34:41 -05:00
|
|
|
{
|
2020-03-02 11:04:17 -05:00
|
|
|
map[x][y] = std::make_unique<PassableCell>(x, y, sf::Color::Black);
|
2020-02-20 13:34:41 -05:00
|
|
|
}
|
|
|
|
|
2020-02-21 09:13:12 -05:00
|
|
|
void Level::removeCharge(coordinate x, coordinate y)
|
2020-02-20 13:34:41 -05:00
|
|
|
{
|
2020-03-02 11:04:17 -05:00
|
|
|
map[x][y] = std::make_unique<PassableCell>(x, y /* Brown Color */);
|
2020-02-19 12:50:09 -05:00
|
|
|
}
|
2020-02-21 16:55:13 -05:00
|
|
|
|
|
|
|
Map& Level::mapArray()
|
|
|
|
{
|
|
|
|
return map;
|
|
|
|
}
|