/// <summary>
/// Draw method.
/// </summary>
/// <param name="g">Graphics context.</param>
public override void Draw(Graphics g)
{
g.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.AntiAlias;
g.FillEllipse(LcogBrushes.Planet, this.X, this.Y, 2, 2);
if (this.Faction == null)
{
}
else if (this.Faction == Client.Instance.Player.Faction)
{
g.DrawEllipse(LcogPens.OwnPlanet, this.X - 2, this.Y - 2, 6, 6);
}
else if (this.Faction != Client.Instance.Player.Faction && this.Faction.Relations == "neutral")
{
g.DrawEllipse(LcogPens.NeutralPlanet, this.X - 2, this.Y - 2, 6, 6);
}
else
{
g.DrawEllipse(LcogPens.HostilePlanet, this.X - 2, this.Y - 2, 6, 6);
}
if (this == Client.Instance.Selected)
{
g.DrawEllipse(LcogPens.Selected, this.X - 2, this.Y - 2, 6, 6);
}
}