Jazz2::Multiplayer::GameModes::ExtendedLastRabbitStandingMode class

Extended Last Rabbit Standing game mode (free-for-all).

LastRabbitStandingMode where every roast also scores a point. When only one player is left, the points of the survivor are multiplied by 1.5, of the last player eliminated by 1.25 and of the one before by 1.125, and the most points win.

Base classes

class LastRabbitStandingMode
Last Rabbit Standing game mode (free-for-all).

Constructors, destructors, conversion operators

ExtendedLastRabbitStandingMode()

Public functions

auto GetMode() const -> MpGameMode override
Returns the game mode identifier.
void OnRoundStarted(IGameModeContext& ctx) override
Called when the round starts (after the countdown) to reset/initialize mode state.
void OnPlayerKilled(IGameModeContext& ctx, Actors::Player* victim, Actors::Player* killer) override
Called when a player dies, for mode-specific reactions (e.g. dropping a carried flag); kill/death counts are maintained by the host. killer may be nullptr (environmental death).
auto CheckGameEnds(IGameModeContext& ctx) -> GameEndResult override
Checks whether the round should end now, and who won.
auto OnTimeOut(IGameModeContext& ctx) -> GameEndResult override
Decides the round when its time runs out, if GameEndResult::ShouldEnd is false, the host decides by the score.
auto GetStateScore(const MpPlayerState& state) const -> std::uint32_t override
Returns the ranking metric stored in the specified state, a player with more ranks higher.
void OnDrawHUD(IGameModeContext& ctx, IGameModeHUD& hud, Actors::Player* player, const Rectf& view) override
Draws the mode-specific part of the HUD for the given player's split-screen view.
auto GetScoreboardLabel() const -> StringView override
Returns label of the mode-specific column of the scoreboard, which shows GetStateScore(), or empty.

Protected functions

void OnLateJoinerOut(IGameModeContext& ctx, Actors::Player* player) override
Called when a player who joined too late is taken out.