Inutile d'appeler le constructeur parent
This commit is contained in:
parent
62013124ab
commit
e371466edf
|
@ -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);
|
||||||
|
|
|
@ -17,7 +17,6 @@ Game::Game() : accumulator(0.f) {
|
||||||
}
|
}
|
||||||
|
|
||||||
Game::~Game() {
|
Game::~Game() {
|
||||||
View::~View();
|
|
||||||
clear();
|
clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue