Advertisement
PrincessFumi

Untitled

Jan 11th, 2015
162
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.21 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. j=0;
  15.  
  16.  
  17.  
  18.  
  19. }
  20. else
  21. {
  22.  
  23. Pionek *pionek = zwroc_kliknietego_pionka(sf::Mouse::getPosition(oknoAplikacji), Pionki);
  24. if(pionek != NULL && pionek->zwroc_kolor()==aktualny->kolor)
  25. {
  26.  
  27. czy_ruch= ruch_pionka(pionek,Pionki,kostka);
  28. if(czy_ruch==false)
  29. {
  30. }
  31. else
  32. {
  33.  
  34. czy_losowac=true;
  35. aktualny=zwroc_kolor_nastepnego(pionek->zwroc_kolor());
  36. }
  37.  
  38. }
  39. }
  40. }
  41.  
  42.  
  43.  
  44. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement