Class DumbHunterPlan


  • public class DumbHunterPlan
    extends Plan
    Plan to move around in the environment and try to catch prey.
    • Field Detail

      • rand

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

      • DumbHunterPlan

        public DumbHunterPlan()
    • 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.