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