Renvoie faux à la méthode animal()

This commit is contained in:
Mylloon 2022-04-04 00:09:28 +02:00
parent 6f4ca663f1
commit 3fb1b6b3ef
Signed by: Anri
GPG key ID: A82D63DFF8D1317F
2 changed files with 7 additions and 7 deletions

View file

@ -5,10 +5,10 @@
class Herbe: public Organisme {
public:
Herbe(void);
Herbe(int, int, int);
// Représenté par "0" dans l'univers
short id(void) const noexcept;
// Renvoie faux
bool animal(void) const noexcept;
};
#endif

View file

@ -1,9 +1,9 @@
#include "../includes/herbe.hpp"
Herbe::Herbe(void): Organisme() {
_correspondance[id()] = ' ';
Herbe::Herbe(int universID, int x, int y): Organisme(universID, x, y) {
_correspondance[ID] = ' ';
}
short Herbe::id(void) const noexcept {
return 0;
bool Herbe::animal(void) const noexcept {
return false;
}