1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
#ifndef GAME_H #define GAME_H #include "Player.h" class Game { public: Game(Player &p1, Player &p2); Player &p1() const { return _p1; }; Player &p2() const { return _p2; }; private: Player &_p1; Player &_p2; }; #endif /* GAME_H */