Board Game Engine
Preparing search index...
The search index is not available
bge-core
bge-core
PlayerStateMachine
Class PlayerStateMachine<TPlayer>
Abstract
Type Parameters
TPlayer
extends
Player
=
Player
Hierarchy
StateMachine
PlayerStateMachine
Index
Constructors
constructor
Properties
player
prompt
Accessors
can
Restart
can
Undo
Methods
next
on
Run
State
push
Undo
run
skip
undo
Constructors
constructor
new
Player
State
Machine
<
TPlayer
>
(
player
)
:
PlayerStateMachine
<
TPlayer
>
Type Parameters
TPlayer
extends
Player
=
Player
Parameters
player
:
TPlayer
Returns
PlayerStateMachine
<
TPlayer
>
Properties
Readonly
player
player
:
TPlayer
Readonly
prompt
prompt
:
PromptHelper
Accessors
Protected
can
Restart
get
canRestart
(
)
:
boolean
Returns
boolean
Protected
can
Undo
get
canUndo
(
)
:
boolean
Returns
boolean
Methods
next
next
<
TFunc
>
(
func
,
...
args
)
:
NextState
Type Parameters
TFunc
extends
(
(
this
,
...
args
)
=>
StatePromise
)
Parameters
func
:
TFunc
Rest
...
args
:
Parameters
<
TFunc
>
Returns
NextState
Protected
on
Run
State
on
Run
State
(
state
)
:
Promise
<
IRunStateResult
>
Parameters
state
:
NextState
Returns
Promise
<
IRunStateResult
>
Protected
push
Undo
push
Undo
(
action
)
:
void
Parameters
action
:
(
(
)
=>
void
)
(
)
:
void
Returns
void
Returns
void
run
run
(
...
states
)
:
Promise
<
void
>
Parameters
Rest
...
states
:
(
(
this
)
=>
StatePromise
)
[]
Returns
Promise
<
void
>
Protected
skip
skip
(
then
?
)
:
StatePromise
Parameters
Optional
then
:
NextState
Returns
StatePromise
undo
undo
(
)
:
boolean
Returns
boolean
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
constructor
player
prompt
can
Restart
can
Undo
next
on
Run
State
push
Undo
run
skip
undo
bge-
core
Arrangements
Alignment
Arrangement
Linear
Arrangement
Pile
Arrangement
Radial
Arrangement
Rectangular
Arrangement
Scatter
Arrangement
IArrangement
Options
ILinear
Arrangement
Options
IPile
Arrangement
Options
IRadial
Arrangement
Options
IRectangular
Arrangement
Options
IScatter
Arrangement
Options
Async
All
Group
Any
Group
Delay
Promise
Group
delay
all
any
any
Exclusive
Core
Game
Helpers
Player
Random
IGame
IGame
Config
IGame
Result
IPlayer
Config
IRun
Config
API_
VERSION
SPECTATOR
game
random
Decorators
display
hexagon
Card
no
Undo
rectangle
Card
skip
Undo
Display
Outline
Style
views
Color
Display
Container
Image
Render
Context
IDisplay
Options
Display
Child
Display
Options
Func
Display
Parent
display
Game Objects
Card
Orientation
Card
Shape
Linear
Container
Kind
Card
Card
Container
Card
Face
Deck
Game
Object
Hand
Linear
Card
Container
Token
Zone
ICard
Dimensions
ICard
Receiver
IDeck
Options
IHand
Options
ILinear
Container
Card
IPolygon
Token
Options
ISvg
Token
Options
IToken
Options
Card
Comparer
hexagon
Card
rectangle
Card
Geometry
Bounds
Rotation
Vector3
ITransform
Messages
Button
Message
Bar
Message
Row
Text
Input
IText
Embeddable
Message
Message
Embed
message
Objects
Die
IDie
Options
Other
IDie
Face
Card
Type
svg
Card
Prompts
Prompt
Helper
IButton
Click
Options
IClick
Any
Options
IClick
Options
IObject
Click
Options
IPrompt
Options
IReturn
Click
Options
IText
Input
Options
Clickable
Replays
Replay
Event
Type
Replay
IDelay
Complete
Event
IPrompt
Response
Event
IReplay
Data
Replay
Event
replay
Settings
ICheck
Box
Setting
ISelect
Option
ISelect
Setting
ISetting
ISettings
Setting
Singletons
delay
game
message
random
replay
State Machines
Next
State
Player
State
Machine
State
Machine
IRun
State
Result
State
Func
State
Promise
no
Undo
skip
Undo
Generated using
TypeDoc