Advertisement
Guest User

Untitled

a guest
Jul 22nd, 2018
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.58 KB | None | 0 0
  1. #ifndef BOARD
  2. #define BOARD
  3. #include "SFML/Graphics.hpp"
  4. #include "SFML/Window.hpp"
  5. #include <vector>
  6. #include <array>
  7. #define PATH_PICTURES "/images/"
  8.  
  9. class Board: public sf::Drawable
  10. {
  11. public:
  12.     Board();
  13.     ~Board();
  14.     void setTableTexture();
  15.     void setTable();
  16.     void draw(sf::RenderWindow &window);
  17. private:
  18.     sf::Texture boardTexture;
  19. public:
  20.     sf::RectangleShape board;
  21.     std::array<std::array<sf::RectangleShape,10>,20> vectBoard;
  22.     float moveXaxis;
  23.     float moveYaXis;
  24.     sf::Vector2u pitMoveMent;
  25.     sf::Texture PitTexture;
  26.     sf::RectangleShape Pit;
  27. };
  28. #endif // !BOARD
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement