| 3220 | } |
| 3221 | |
| 3222 | bool Creature::needsToEat(bool forced) const |
| 3223 | { |
| 3224 | if (forced && getHunger() < 5.0) |
| 3225 | return false; |
| 3226 | |
| 3227 | if (!forced && (getHunger() <= Random::Double(0.0, 15.0))) |
| 3228 | return false; |
| 3229 | |
| 3230 | return true; |
| 3231 | } |
| 3232 | |
| 3233 | void Creature::changeSeat(Seat* newSeat) |
| 3234 | { |
no test coverage detected