five-on-it / packages/sim/src/dogs / dogTick
Function: dogTick()
dogTick(
sim,eid,shots):void
Defined in: packages/sim/src/dogs.ts:893
One tick of a dog (the pedestrian system's, for the role dog): a link whose other end is gone is cut; dead, it lies; knocked down, it will bolt once up; gunfire (shots: where the last step's was, the pedestrian system's list) or a hit sets it bolting, a car coming at it jumping aside; else it does what a dog on a lead, or a stray, does. Writes its input.
Parameters
sim
eid
number
shots
readonly Point[]
Returns
void