GameState.ixx File
Game state enumeration and bitmask operations. More...
Included Headers
#include <cstdint>
Namespaces Index
| namespace | helios |
| namespace | engine |
|
Main engine module aggregating core infrastructure and game systems. More... | |
| namespace | mechanics |
|
High-level gameplay systems and components for game logic. More... | |
| namespace | gamestate |
|
Game state management for the helios engine. More... | |
| namespace | types |
|
Core types for game state management. More... | |
Description
Game state enumeration and bitmask operations.
File Listing
The file content with the documentation metadata removed is:
13export namespace helios::engine::mechanics::gamestate::types {
18 using GameStateType = uint16_t;
20 constexpr size_t GameStateTypeSize = 16;
27 enum class GameState : GameStateType {
39 MatchReady = 1 << 4,
54 * @brief Bitmask representing any running state, i.e. any state except Booting, Booted, Warmup and Shutdown.
65 return static_cast<GameState>(static_cast<GameStateType>(lhs) | static_cast<GameStateType>(rhs));
72 return static_cast<GameState>(static_cast<GameStateType>(lhs) & static_cast<GameStateType>(rhs));
79 return static_cast<GameState>((~static_cast<GameStateType>(lhs)) & static_cast<GameStateType>(GameState::Any));
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.15.0.