This repository has been archived on 2022-05-02. You can view files and clone it, but cannot push or open issues or pull requests.
Ecosysteme/includes/mouton.hpp

24 lines
507 B
C++
Raw Normal View History

#ifndef ECOSYSTEME_MOUTON_HPP
#define ECOSYSTEME_MOUTON_HPP 1
#include "animal.hpp"
class Mouton: public Animal {
2022-04-06 00:53:48 +02:00
const char _m_lettre = 'M'; // caractère représentant le mouton
2022-04-06 00:53:48 +02:00
// Défini la vitesse du mouton
2022-04-04 00:10:51 +02:00
int generationVitesse(void) const noexcept;
public:
// ID de l'univers
2022-04-05 19:00:40 +02:00
Mouton(const int);
// ID de l'univers, index dans l'univers
2022-04-05 19:00:40 +02:00
Mouton(const int, const int);
2022-04-04 00:10:51 +02:00
// Renvoie faux
bool carnivore(void) const noexcept;
};
#endif