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 | 9 | Broadcast(int playerNb, std::string message, std::vector<int> pos) : pos(pos), message(message), playerNb(playerNb) {}; | |
16 | 14 | ~Broadcast() {}; | |
17 | |||
18 | std::vector<int> getPosition(); | ||
19 | std::string getMessage(); | ||
20 | int getPlayerNb(); | ||
21 | }; | ||
22 | |||
23 | #endif // BROADCAST_HPP | ||
24 |