// WumpusGame.h interface for the calss WumpusGame.h #ifndef WUMPUSGAME_H #define WUMPUSGAME_H #include #include #include "Character.h" #include "Cavern.h" #include "Empty.h" #include "Wumpus.h" #include "Pits.h" class WumpusGame{ public: // sets the game to alive WumpusGame(); // deallocated the dynamic memory ~WumpusGame(); // deallocated the denamic memory void DeleteOldBoard(); // redraws the game board // redraws each cave the player has visited void Redraw(GP142Display&); // destroys the game board // and makes a new board void NewGame(GP142Display&); // moves the player around by the key board void Move(char, GP142Display&); // check is the caves around is the wumpus // and if it is then it will either kill the // wumpus or kill the player void Shoot(char,GP142Display&); // finds the adjancent cave is either a pit or a wumpus void TypeQuerry(int, int, GP142Display&); // creates a new game and the board void NewBoard(GP142Display&); private: bool gameAlive, hunter; Character player; // dynamic memory to keep all the caves Cavern* gameGrid[MaxCave][MaxCave]; }; #endif