Esempio n. 1
0
 /// <summary>
 /// Draw a line on the screen
 /// </summary>
 /// <param name="p1">start of the line</param>
 /// <param name="p2">end of the line</param>
 public static void DrawLine(SnapsCoordinate p1, SnapsCoordinate p2)
 {
     manager.DrawLine(p1, p2);
 }
Esempio n. 2
0
 /// <summary>
 /// Set the position of the top left hand corner of the sprite.
 /// </summary>
 /// <param name="pos">new position of the sprite</param>
 public void SetPosition(SnapsCoordinate pos)
 {
     X = pos.XValue;
     Y = pos.YValue;
 }
Esempio n. 3
0
 /// <summary>
 /// Draw a solid dot on the screen
 /// </summary>
 /// <param name="pos">position of the dot</param>
 /// <param name="width">width of the dot in pixels</param>
 public static void DrawDot(SnapsCoordinate pos, int width)
 {
     manager.DrawDot(pos, width);
 }