text cover

Data Abstraction and Problem Solving with C++

Walls and Mirrors

by Frank M. Carrano

Addison Wesley Logo

Queen.h

Go to the documentation of this file.
00001 
00015 #ifndef QUEEN_H
00016 #define QUEEN_H
00017 
00018 class Board; // declaration of Board class
00019 
00022 class Queen
00023 {
00024 public:
00026    Queen();
00028    Queen(int inRow, int inCol);
00029 
00031    int getCol() const;
00033    int getRow() const;
00035    void nextRow();
00036 
00040    bool isUnderAttack() const;
00041 
00043    static void setBoard(const Board *bPtr);
00044 
00045 private:
00047    int row;
00049    int col;
00050 
00052    static const Board *boardPtr;
00053 }; // end Queen
00054 
00055 #endif

Generated on Sun Aug 27 13:27:58 2006 for AWLogo by  doxygen 1.4.6