Bomberman Multiplayer
Authoritative multiplayer networking layer for Bomberman.
Loading...
Searching...
No Matches
ServerLobbyFlow.cpp File Reference

Authoritative lobby, countdown, bootstrap, and match-start helpers. More...

#include "ServerFlow.h"
#include <bit>
#include "ServerFlowInternal.h"
#include "Net/NetSend.h"
#include "ServerBombs.h"
#include "ServerHandlers.h"
#include "ServerPowerups.h"
#include "Sim/TileMapGen.h"
#include "Util/Log.h"

Namespaces

namespace  bomberman::server
 Authoritative dedicated-server state, match flow, and fixed-tick simulation support.
 

Functions

void bomberman::server::flow_internal::broadcastLobbyStateAndRefreshFlow (ServerState &state)
 
void bomberman::server::flow_internal::clearLobbyCountdownState (ServerState &state)
 
void bomberman::server::flow_internal::clearCurrentRoundFlowState (ServerState &state)
 
bool bomberman::server::flow_internal::hasMinimumParticipants (const uint32_t playerMask)
 
uint8_t bomberman::server::flow_internal::computeCountdownSecondsRemaining (const ServerState &state)
 
void bomberman::server::flow_internal::clearActiveMatchPlayers (ServerState &state)
 
void bomberman::server::flow_internal::clearAllLobbyReadyFlags (ServerState &state)
 
uint32_t bomberman::server::flow_internal::collectAcceptedReadyParticipants (const ServerState &state, bool &allReady)
 
void bomberman::server::flow_internal::sendMatchCancelledToParticipants (ServerState &state, const uint32_t matchId, const uint32_t playerMask)
 
void bomberman::server::flow_internal::cancelLobbyCountdown (ServerState &state, const std::string_view reason)
 
void bomberman::server::flow_internal::startLobbyCountdown (ServerState &state, const uint32_t participantMask)
 
void bomberman::server::flow_internal::resetLobbyParticipantsToUnready (ServerState &state, const std::string_view reason)
 
void bomberman::server::flow_internal::cancelStartingMatch (ServerState &state, uint32_t notifyMask, std::string_view reason)
 
void bomberman::server::flow_internal::maybeCommitMatchStart (ServerState &state)
 
void bomberman::server::resetRoundRuntimeToLobby (ServerState &state)
 Resets round-scoped state and returns to the lobby.
 
void bomberman::server::handleLobbyReadyStateChanged (ServerState &state)
 Reacts to one lobby ready-state change.
 
void bomberman::server::handleAcceptedPlayerJoined (ServerState &state)
 Applies the lobby participant-change policy after one accepted player joins.
 
bool bomberman::server::beginMatchBootstrap (ServerState &state)
 Starts match bootstrap from a validated lobby countdown commit.
 
void bomberman::server::markPlayerLoadedForCurrentMatch (ServerState &state, uint8_t playerId)
 Records one match-loaded acknowledgement.
 
void bomberman::server::handleAcceptedPlayerReleased (ServerState &state, uint8_t playerId)
 Updates flow state after one accepted player disconnects.
 

Detailed Description

Authoritative lobby, countdown, bootstrap, and match-start helpers.