Advertisement
PrincessFumi

Untitled

Jan 23rd, 2015
200
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. #ifndef PIONEK_H_INCLUDED
  2. #define PIONEK_H_INCLUDED
  3. #include "wspolrzedne.h"
  4. #include "Domek.h"
  5. #include "Plansza.h"
  6.  
  7. enum kolor_pionka
  8. {
  9. zolty,
  10. zielony,
  11. czerwony,
  12. niebieski
  13. };
  14.  
  15.  
  16. class Pionek
  17. {
  18.  
  19. sf::Sprite *sprite;
  20. int polozenie;
  21. sf::Vector2f wektor;
  22. kolor_pionka kolor;
  23. public:
  24.  
  25. bool w_grze;
  26. Pionek(sf::Sprite *sprite, kolor_pionka ustaw_kolor);
  27. int pobierz_polozenie();
  28. void ustaw_polozenie(int polozenie);
  29. void wroc_do_domku();
  30. void przejdz_do_bazy(int polozenie);
  31. kolor_pionka zwroc_kolor();
  32. sf::Sprite* zwracanie_sprite();
  33. // bool czy_w_domku(Pionek* tablica[], kolor_pionka kolorek);
  34. ~Pionek();
  35. };
  36.  
  37.  
  38. #endif // PIONEK_H_INCLUDED
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement