Esempio n. 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
Esempio n. 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
Esempio n. 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
 }
Esempio n. 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
 }
Esempio n. 5
0
 override protected void Feed(Ant ant, int amount)//eating takes up a turn. It replenishes hunger to full
 {
 }