Class: DiplomacyColors

DiplomacyColors()

This class determines the player colors to be displayed. If diplomacy color mode is disabled, it picks the player color chosen by the map or the players. If diplomacy color mode is enabled, it choses the player chosen color based on diplomatic stance. Observers that didn't chose a specific player perspective see each team in one representative color.

Constructor

new DiplomacyColors()

Source:

Members

diplomacyColorsChangeHandlers

Source:

displayedPlayerColors

Source:

displayedPlayerColors

Source:

displayedPlayerColors[0]

Source:

displayedPlayerColors[undefined]

Source:

displayedPlayerColors[undefined]

Source:

enabled

Source:

enabled

Source:

Methods

computeTeamColors()

Source:

getDiplomacyColor()

Source:

getPlayerColor()

Source:

isEnabled()

Source:

onCeasefireEnded()

Source:

onConfigChange()

Source:

onDiplomacyChange()

Source:

onPlayersFinished()

Source:

onPlayersInit()

Source:

registerDiplomacyColorsChangeHandler()

Source:

toggle()

Source:

updateDisplayedPlayerColors()

Updates the displayed colors of players in the simulation and GUI.
Source: