Ajout des classes composant l'Univers
This commit is contained in:
parent
3f5a6e9996
commit
e406d25eaa
1 changed files with 34 additions and 0 deletions
34
univers.hpp
34
univers.hpp
|
@ -2,10 +2,44 @@
|
|||
#define _UNIVERS_HPP_ 1
|
||||
|
||||
class Univers {
|
||||
friend class Organisme;
|
||||
|
||||
int _m, _n, _tour;
|
||||
int * _plateau;
|
||||
|
||||
public:
|
||||
Univers(int, int);
|
||||
};
|
||||
|
||||
class Organisme {
|
||||
public:
|
||||
Organisme(void);
|
||||
};
|
||||
|
||||
class Animal: public Organisme {
|
||||
public:
|
||||
Animal(void);
|
||||
};
|
||||
|
||||
class Herbe: public Organisme {
|
||||
public:
|
||||
Herbe(void);
|
||||
};
|
||||
|
||||
class Sel: public Organisme {
|
||||
public:
|
||||
Sel(void);
|
||||
};
|
||||
|
||||
|
||||
class Mouton: public Animal {
|
||||
public:
|
||||
Mouton(void);
|
||||
};
|
||||
|
||||
class Loups: public Animal {
|
||||
public:
|
||||
Loups(void);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
Reference in a new issue