five-on-it / apps/client/src/gui/phone-blocks / PhoneInput
Interface: PhoneInput
Defined in: apps/client/src/gui/phone-blocks.ts:53
What the phone's panel is built from, and what its controls do.
Properties
cops?
optionalcops?:object
Defined in: apps/client/src/gui/phone-blocks.ts:68
The cops' frame: the Dispatch app's budget and orders, the bounty board.
bounties
bounties:
object
Whether their bounty board is on, and the room's bounties when it is.
bounties.list
list:
object[]
bounties.on
on:
boolean
cop?
optionalcop?:object
Their dispatch, when they play the police.
cop.budget
budget:
number=count
The team's budget now and at most (points).
cop.costs
costs:
number[]
What each order costs (points), in COP_ORDERS' order.
cop.cuff?
optionalcuff?:object
The cuffs under way: the robber's client id and how far along (0 to 1).
cop.cuff.client
client:
number
cop.cuff.progress
progress:
number
cop.dispatcher
dispatcher:
boolean
Whether they took the Dispatcher's role (P2: orders at a point of the map).
cop.last?
optionallast?:object
The answer to the cop's last order, and its number (one more each order).
cop.last.answer
answer:
"rate"|"cooldown"|"failed"|"budget"|"ok"|"notCop"|"dispatcherOnly"|"noSuspect"|"noRoad"|"noBuilding"|"room"
cop.last.n
n:
number=count
cop.last.order
order:
"swat"|"roadblock"|"drone"|"cruiser"
cop.max
max:
number=count
cop.ready
ready:
number[]
The seconds before each order is the team's again, in COP_ORDERS' order.
cop.suspects
suspects:
object[]
The robbers the police know of: where they last placed them (m), their stars, how long ago (s).
cop.units
units:
object[]
The backup the team called that is still out: what, where (m), its seconds left.
transports
transports:
object[]
The transports they ride or could stop.
type
type:
"cops"
form
form: (
field,value) =>void
Defined in: apps/client/src/gui/phone-blocks.ts:73
A field of the screen's form changed.
Parameters
field
string
value
string
Returns
void
jobs?
optionaljobs?:JobsView
Defined in: apps/client/src/gui/phone-blocks.ts:60
The Jobs app's view, in the city (none in a run's room: no Jobs app there).
phone
phone: {
apps:object[];calls:object[];camera?: {note?:"subject"|"missed"|"away"|"saved";shots:number; };contacts:object[];has:boolean;messages:object[];screen?: {app:string;buttons:object[];form:object[];kind:"app"|"keypad";name:string;note?:string;noteKey?:"wrongCode"|"nothing";source:"phone"|"world";text:string;title?:string; };talk?: {choices:object[];dialogue:string;goesOn:boolean;line?:string;note?:string;speaker?:string;state:"ringing"|"talking";via:"call"|"face";with:string; };type:"phone";unread:number;waypoint?: {label?:string;x:number;z:number; }; } |undefined
Defined in: apps/client/src/gui/phone-blocks.ts:55
What the server says of the phone; none: the player has none, but the radio.
police?
optionalpolice?:PoliceCallView
Defined in: apps/client/src/gui/phone-blocks.ts:64
The negotiator's call, while one is on.
press
press: (
id) =>void
Defined in: apps/client/src/gui/phone-blocks.ts:71
Presses a button by its id (what it does is looked up when it is pressed).
Parameters
id
string
Returns
void
radio?
optionalradio?:PhoneRadio&object
Defined in: apps/client/src/gui/phone-blocks.ts:58
The radio for its page: the stations, the one tuned, and what plays (said on it).
Type Declaration
now
now:
string|undefined
scanner?
optionalscanner?:ScannerView
Defined in: apps/client/src/gui/phone-blocks.ts:62
The police scanner's page, when the player carries one.
submit
submit: () =>
void
Defined in: apps/client/src/gui/phone-blocks.ts:75
Enter in a field: the screen's first button.
Returns
void
t
t:
Translate
Defined in: apps/client/src/gui/phone-blocks.ts:69
tech?
optionaltech?:object
Defined in: apps/client/src/gui/phone-blocks.ts:66
The player's own tech, for the Tech page.
backdoor
backdoor:
boolean
battery
battery:
number
cruiser
cruiser:
number
fried
fried:
boolean
hacking
hacking:
number
jammer
jammer:
boolean
jamming
jamming:
boolean
lawyer
lawyer:
number
loop
loop:
number
scout
scout:
number
smoked
smoked:
boolean
tipped
tipped:
boolean
traffic
traffic:
number
ui
ui:
PhoneUi
Defined in: apps/client/src/gui/phone-blocks.ts:56