@Cards-TS
Preparing search index...
@cards-ts/core
GameStateController
Class GameStateController<Enum>
Keeps track of the state of the game
Type Parameters
Enum
extends
typeof
STANDARD_STATES
Hierarchy (
View Summary
)
AbstractController
<
GameState
<
Enum
>
,
{}
,
undefined
>
GameStateController
Index
Constructors
constructor
Properties
controllers
state
Methods
get
get
For
set
validate
Constructors
constructor
new
GameStateController
<
Enum
extends
{
END_GAME
:
"END_GAME"
;
START_GAME
:
"START_GAME"
}
,
>
(
state
:
Exclude
,
controllers
:
{}
,
)
:
GameStateController
<
Enum
>
Type Parameters
Enum
extends
{
END_GAME
:
"END_GAME"
;
START_GAME
:
"START_GAME"
}
Parameters
state
:
Exclude
controllers
:
{}
Returns
GameStateController
<
Enum
>
Properties
Protected
controllers
controllers
:
{}
Protected
state
state
:
Exclude
Methods
get
get
()
:
Exclude
<
keyof
Enum
,
number
|
symbol
>
Returns
Exclude
<
keyof
Enum
,
number
|
symbol
>
get
For
getFor
()
:
undefined
Returns
undefined
set
set
(
newState
:
Exclude
<
keyof
Enum
>
)
:
void
Parameters
newState
:
Exclude
<
keyof
Enum
>
Returns
void
validate
validate
()
:
void
Returns
void
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
controllers
state
Methods
get
get
For
set
validate
@Cards-TS
Loading...
Keeps track of the state of the game