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