Coverage report for gui


src/
File: src/parser/Egg.hpp
Date: 2024-06-25 10:57:02
Lines:
2/2
100.0%
Functions:
0/0
-%
Branches:
4/6
66.7%

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
4/6
✓ Branch 1 taken 1 times.
✓ Branch 2 taken 6 times.
✗ Branch 3 not taken.
✓ Branch 4 taken 1 times.
✓ Branch 5 taken 6 times.
✗ Branch 6 not taken.
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