Jazz2::Multiplayer::TeamBattleMode class

Team Battle game mode.

Like BattleMode, but players are split into teams. The per-player kill/death and respawn rules are identical (inherited), so only the win condition differs: the round is won by the first team to reach the kill target (its members' kills combined) or, with elimination enabled, by the last team that still has a member within the death limit.

Base classes

class BattleMode
Battle game mode (free-for-all).

Public functions

auto GetMode() const -> MpGameMode override
Returns the game mode identifier.
auto IsTeamBased() const -> bool override
Returns whether players are split into teams.
auto CheckGameEnds(IGameModeContext& ctx) -> GameEndResult override
Checks whether the round should end now, and who won.