Class Fox.SleepGoal

Enclosing class:
Fox

class Fox.SleepGoal extends Fox.FoxBehaviorGoal
  • Field Details

    • WAIT_TIME_BEFORE_SLEEP

      private static final int WAIT_TIME_BEFORE_SLEEP
      See Also:
      Constant Field Values
    • countdown

      private int countdown
  • Constructor Details

    • SleepGoal

      public SleepGoal()
  • Method Details

    • canUse

      public boolean canUse()
      Specified by:
      canUse in class Goal
    • canContinueToUse

      public boolean canContinueToUse()
      Overrides:
      canContinueToUse in class Goal
    • canSleep

      private boolean canSleep()
    • stop

      public void stop()
      Overrides:
      stop in class Goal
    • start

      public void start()
      Overrides:
      start in class Goal