Line | Branch | Exec | Source |
---|---|---|---|
1 | #ifndef EGG_HPP | ||
2 | #define EGG_HPP | ||
3 | |||
4 | #include <vector> | ||
5 | #include <string> | ||
6 | |||
7 | enum EggStatus { | ||
8 | INCUBATING, | ||
9 | READY_TO_HATCH, | ||
10 | HATCHED, | ||
11 | DEAD | ||
12 | }; | ||
13 | |||
14 | 13 | class Egg | |
15 | { | ||
16 | private: | ||
17 | std::vector<int> pos; | ||
18 | [[maybe_unused]] int nb; | ||
19 | [[maybe_unused]] int playerNb; | ||
20 | EggStatus state; | ||
21 | public: | ||
22 | Egg(std::vector<int> pos, int nb, int playerNb, EggStatus state); | ||
23 | 8 | ~Egg() {}; | |
24 | |||
25 | void setState(EggStatus newState); | ||
26 | |||
27 | EggStatus getState(); | ||
28 | std::vector<int> getPos(); | ||
29 | int getId(); | ||
30 | int getPlayerNb(); | ||
31 | }; | ||
32 | |||
33 | |||
34 | #endif // EGG_HPP | ||
35 |