From 90c880b399f87f2135ec79046efdfc77e4e9eb04 Mon Sep 17 00:00:00 2001 From: Mylloon Date: Mon, 4 Apr 2022 00:09:57 +0200 Subject: [PATCH] =?UTF-8?q?Modifications=20-=20Renvoie=20faux=20=C3=A0=20l?= =?UTF-8?q?a=20m=C3=A9thode=20animal()=20-=20Changement=20de=20lettre=20S?= =?UTF-8?q?=20->=20"-"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- includes/sel.hpp | 6 +++--- src/sel.cpp | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/includes/sel.hpp b/includes/sel.hpp index 86ab804..7236213 100644 --- a/includes/sel.hpp +++ b/includes/sel.hpp @@ -5,10 +5,10 @@ class Sel: public Organisme { public: - Sel(void); + Sel(int, int, int); - // Représenté par "-1" dans l'univers - short id(void) const noexcept; + // Renvoie faux + bool animal(void) const noexcept; }; #endif diff --git a/src/sel.cpp b/src/sel.cpp index ee3ed88..9fcdfe6 100644 --- a/src/sel.cpp +++ b/src/sel.cpp @@ -1,9 +1,9 @@ #include "../includes/sel.hpp" -Sel::Sel(void): Organisme() { - _correspondance[id()] = 'S'; +Sel::Sel(int universID, int x, int y): Organisme(universID, x, y) { + _correspondance[ID] = '-'; } -short Sel::id(void) const noexcept { - return -1; +bool Sel::animal(void) const noexcept { + return false; }