Advertisement
Suby

board.h

Jun 1st, 2012
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.66 KB | None | 0 0
  1. #ifndef BOARD_H
  2. #define BOARD_H
  3.  
  4. #include "SDL.h"
  5. #include "constants.h"
  6.  
  7. class SDL_Graphics;
  8.  
  9. class Board
  10. {
  11. private:
  12.     SDL_Rect Cell[NUMBER_OF_CELLS_ON_GRID];
  13.     bool IsCellOccupied[2][NUMBER_OF_CELLS_ON_GRID];
  14.     int Color[2][NUMBER_OF_CELLS_ON_GRID];
  15.     bool Switcher;
  16.  
  17. public:
  18.     Board();
  19.     void DrawBoard(SDL_Graphics* aGraphicsObject);
  20.     SDL_Rect getCell(int WhichOne);
  21.     void setIsCellOccupied(int WhichOne, bool Value);
  22.     bool getIsCellOccupied(int WhichOne);
  23.     bool getSwitcher();
  24.     void setSwitcher();
  25.     void resetIsCellOccupied();
  26.     void setColor(int WhichOne, int value);
  27.     int getColor(int WhichOne);
  28.  
  29.     void SwitcherValue(bool value);
  30. };
  31. #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement