mwg API
Reference
Overview
Examples
Getting started
Design
FAQ
Preparing search index...
Simulation
TurnRules
Interface TurnRules<Actor>
interface
TurnRules
<
Actor
>
{
scheduler
:
ScheduledTurns
<
Actor
>
;
act
(
actor
:
Actor
)
:
number
|
null
;
finished
()
:
boolean
;
needsInput
(
actor
:
Actor
)
:
boolean
;
}
Type Parameters
Actor
Index
Properties
scheduler
Methods
act
finished
needs
Input
Properties
scheduler
scheduler
:
ScheduledTurns
<
Actor
>
Methods
act
act
(
actor
:
Actor
)
:
number
|
null
Return the cost to spend on the current queue entry, or null if no entry should be charged.
Parameters
actor
:
Actor
Returns
number
|
null
finished
finished
()
:
boolean
Returns
boolean
needs
Input
needsInput
(
actor
:
Actor
)
:
boolean
Parameters
actor
:
Actor
Returns
boolean
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
On This Page
Properties
scheduler
Methods
act
finished
needs
Input
Reference
Overview
Examples
Getting started
Design
FAQ
mwg API
Loading...
Return the cost to spend on the current queue entry, or null if no entry should be charged.