45 lines
585 B
C++
45 lines
585 B
C++
#ifndef _UNIVERS_HPP_
|
|
#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
|