Advertisement
Guest User

Untitled

a guest
Jan 20th, 2020
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.33 KB | None | 0 0
  1. switch (this.smer)
  2. {
  3. case direction.up:
  4. g.DrawLine(pero, this.Width / 2, 0,this.Width / 2, this.Height);
  5. g.DrawLine(pero, 0, this.Height / 2, this.Width / 2, 0);
  6. g.DrawLine(pero, this.Width, this.Height / 2, this.Width / 2, 0);
  7. break;
  8. case direction.down:
  9. g.DrawLine(pero, this.Width / 2, 0, this.Width / 2, this.Height);
  10. g.DrawLine(pero, 0, this.Height / 2, this.Width / 2, this.Height);
  11. g.DrawLine(pero, this.Width, this.Height / 2, this.Width / 2, this.Height);
  12. break;
  13. case direction.left:
  14. g.DrawLine(pero, 0, this.Height / 2, this.Width, this.Height / 2);
  15. g.DrawLine(pero, 0, this.Height / 2, this.Width / 2, 0);
  16. g.DrawLine(pero, 0, this.Height / 2, this.Width / 2, this.Height);
  17. break;
  18. case direction.right:
  19. g.DrawLine(pero, 0, this.Height / 2, this.Width, this.Height / 2);
  20. g.DrawLine(pero, this.Width, this.Height / 2, this.Width / 2, 0);
  21. g.DrawLine(pero, this.Width, this.Height / 2, this.Width / 2, this.Height);
  22. break;
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement