IGameMode.h file
Namespaces
- namespace Jazz2
- Root namespace of Jazz² Resurrection.
- namespace Jazz2::Actors
- Implementation of all objects.
- namespace Jazz2::Multiplayer
- Multiplayer-related classes, compiled only if
WITH_MULTIPLAYER. - namespace Jazz2::Multiplayer::GameModes
Classes
- struct Jazz2::Multiplayer::GameModes::RespawnDecision
- Result of IGameMode::
DecideRespawn. - struct Jazz2::Multiplayer::GameModes::GameEndResult
- Result of IGameMode::
CheckGameEnds. - class Jazz2::Multiplayer::GameModes::IGameModeContext
- Services a game mode needs from its host level handler.
- class Jazz2::Multiplayer::GameModes::IGameModeHUD
- Drawing surface a game mode uses to render its own part of the HUD.
- class Jazz2::Multiplayer::GameModes::IGameMode
- Rules of a single multiplayer game mode.
Enums
- enum class LevelExitAction { Ignore, ChangeToNextLevel, EndGameForInitiator, WarpToStartIncrementLap }
- What should happen when a player reaches the level exit, as decided by the game mode.
- enum class GameModeFontType { Small, Medium }
- Selects which HUD font a game mode draws text with.
- enum class GameModeHudIcon { Food, GemRed, GemGreen }
- A semantic HUD icon a game mode can draw; the HUD maps it to a concrete sprite.
Enum documentation
enum class LevelExitAction
What should happen when a player reaches the level exit, as decided by the game mode.
| Enumerators | |
|---|---|
| Ignore |
Ignore the exit (competitive modes without a level-exit win condition) |
| ChangeToNextLevel |
Proceed to the next level (Cooperation) |
| EndGameForInitiator |
End the round with the initiator as the winner (Treasure Hunt with enough treasure) |
| WarpToStartIncrementLap |
Warp the initiator back to the start and count a lap (Race) |
enum class GameModeFontType
Selects which HUD font a game mode draws text with.
| Enumerators | |
|---|---|
| Small |
Small font |
| Medium |
Medium font |
enum class GameModeHudIcon
A semantic HUD icon a game mode can draw; the HUD maps it to a concrete sprite.
| Enumerators | |
|---|---|
| Food |
Food / score pickup icon |
| GemRed |
Red gem (treasure not yet sufficient) |
| GemGreen |
Green gem (enough treasure collected) |