Пример #1
0
 protected abstract void Feed(Ant ant, int amount);                                                           //eating takes up a turn. It replenishes hunger to full
 protected abstract void PickUp(Ant ant);                                                                     //the ant picks up and object. Picking up an object means that the object moves when this ant does
Пример #2
0
 protected abstract void Eat();                                                                               //eating takes up a turn. It replenishes hunger to full
 protected abstract void Feed(Ant ant, int amount);                                                           //eating takes up a turn. It replenishes hunger to full
Пример #3
0
 override protected void Feed(Ant ant, int amount)//eating takes up a turn. It replenishes hunger to full
 {
     StateProperty = State.Feeding;
     //take food from carrying amount and add it to the hunger of the ant being fed
 }
Пример #4
0
 override protected void PickUp(Ant ant)//the ant picks up and object. Picking up an object means that the object moves when this ant does
 {
     //not used by queen
 }
Пример #5
0
 override protected void Feed(Ant ant, int amount)//eating takes up a turn. It replenishes hunger to full
 {
 }