Inutile d'appeler le constructeur parent

This commit is contained in:
Mattéo Delabre 2016-03-28 20:06:49 +02:00
parent 62013124ab
commit e371466edf
3 changed files with 2 additions and 7 deletions

View File

@ -12,9 +12,7 @@ Block::Block(float x, float y) : Object(x, y) {
sprite.setOrigin(sf::Vector2f(Constants::GRID / 2, Constants::GRID / 2)); sprite.setOrigin(sf::Vector2f(Constants::GRID / 2, Constants::GRID / 2));
} }
Block::~Block() { Block::~Block() {}
Object::~Object();
}
void Block::draw(Manager& manager) { void Block::draw(Manager& manager) {
Object::draw(manager); Object::draw(manager);

View File

@ -17,7 +17,6 @@ Game::Game() : accumulator(0.f) {
} }
Game::~Game() { Game::~Game() {
View::~View();
clear(); clear();
} }

View File

@ -9,9 +9,7 @@ Player::Player(float x, float y) : Object(x, y) {
sprite.setOrigin(sf::Vector2f(getRadius(), getRadius())); sprite.setOrigin(sf::Vector2f(getRadius(), getRadius()));
} }
Player::~Player() { Player::~Player() {}
Object::~Object();
}
sf::Vector2f Player::getForces(const Manager& manager, const std::vector<Object*>& objects) const { sf::Vector2f Player::getForces(const Manager& manager, const std::vector<Object*>& objects) const {
sf::Vector2f forces = Object::getForces(manager, objects); sf::Vector2f forces = Object::getForces(manager, objects);