示例#1
0
文件: Ant.cs 项目: nanexcool/AntFarm
 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
文件: Ant.cs 项目: nanexcool/AntFarm
 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
文件: Egg.cs 项目: nanexcool/AntFarm
 override protected void Feed(Ant ant, int amount)//eating takes up a turn. It replenishes hunger to full
 {
 }