Class DumbPreyPlan


  • public class DumbPreyPlan
    extends Plan
    Plan to move around in the environment and try to eat food.
    • Field Detail

      • rand

        protected java.util.Random rand
        Random number generator.
    • Constructor Detail

      • DumbPreyPlan

        public DumbPreyPlan()
    • Method Detail

      • body

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

        protected void move​(java.lang.String direction)
        Move towards a direction.
      • eat

        protected void eat​(WorldObject object)
        Eat an object.