Class EatFoodPlan


  • public class EatFoodPlan
    extends Plan
    Try to run away from a hunter.
    • Constructor Detail

      • EatFoodPlan

        public EatFoodPlan()
    • Method Detail

      • body

        public void body()
        The plan body.
        Specified by:
        body in class Plan
      • failed

        public void failed()
        When move to location or eat food finally failed, add food to forbidden food.
        Overrides:
        failed in class Plan