Preparing search index...
The search index is not available
open-source-election-game
open-source-election-game
controllers/StateController
default
Class default
Index
Constructors
constructor
Properties
issue
Scores
model
opinions
state
Modifiers
Methods
add
Candidates
change
Candidate
State
Modifier
get
Candidate
State
Modifier
get
Highest
Candidate
get
Id
get
Opinion
For
Candidate
get
Opinion
String
get
State
Color
print
Opinion
update
visit
Constructors
constructor
new
default
(
scenario
:
default
,
model
:
default
)
:
default
Parameters
scenario
:
default
model
:
default
Returns
default
Properties
issue
Scores
issueScores
:
default
model
model
:
default
opinions
opinions
:
Map
<
number
,
number
>
state
Modifiers
stateModifiers
:
Map
<
number
,
number
>
Methods
add
Candidates
addCandidates
(
candidates
:
default
[]
)
:
void
Parameters
candidates
:
default
[]
Returns
void
change
Candidate
State
Modifier
changeCandidateStateModifier
(
candidateId
:
number
,
amount
:
number
)
:
void
Parameters
candidateId
:
number
amount
:
number
Returns
void
get
Candidate
State
Modifier
getCandidateStateModifier
(
candidateId
:
number
)
:
number
Parameters
candidateId
:
number
Returns
number
get
Highest
Candidate
getHighestCandidate
(
engine
:
Engine
)
:
null
|
default
Parameters
engine
:
Engine
Returns
null
|
default
get
Id
getId
()
:
number
Returns
number
get
Opinion
For
Candidate
getOpinionForCandidate
(
candidateId
:
number
)
:
number
Parameters
candidateId
:
number
Returns
number
get
Opinion
String
getOpinionString
()
:
string
Returns
string
get
State
Color
getStateColor
(
engine
:
Engine
,
isHovered
:
boolean
)
:
string
Parameters
engine
:
Engine
isHovered
:
boolean
Returns
string
print
Opinion
printOpinion
()
:
void
Returns
void
update
update
(
engine
:
Engine
,
rng
:
number
,
runningMateMap
:
Map
<
number
,
number
>
)
:
void
Parameters
engine
:
Engine
rng
:
number
runningMateMap
:
Map
<
number
,
number
>
Returns
void
visit
visit
(
candidateId
:
number
,
engine
:
Engine
)
:
void
Parameters
candidateId
:
number
engine
:
Engine
Returns
void
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
issue
Scores
model
opinions
state
Modifiers
Methods
add
Candidates
change
Candidate
State
Modifier
get
Candidate
State
Modifier
get
Highest
Candidate
get
Id
get
Opinion
For
Candidate
get
Opinion
String
get
State
Color
print
Opinion
update
visit
open-source-election-game
Loading...