Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifndef BOARD_H
- #define BOARD_H
- #include "SDL.h"
- #include "constants.h"
- class SDL_Graphics;
- class Board
- {
- private:
- SDL_Rect Cell[NUMBER_OF_CELLS_ON_GRID];
- bool IsCellOccupied[2][NUMBER_OF_CELLS_ON_GRID];
- int Color[2][NUMBER_OF_CELLS_ON_GRID];
- bool Switcher;
- public:
- Board();
- void DrawBoard(SDL_Graphics* aGraphicsObject);
- SDL_Rect getCell(int WhichOne);
- void setIsCellOccupied(int WhichOne, bool Value);
- bool getIsCellOccupied(int WhichOne);
- bool getSwitcher();
- void setSwitcher();
- void resetIsCellOccupied();
- void setColor(int WhichOne, int value);
- int getColor(int WhichOne);
- void SwitcherValue(bool value);
- };
- #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement