Skip to content

five-on-it / packages/sim/src/dogs / isOnLead

Function: isOnLead() ​

isOnLead(sim, dog): boolean

Defined in: packages/sim/src/dogs.ts:260

Whether a dog is on its lead: the flag, and a walker at the other end of it.

Parameters ​

sim ​

SimWorld

dog ​

number

Returns ​

boolean