clear du vecteur inutile
This commit is contained in:
parent
f5dbbcf28d
commit
90ed0e4604
1 changed files with 11 additions and 1 deletions
12
univers.cpp
12
univers.cpp
|
@ -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;
|
||||
}
|
||||
|
|
Reference in a new issue