public static Path CreatePath() { Path P = new Path(); P.AddPoint(new Vector2d(45 + MapX * 1, 30 + 0 * MapY)); P.AddPoint(new Vector2d(45 + MapX * 1, 30 + 4 * MapY)); P.AddPoint(new Vector2d(45 + MapX * 3, 30 + 4 * MapY)); P.AddPoint(new Vector2d(45 + MapX * 3, 30 + 1 * MapY)); P.AddPoint(new Vector2d(45 + MapX * 5, 30 + 1 * MapY)); P.AddPoint(new Vector2d(45 + MapX * 5, 30 + 4 * MapY)); P.AddPoint(new Vector2d(45 + MapX * 7, 30 + 4 * MapY)); P.AddPoint(new Vector2d(45 + MapX * 7, 30 + 1 * MapY)); P.AddPoint(new Vector2d(45 + MapX * 9, 30 + 1 * MapY)); P.AddPoint(new Vector2d(45 + MapX * 9, 30 + 6 * MapY)); return P; }
public Enemy() { st = DateTime.Now; Elapsed = 0.0; P = Config.CreatePath(); }