Skip to content

five-on-it / apps/client/src/renderer/anim-state / roleOf

Function: roleOf() ​

roleOf(e): Role

Defined in: apps/client/src/renderer/anim-state.ts:328

Who a person of a snapshot is: a guard (it has an alert; guards are enemies too), an enemy chaser, a police officer, another player, a contact (a character's role), else a pedestrian's role. A dog (the role dog) is no person and has no figure: asked anyway, it is a civilian.

Parameters ​

e ​

alert ​

number

cls ​

number

hostile ​

boolean

owner ​

number

police ​

boolean

Returns ​

Role