clear du vecteur inutile

This commit is contained in:
Mylloon 2022-04-02 17:07:01 +02:00
parent f5dbbcf28d
commit 90ed0e4604
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -22,7 +22,6 @@ Univers::Univers(int m, int n): _m(m), _n(n), _tailleUnivers(m * n), _tour(0), _
Univers::~Univers(void) {
delete[] _plateau;
indexLibres.clear();
}
void Univers::ajoutAnimaux(std::vector<Animal*> animaux) {
@ -103,6 +102,9 @@ Animal::Animal(void): Organisme() {
}
Animal::~Animal(void) {
}
// -------- Herbe --------
@ -132,6 +134,10 @@ Mouton::Mouton(void): Animal() {
}
Mouton::~Mouton(void) {
}
bool Mouton::carnivore(void) const noexcept {
return false;
}
@ -147,6 +153,10 @@ Loup::Loup(void): Animal() {
}
Loup::~Loup(void) {
}
bool Loup::carnivore(void) const noexcept {
return false;
}