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.

38 lines
569 B

#include "Tile.h"
Tile::Tile(bool solid_, double movement_penalty_, sf::Color color_) {
solid = solid_;
movement_penalty = movement_penalty_;
color = color_;
}
Tile::Tile() {
solid = false;
movement_penalty = 0.0;
color = sf::Color::Red;
}
Tile::~Tile() {
}
bool Tile::isSolid() {
return solid;
}
double Tile::getPenalty() {
return movement_penalty;
}
sf::Color Tile::getColor() {
return color;
}
void Tile::Rewrite(bool solid_, double movement_penalty_, sf::Color color_) {
solid = solid_;
movement_penalty = movement_penalty_;
color = color_;
}