Advertisement
Guest User

Untitled

a guest
Apr 7th, 2018
159
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. #ifndef CONNECT4PLAYER_HPP
  2. #define CONNECT4PLAYER_HPP
  3.  
  4. class Connect4Game;
  5.  
  6. #include "Connect4Game.hpp"
  7.  
  8. class Connect4Player
  9. {
  10. public:
  11. enum class PlayerType
  12. {
  13. Human,
  14. Cpu
  15. };
  16.  
  17. Connect4Player(PlayerType, char);
  18. char getChip();
  19. void setChip(char);
  20. virtual int makeTurn() = 0;
  21. void attachGame(Connect4Game*);
  22. protected:
  23. PlayerType type_;
  24. char chip_;
  25. Connect4Game* attachedGame_;
  26. };
  27.  
  28.  
  29. #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement