Advertisement
PrincessFumi

Untitled

Jan 11th, 2015
167
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.16 KB | None | 0 0
  1.  
  2. if(zdarzenie.type == sf::Event::MouseButtonReleased && zdarzenie.mouseButton.button== sf::Mouse::Left)
  3. {
  4.  
  5. if(czy_poczatek_gry==true && kostka!=6 && j<= 3)
  6. {
  7.  
  8. czy_losowac=true;
  9. if(j==3)
  10. {
  11.  
  12. aktualny=zwroc_kolor_nastepnego(aktualny->kolor);
  13. }
  14. else
  15. {
  16. Pionek *pionek = zwroc_kliknietego_pionka(sf::Mouse::getPosition(oknoAplikacji), Pionki);
  17. if(pionek != NULL && pionek->zwroc_kolor()==aktualny->kolor)
  18. {
  19.  
  20. czy_ruch= ruch_pionka(pionek,Pionki,kostka);
  21. if(czy_ruch==false)
  22. {
  23. }
  24. else
  25. {
  26. czy_losowac=true;
  27. aktualny=zwroc_kolor_nastepnego(pionek->zwroc_kolor());
  28. }
  29.  
  30. }
  31. }
  32.  
  33.  
  34.  
  35. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement