(actor: ActorState, now: number)
| 213 | |
| 214 | /** Ob dieser Akteur gerade im Bild steht. */ |
| 215 | export function isActive(actor: ActorState, now: number): boolean { |
| 216 | return now - actor.lastTs <= ACTIVE_WINDOW_MS; |
| 217 | } |
| 218 | |
| 219 | /** Die Akteure, die gerade im Bild stehen, neueste Bewegung zuerst. */ |
| 220 | export function activeActors(state: AgentsState, now: number): ActorState[] { |
no outgoing calls
no test coverage detected