接口 Sittable

所有已知子接口:
Camel, Cat, Fox, Panda, Parrot, Wolf

public interface Sittable
An animal that can sit still.
  • 方法概要

    修饰符和类型
    方法
    说明
    boolean
    Checks if this animal is sitting
    void
    setSitting(boolean sitting)
    Sets if this animal is sitting.
  • 方法详细资料

    • isSitting

      boolean isSitting()
      Checks if this animal is sitting
      返回:
      true if sitting
    • setSitting

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