Exemplo n.º 1
0
 /// <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);
 }
Exemplo n.º 2
0
 /// <summary>
 /// Will be fired when the ant discovers a sugarhill
 /// </summary>
 /// <param name="sugar">discovered sugarhill</param>
 public virtual void Spots(Sugar sugar)
 {
 }
Exemplo n.º 3
0
 /// <summary>
 /// Will be fired when the ant reaches the targeted sugarhill
 /// </summary>
 /// <param name="sugar">targeted sugarhill</param>
 public virtual void TargetReached(Sugar sugar)
 {
 }
Exemplo n.º 4
0
 /// <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)
 {
 }