MatchState.ixx File
Match 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 | match |
|
Match state management for the helios engine. More... | |
| namespace | types |
|
Core types for match state management. More... | |
Description
Match state enumeration and bitmask operations.
File Listing
The file content with the documentation metadata removed is:
13export namespace helios::engine::mechanics::match::types {
18 using MatchStateType = uint16_t;
20 constexpr size_t MatchStateTypeSize = 16;
27 enum class MatchState : MatchStateType {
39 PlayerDefeated = 1 << 4,
48 [[nodiscard]] constexpr MatchState operator|(const MatchState lhs, const MatchState rhs) noexcept {
49 return static_cast<MatchState>(static_cast<MatchStateType>(lhs) | static_cast<MatchStateType>(rhs));
55 [[nodiscard]] constexpr MatchState operator&(const MatchState lhs, const MatchState rhs) noexcept {
56 return static_cast<MatchState>(static_cast<MatchStateType>(lhs) & static_cast<MatchStateType>(rhs));
66 [[nodiscard]] constexpr bool hasFlag(const MatchState mask, const MatchState flag) noexcept {
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.15.0.