five-on-it / packages/ai/src/police-tech-state / HackedLight
Interface: HackedLight
Defined in: packages/ai/src/police-tech-state.ts:124
A junction a player hacked (R25): red for the police behind them, or green on their way.
Properties
client
client:
number
Defined in: packages/ai/src/police-tech-state.ts:126
The client id of the player who hacked it.
node
node:
number
Defined in: packages/ai/src/police-tech-state.ts:130
Its node in the road graph.
red
red:
boolean
Defined in: packages/ai/src/police-tech-state.ts:132
Red for everyone (the police too), or green for the approach the player comes by.
signal
signal:
number
Defined in: packages/ai/src/police-tech-state.ts:128
The junction's index in the level's signals.
until
until:
number
Defined in: packages/ai/src/police-tech-state.ts:134
The tick its lights go back to their plan.