Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (event.type == Event::MouseButtonReleased && event.key.code == Mouse::Left)
- {
- for (int a = 0; a <= 24; a++)
- {
- if (pozycja[a].adr_pion().getGlobalBounds().contains(mysz))
- {
- pion1[pom].adr_pion().setPosition(poz.x - x1, poz.y - y1);
- }
- }
- for (int a = 0; a <= 24; a++)
- {
- if (pozycja[a].adr_pion().getGlobalBounds().contains(mysz))
- {
- pion2[pom].adr_pion().setPosition(poz.x - x2, poz.y - y2);
- }
- ruch1 = false;
- ruch2 = false;
- }
- }
- if (ruch1)
- {
- pion1[pom].adr_pion().setPosition(poz.x - x1, poz.y - y1);
- }
- if (ruch2)
- {
- pion2[pom].adr_pion().setPosition(poz.x - x2, poz.y - y2);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement