Coverage report for gui


src/
File: src/parser/Broadcast.hpp
Date: 2024-06-25 10:57:02
Lines:
2/2
100.0%
Functions:
1/1
100.0%
Branches:
2/4
50.0%

Line Branch Exec Source
1
2 #ifndef BROADCAST_HPP
3 #define BROADCAST_HPP
4
5 #include <vector>
6 #include <string>
7
8 class Broadcast
9 {
10 private:
11 std::vector<int> pos;
12 std::string message;
13 int playerNb;
14 public:
15
1/2
✓ Branch 2 taken 9 times.
✗ Branch 3 not taken.
9 Broadcast(int playerNb, std::string message, std::vector<int> pos) : pos(pos), message(message), playerNb(playerNb) {};
16
1/2
✓ Branch 2 taken 1 times.
✗ Branch 3 not taken.
14 ~Broadcast() {};
17
18 std::vector<int> getPosition();
19 std::string getMessage();
20 int getPlayerNb();
21 };
22
23 #endif // BROADCAST_HPP
24