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.

30 lines
659 B

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