/////////////////////////////////////////////////////////// // // maze.h // // Revision history: // 1/11/01 (Jeff Ondich) // /////////////////////////////////////////////////////////// #include // Any MazeSquare field is true if the corresponding // wall exists, and false otherwise. struct MazeSquare { bool mTop; bool mRight; bool mLeft; bool mBottom; }; const int kMaxRows = 20; const int kMaxColumns = 20; class Maze { private: int mRows; // Number of rows in the maze. int mColumns; // Number of columns in the maze. MazeSquare mSquare[kMaxRows][kMaxColumns]; public: Maze(); Maze( const char *fileName ); friend ostream& operator<<( ostream& out, Maze& m ); friend istream& operator>>( istream& in, Maze& m ); }; ostream& operator<<( ostream& out, Maze& m ); istream& operator>>( istream& in, Maze& m );