Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- switch (this.smer)
- {
- case direction.up:
- g.DrawLine(pero, this.Width / 2, 0,this.Width / 2, this.Height);
- g.DrawLine(pero, 0, this.Height / 2, this.Width / 2, 0);
- g.DrawLine(pero, this.Width, this.Height / 2, this.Width / 2, 0);
- break;
- case direction.down:
- g.DrawLine(pero, this.Width / 2, 0, this.Width / 2, this.Height);
- g.DrawLine(pero, 0, this.Height / 2, this.Width / 2, this.Height);
- g.DrawLine(pero, this.Width, this.Height / 2, this.Width / 2, this.Height);
- break;
- case direction.left:
- g.DrawLine(pero, 0, this.Height / 2, this.Width, this.Height / 2);
- g.DrawLine(pero, 0, this.Height / 2, this.Width / 2, 0);
- g.DrawLine(pero, 0, this.Height / 2, this.Width / 2, this.Height);
- break;
- case direction.right:
- g.DrawLine(pero, 0, this.Height / 2, this.Width, this.Height / 2);
- g.DrawLine(pero, this.Width, this.Height / 2, this.Width / 2, 0);
- g.DrawLine(pero, this.Width, this.Height / 2, this.Width / 2, this.Height);
- break;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement