You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
676 B

  1. #pragma once
  2. //This class will be the abstract Game Interface
  3. #include <string>
  4. #include "Controller.h"
  5. #include "Snake.h"
  6. #include "Player.h"
  7. class SnakeGame{
  8. private:
  9. std::string gameName;
  10. std::list<Player> players;
  11. unsigned int highScore;
  12. std::string bestPlayer;
  13. void play(std::string playerName);
  14. void addPlayer(std::string playerName);
  15. public:
  16. SnakeGame(); //intialize graphics and set the game screen
  17. ~SnakeGame();
  18. unsigned int getHighScore(void);
  19. std::string getBestPlayer(void);
  20. //print the statistics (highest score & games played) of each player
  21. //void printGameStatistics(void);
  22. void play(void);
  23. };