cirno-puzzle/src/level.cpp

30 lines
494 B
C++
Raw Normal View History

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
{
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-15 11:02:37 -04:00
map[x][y] = std::make_unique<PassableCell>(x, y, color_ground);
2020-02-19 12:50:09 -05:00
}
2020-02-21 16:55:13 -05:00
Map& Level::mapArray()
{
return map;
}
2020-03-15 11:02:37 -04:00
sf::Color Level::defaultGroundColor()
{
return color_ground;
}
void Level::setDefaultGroundColor(const sf::Color &color)
{
color_ground = color;
}