Interface Sittable

All Known Subinterfaces:
Camel, Cat, Fox, Panda, Parrot, Wolf

public interface Sittable
An animal that can sit still.
  • Method Summary Link icon

    Modifier and Type
    Method
    Description
    boolean
    Checks if this animal is sitting
    void
    setSitting(boolean sitting)
    Sets if this animal is sitting.
  • Method Details Link icon

    • isSitting Link icon

      boolean isSitting()
      Checks if this animal is sitting
      Returns:
      true if sitting
    • setSitting Link icon

      void setSitting(boolean sitting)
      Sets if this animal is sitting. Will remove any path that the animal was following beforehand.
      Parameters:
      sitting - true if sitting