GameResult

Static members

Member

Description

hasResult

Returns true if a game result is available.

Static methods

Method

Description

EndGame()

Ends the game with the currently set result.

EndGameAllowContinue()

Ends the game with the currently set result.

GetCampaignArmiesChange(team)

The change in campaign armies from the battle (usually negative!)

GetRemainingCampaignArmies(team)

The remaining campaign armies from the battle

GetResultDetails()

GetWinningTeam()

SetRemainingCampaignArmies(team, armies)

Set number of remaining campaign armies

SetStandardCampaignVictory(winningTeam, blueRemainingArmies, redRemainingArmies)

Sets winning team and remaining conquest armies.

SetStandardVictory(winningTeam)

Sets winning team for game modes that do not support conquest armies

Details

class GameResult
static const bool hasResult

Returns true if a game result is available. This value is set to false every time a campaign is started or loaded

static void EndGame()

Ends the game with the currently set result.

static void EndGameAllowContinue()

Ends the game with the currently set result.Allows the game to continue when neverending battles is enabled and playing in instant action mode

static int GetCampaignArmiesChange(Team team)

The change in campaign armies from the battle (usually negative!)

static int GetRemainingCampaignArmies(Team team)

The remaining campaign armies from the battle

static ConfigurationData GetResultDetails()
static Team GetWinningTeam()
static void SetRemainingCampaignArmies(Team team, int armies)

Set number of remaining campaign armies

static void SetStandardCampaignVictory(Team winningTeam, int blueRemainingArmies, int redRemainingArmies)

Sets winning team and remaining conquest armies.

static void SetStandardVictory(Team winningTeam)

Sets winning team for game modes that do not support conquest armies