// Cavern.h #ifndef CAVERN_H #define CAVERN_H #include #include "gp142display.h" #include "gp142.h" const int CaveX = 10; // Corner X starting posistion const int CaveY= -10; // Corner Y starting posistion const int CaveSize = 25;// Size of the each box const int LineWidth = 3;// Width of the box const int MaxCave = 7; // 7 Caves Maxium const int CharSize = 15;// Character size /**************************************** * Cavern class is an abstract class * * * * Is not design to be a object class * * but to be the base class for: * * Wumpus, Pits and Empty. * * * ****************************************/ class Cavern{ public: //keeps the caves in track with either //player has visited the cave or not virtual void SetVisit()=0; //the method prints out to the graphic //what ever it needs virtual void Action(GP142Display&)=0; //if the player has enterd the adjancent cave //it returns true so Action method can run virtual void FeelWhatsNear(GP142Display&)=0; //draws the box of the cave that player has visited virtual void Draw(GP142Display&, int, int)=0; //returns true if player shot the wumpus virtual bool ShootWumpus()=0; //returns either player has visited the cave virtual bool GetVisit()=0; //return true for Wumpus and Pits but not Empty class virtual bool GetWhatsNear()=0; }; #endif