Coverage report for gui


src/
File: src/parser/Egg.cpp
Date: 2024-06-25 10:57:02
Lines:
12/12
100.0%
Functions:
6/6
100.0%
Branches:
0/0
-%

Line Branch Exec Source
1 #include "Egg.hpp"
2
3 12 Egg::Egg(std::vector<int> pos, int nb, int playerNb, EggStatus state): pos(pos), nb(nb), playerNb(playerNb), state(state) {};
4
5 3 void Egg::setState(EggStatus newState) {
6 3 state = newState;
7 3 }
8
9 4 EggStatus Egg::getState() {
10 4 return state;
11 }
12
13 1 std::vector<int> Egg::getPos() {
14 1 return pos;
15 }
16
17 2 int Egg::getId() {
18 2 return nb;
19 }
20
21 1 int Egg::getPlayerNb() {
22 1 return playerNb;
23 }
24