接口 Sittable
public interface Sittable
An animal that can sit still.
-
方法概要
修饰符和类型方法说明boolean
Checks if this animal is sittingvoid
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
-