/// <summary> /// Create a new Torpedo /// </summary> /// <param name="warhead">Warhead in the Torpedo</param> /// <param name="system">Guidance system in the Torpedo</param> public Torpedo(Warhead warhead, Guidance system = Guidance.Standard) { this.Warhead = warhead; if (this.Warhead == Warhead.Void || this.Warhead == Warhead.Leech) this.GuidanceSystem = Guidance.Seeking; else this.GuidanceSystem = system; }
public static void DrawLine(this Graphics g, Pen pen, Guidance.Graphing.LineF line) { g.DrawLine(pen, line.Point0, line.Point1); }