Class: EndGameManager

EndGameManager()

new EndGameManager()

Source:

Members

Schema

Source:

alliedVictory

Source:

alliedVictory

Source:

endlessGame

Source:

endlessGame

Source:

gameSettings

Source:

gameSettings

Source:

lastManStandingMessage

Source:

lastManStandingMessage

Source:

skipAlliedVictoryCheck

Source:

skipAlliedVictoryCheck

Source:

skipAlliedVictoryCheck

Source:

skipAlliedVictoryCheck

Source:

Methods

AlliedVictoryCheck()

Source:

GetAlliedVictory()

Source:

GetGameSettings()

Source:

GetVictoryConditions()

Source:

Init()

Source:

MarkPlayerAndAlliesAsWon(playerID, victoryReason)

Sets the given player (and the allies if allied victory is enabled) as a winner.
Parameters:
Name Type Description
playerID number The player that should win.
victoryReason function Function that maps from number to plural string, for example n => markForPluralTranslation( "%(lastPlayer)s has won (game mode).", "%(players)s and %(lastPlayer)s have won (game mode).", n));
Source:

MarkPlayersAsWon(winningPlayers, victoryReason)

Sets the given players as won and others as defeated.
Parameters:
Name Type Description
winningPlayers array The players that should win.
victoryReason function Function that maps from number to plural string, for example n => markForPluralTranslation( "%(lastPlayer)s has won (game mode).", "%(players)s and %(lastPlayer)s have won (game mode).", n));
Source:

OnGlobalDiplomacyChanged()

Source:

OnGlobalPlayerDefeated()

Source:

OnInitGame()

Source:

SetAlliedVictory()

Source:

SetGameSettings()

Source: