Renvoie faux à la méthode animal()
This commit is contained in:
parent
6f4ca663f1
commit
3fb1b6b3ef
2 changed files with 7 additions and 7 deletions
|
@ -5,10 +5,10 @@
|
||||||
|
|
||||||
class Herbe: public Organisme {
|
class Herbe: public Organisme {
|
||||||
public:
|
public:
|
||||||
Herbe(void);
|
Herbe(int, int, int);
|
||||||
|
|
||||||
// Représenté par "0" dans l'univers
|
// Renvoie faux
|
||||||
short id(void) const noexcept;
|
bool animal(void) const noexcept;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
#include "../includes/herbe.hpp"
|
#include "../includes/herbe.hpp"
|
||||||
|
|
||||||
Herbe::Herbe(void): Organisme() {
|
Herbe::Herbe(int universID, int x, int y): Organisme(universID, x, y) {
|
||||||
_correspondance[id()] = ' ';
|
_correspondance[ID] = ' ';
|
||||||
}
|
}
|
||||||
|
|
||||||
short Herbe::id(void) const noexcept {
|
bool Herbe::animal(void) const noexcept {
|
||||||
return 0;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue