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

23 lines
449 B
C++
Raw Normal View History

#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