Advertisement
PrincessFumi

Untitled

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