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
676 B
30 lines
676 B
#pragma once
|
|
|
|
//This class will be the abstract Game Interface
|
|
#include <string>
|
|
#include "Controller.h"
|
|
#include "Snake.h"
|
|
#include "Player.h"
|
|
class SnakeGame{
|
|
private:
|
|
std::string gameName;
|
|
std::list<Player> players;
|
|
unsigned int highScore;
|
|
std::string bestPlayer;
|
|
|
|
void play(std::string playerName);
|
|
void addPlayer(std::string playerName);
|
|
|
|
public:
|
|
SnakeGame(); //intialize graphics and set the game screen
|
|
~SnakeGame();
|
|
|
|
|
|
unsigned int getHighScore(void);
|
|
std::string getBestPlayer(void);
|
|
|
|
//print the statistics (highest score & games played) of each player
|
|
//void printGameStatistics(void);
|
|
|
|
void play(void);
|
|
};
|