7#ifndef BOMBERMAN_SERVER_SERVERPOWERUPS_H
8#define BOMBERMAN_SERVER_SERVERPOWERUPS_H
18 bool hasInvincibility(
const MatchPlayerState& matchPlayer, uint32_t serverTick);
22 bool hasSpeedBoost(
const MatchPlayerState& matchPlayer, uint32_t serverTick);
30 bool hasMaxBombsBoost(
const MatchPlayerState& matchPlayer, uint32_t serverTick);
Authoritative server state model, lifecycle helpers, and fixed-tick simulation API.
Authoritative dedicated-server state, match flow, and fixed-tick simulation support.
Definition ServerBombs.cpp:21
uint8_t buildReplicatedPlayerFlags(const MatchPlayerState &matchPlayer, const uint32_t serverTick)
Builds the replicated player-flag bitmask.
Definition ServerPowerups.cpp:84
void revealPowerupsUnderDestroyedBricks(ServerState &state, const std::span< const BombCell > destroyedBricks)
Reveals any hidden powerups whose brick cells were just destroyed.
Definition ServerPowerups.cpp:170
void collectRevealedPowerups(ServerState &state)
Removes any revealed powerups collected by active match players on the current tick.
Definition ServerPowerups.cpp:197
void clearRoundPowerups(ServerState &state)
Clears all hidden and revealed round powerup state.
Definition ServerPowerups.cpp:117
bool hasBombRangeBoost(const MatchPlayerState &matchPlayer, const uint32_t serverTick)
Returns true if bomb-range boost is active.
Definition ServerPowerups.cpp:63
bool hasInvincibility(const MatchPlayerState &matchPlayer, const uint32_t serverTick)
Returns true if invincibility is active.
Definition ServerPowerups.cpp:53
bool hasSpeedBoost(const MatchPlayerState &matchPlayer, const uint32_t serverTick)
Returns true if speed boost is active.
Definition ServerPowerups.cpp:58
bool hasMaxBombsBoost(const MatchPlayerState &matchPlayer, const uint32_t serverTick)
Returns true if max-bombs boost is active.
Definition ServerPowerups.cpp:68
void placeRoundPowerups(ServerState &state)
Deterministically seeds the current round's hidden powerups under random bricks.
Definition ServerPowerups.cpp:123
void refreshMatchPlayerPowerupLoadout(const ServerState &state, MatchPlayerState &matchPlayer)
Refreshes one match player's derived bomb loadout.
Definition ServerPowerups.cpp:73