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/loup.hpp

26 lines
498 B
C++
Raw Normal View History

#ifndef ECOSYSTEME_LOUP_HPP
#define ECOSYSTEME_LOUP_HPP 1
#include "animal.hpp"
class Loup: public Animal {
2022-04-06 00:53:48 +02:00
const char _m_lettre = 'L'; // caractère représentant le loup
2022-04-06 00:53:48 +02:00
// Définie la vitesse du loup
2022-04-04 00:10:51 +02:00
int generationVitesse(void) const noexcept;
public:
// ID de l'univers
Loup(int);
// ID de l'univers, index dans l'univers
Loup(int, int);
~Loup(void);
2022-04-04 00:10:51 +02:00
// Renvoie vrai
bool carnivore(void) const noexcept;
};
#endif