示例#1
0
 //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;
 }
示例#2
0
 public void TargetNearestMapObject(Point point)
 {
     this.Target = this.Map.GetNearestObject(point);
     this.UpdateView();
 }