/// <summary> /// Nyilvántartásba vesz egy cukorhegyet /// </summary> /// <param name="UnderlyingSugar">A követendő cukorhegy</param> public Sugar(AntMe.English.Sugar UnderlyingSugar) { this.Type = ItemType.Sugar; this.UnderlyingSugar = UnderlyingSugar; if (BaseList.Contains(UnderlyingSugar) || UnderlyingSugar.Amount <= 0) { return; } List.Add(this); }
/// <summary> /// Will be fired when the ant discovers a sugarhill /// </summary> /// <param name="sugar">discovered sugarhill</param> public virtual void Spots(Sugar sugar) { }
/// <summary> /// Will be fired when the ant reaches the targeted sugarhill /// </summary> /// <param name="sugar">targeted sugarhill</param> public virtual void TargetReached(Sugar sugar) { }
/// <summary> /// If the ant’s destination is a mound of sugar, this method is called as soon /// as the ant has reached its destination. It means that the ant is now near /// enough to its destination/target to interact with it. /// <see href="http://wiki.antme.net/en/API1:DestinationReached(Sugar)">Read more</see> /// </summary> /// <param name="sugar">reached sugar</param> public virtual void DestinationReached(Sugar sugar) { }