Class FoxEntity.SleepGoal

Enclosing class:
FoxEntity

class FoxEntity.SleepGoal extends FoxEntity.BaseGoal
  • Field Details

    • 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