22 lines
449 B
C++
22 lines
449 B
C++
#ifndef _ORGANISME_HPP_
|
|
#define _ORGANISME_HPP_ 1
|
|
|
|
#include <map>
|
|
|
|
class Organisme {
|
|
protected:
|
|
static inline std::map<int, char> _correspondance;
|
|
|
|
public:
|
|
Organisme(void);
|
|
|
|
/* Renvoie l'ID de l'organisme
|
|
* Si `ID < 0` -> non vivant
|
|
* Si `ID > 0` -> vivant
|
|
* Si `ID == 0` -> Herbe */
|
|
virtual short id(void) const noexcept = 0;
|
|
|
|
static char correspondance(int);
|
|
};
|
|
|
|
#endif
|