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

30 lines
427 B
C++

#include "level.h"
Level::Level()
{}
void Level::placeBridge(coordinate x, coordinate y)
{
map[x][y] = CellType::Bridge;
}
CellType Level::cellOfType(coordinate x, coordinate y) const
{
return map[x][y];
}
void Level::removeCharge(coordinate x, coordinate y)
{
map[x][y] = CellType::Ground;
}
Map& Level::mapArray()
{
return map;
}
void Level::setMap(const Map &new_map)
{
map = std::move(new_map);
}