diff options
author | Olivier Gayot <duskcoder@gmail.com> | 2015-08-13 13:25:59 +0100 |
---|---|---|
committer | Olivier Gayot <duskcoder@gmail.com> | 2015-08-13 13:25:59 +0100 |
commit | 3bd34b9d50958241955ce1b641af78273fe5f3fe (patch) | |
tree | 2f8c2100d8fb550a8d1fcf7316ed6d0c65b569a3 /Game.h | |
parent | a2c97680aee90aa3498c03bb815bc105eb683aef (diff) |
Added the Game class
A game may be started when two players are available.
Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
Diffstat (limited to 'Game.h')
-rw-r--r-- | Game.h | 22 |
1 files changed, 22 insertions, 0 deletions
@@ -0,0 +1,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 */ |