|
|
Bomberman Multiplayer
Authoritative multiplayer networking layer for Bomberman.
|
Shared multiplayer powerup types and round-setup tuning. More...
Go to the source code of this file.
Namespaces | |
| namespace | bomberman::sim |
| Shared simulation primitives and constants used by both the client and the authoritative server. | |
Enumerations | |
| enum class | bomberman::sim::PowerupType : uint8_t { SpeedBoost = 0 , Invincibility = 1 , BombRangeBoost = 2 , MaxBombsBoost = 3 } |
| Supported temporary multiplayer powerup effects. | |
Functions | |
| constexpr bool | bomberman::sim::isValidPowerupType (const uint8_t rawType) |
| Returns true when a raw byte encodes one of the defined powerup types. | |
| constexpr std::string_view | bomberman::sim::powerupTypeName (const PowerupType type) |
| Returns a human-readable name for one powerup type. | |
| constexpr std::size_t | bomberman::sim::powerupTypeIndex (const PowerupType type) |
| Returns the stable array index used for per-type powerup stats. | |
| constexpr uint32_t | bomberman::sim::powerupEffectDurationTicks (const PowerupType type) |
| Returns the configured lifetime for one powerup effect. | |
Variables | |
| constexpr std::size_t | bomberman::sim::kPowerupTypeCount = 4 |
| Number of defined multiplayer powerup types. | |
| constexpr std::array< PowerupType, 4 > | bomberman::sim::kRoundPowerupPlacements |
| Stable per-round hidden placements seeded under random bricks. | |
| constexpr uint8_t | bomberman::sim::kPowerupsPerRound = static_cast<uint8_t>(kRoundPowerupPlacements.size()) |
| Number of hidden powerups seeded into each round when enabled. | |
| constexpr uint32_t | bomberman::sim::kDefaultPowerupDurationTicks = static_cast<uint32_t>(kTickRate) * 10u |
| Default temporary powerup lifetime in simulation ticks. | |
| constexpr uint32_t | bomberman::sim::kInvincibilityDurationTicks = kDefaultPowerupDurationTicks |
| Invincibility lifetime in simulation ticks. | |
| constexpr uint32_t | bomberman::sim::kSpeedBoostDurationTicks = kDefaultPowerupDurationTicks |
| Speed boost lifetime in simulation ticks. | |
| constexpr uint32_t | bomberman::sim::kBombRangeBoostDurationTicks = kDefaultPowerupDurationTicks |
| Bomb-range boost lifetime in simulation ticks. | |
| constexpr uint32_t | bomberman::sim::kMaxBombsBoostDurationTicks = kDefaultPowerupDurationTicks |
| Max-bombs boost lifetime in simulation ticks. | |
| constexpr double | bomberman::sim::kSpeedBoostTilesPerSecond = 5.5 |
| Future movement-speed target while the speed boost is active. | |
| constexpr int32_t | bomberman::sim::kSpeedBoostPlayerSpeedQ |
| Movement speed in tile-Q8 units per simulation tick while the speed boost is active. | |
| constexpr uint8_t | bomberman::sim::kBombRangeBoostAmount = 1 |
| Additional blast radius applied to bombs placed during the range boost. | |
| constexpr uint8_t | bomberman::sim::kBoostedMaxBombs = 2 |
| Bomb-cap target while the max-bombs boost is active. | |
| constexpr uint32_t | bomberman::sim::kPowerupPlacementSeedSalt = 0x9E3779B9u |
| Deterministic salt mixed into round placement RNG so repeated map seeds can still vary by round. | |
Shared multiplayer powerup types and round-setup tuning.