Preparing search index...
The search index is not available
open-source-election-game
open-source-election-game
controllers/ScenarioController
default
Class default
Index
Constructors
constructor
Properties
candidate
Controllers
global
Modifiers
issue
Scores
model
questions
running
Mate
Controllers
state
Controllers
theme
Methods
change
Candidate
Global
Modifier
get
Candidate
By
Candidate
Id
get
Candidates
get
Global
Modifier
For
Candidate
get
Issues
get
Number
Of
Questions
get
Questions
get
Running
Mate
Controller
By
Id
get
State
Controller
By
State
Id
get
States
is
Candidate
Running
Mate
load
Scenario
make
Empty
Scenario
Model
make
Empty
Theme
Constructors
constructor
new
default
()
:
default
Returns
default
Properties
candidate
Controllers
candidateControllers
:
default
[]
= []
global
Modifiers
globalModifiers
:
Map
<
number
,
number
>
= ...
issue
Scores
issueScores
:
default
= ...
model
model
:
default
= ...
questions
questions
:
default
[]
= []
running
Mate
Controllers
runningMateControllers
:
default
[]
= []
state
Controllers
stateControllers
:
default
[]
= []
theme
theme
:
default
= ...
Methods
change
Candidate
Global
Modifier
changeCandidateGlobalModifier
(
candidateId
:
number
,
amount
:
number
)
:
void
Parameters
candidateId
:
number
amount
:
number
Returns
void
get
Candidate
By
Candidate
Id
getCandidateByCandidateId
(
candidateId
:
number
)
:
default
Parameters
candidateId
:
number
Returns
default
get
Candidates
getCandidates
()
:
default
[]
Returns
default
[]
get
Global
Modifier
For
Candidate
getGlobalModifierForCandidate
(
candidateId
:
number
)
:
number
Parameters
candidateId
:
number
Returns
number
get
Issues
getIssues
()
:
default
[]
Returns
default
[]
get
Number
Of
Questions
getNumberOfQuestions
()
:
number
Returns
number
get
Questions
getQuestions
()
:
default
[]
Returns
default
[]
get
Running
Mate
Controller
By
Id
getRunningMateControllerById
(
id
:
number
)
:
undefined
|
default
Parameters
id
:
number
Returns
undefined
|
default
get
State
Controller
By
State
Id
getStateControllerByStateId
(
stateId
:
number
)
:
null
|
default
Parameters
stateId
:
number
Returns
null
|
default
get
States
getStates
()
:
default
[]
Returns
default
[]
is
Candidate
Running
Mate
isCandidateRunningMate
(
engine
:
Engine
,
candidateId
:
number
)
:
boolean
Parameters
engine
:
Engine
candidateId
:
number
Returns
boolean
load
Scenario
loadScenario
(
engine
:
Engine
,
model
:
default
,
sideIndex
:
number
,
isShuffled
:
boolean
,
)
:
void
Parameters
engine
:
Engine
model
:
default
sideIndex
:
number
isShuffled
:
boolean
Returns
void
make
Empty
Scenario
Model
makeEmptyScenarioModel
()
:
default
Returns
default
make
Empty
Theme
makeEmptyTheme
()
:
default
Returns
default
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
candidate
Controllers
global
Modifiers
issue
Scores
model
questions
running
Mate
Controllers
state
Controllers
theme
Methods
change
Candidate
Global
Modifier
get
Candidate
By
Candidate
Id
get
Candidates
get
Global
Modifier
For
Candidate
get
Issues
get
Number
Of
Questions
get
Questions
get
Running
Mate
Controller
By
Id
get
State
Controller
By
State
Id
get
States
is
Candidate
Running
Mate
load
Scenario
make
Empty
Scenario
Model
make
Empty
Theme
open-source-election-game
Loading...