#ifndef GAMEH #define GAMEH #include #include "terminal.h" using namespace std; class wabbit; //forward declaration class game { const terminal term; typedef list master_t; master_t master; long score_; unsigned lives_, nghosts_, startPos_[2], gridXmax_, gridYmax_, difficulty_; master_t::value_type get(unsigned x, unsigned y) const; master_t::value_type get(unsigned x, unsigned y, unsigned* i) const; void findOpenSpot(unsigned* x, unsigned* y) const; master_t::size_type count(char c) const; void clearScoreLine(); //make things look pretty public: game(unsigned short difficulty = 2, char initial_c = ' '); ~game(); void play(); friend class wabbit; }; #endif