//public bool HasColoniseOrder() //{ // if (Client.Instance.Player.Orders.GetColoniseOrder(this) != null) // { // return true; // } // else // { // return false; // } //} public MapObject Clone() { MapObject obj = new MapObject(); obj.Name = this.Name; obj.ID = this.ID; obj.Image = this.Image; foreach (Component component in this.Components) { obj.Components.Add(component); } return obj; }
public void TargetNearestMapObject(Point point) { this.Target = this.Map.GetNearestObject(point); this.UpdateView(); }