Bomberman Multiplayer
Authoritative multiplayer networking layer for Bomberman.
Loading...
Searching...
No Matches
ServerBombs.h
Go to the documentation of this file.
1
7#ifndef BOMBERMAN_SERVER_SERVERBOMBS_H
8#define BOMBERMAN_SERVER_SERVERBOMBS_H
9
10#include "ServerState.h"
11
12namespace bomberman::server
13{
17 void tryPlaceBomb(ServerState& state, MatchPlayerState& matchPlayer);
18
22 void resolveExplodingBombs(ServerState& state);
23
27 void clearBombsAndReleaseOwnership(ServerState& state);
28
29} // namespace bomberman::server
30
31#endif // BOMBERMAN_SERVER_SERVERBOMBS_H
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
void resolveExplodingBombs(ServerState &state)
Resolves all bombs whose fuse expires on the current authoritative tick.
Definition ServerBombs.cpp:510
void tryPlaceBomb(ServerState &state, MatchPlayerState &matchPlayer)
Attempts to place one authoritative bomb for a match player on the current server tick.
Definition ServerBombs.cpp:397
void clearBombsAndReleaseOwnership(ServerState &state)
Clears all active bombs and releases per-player active-bomb ownership counters.
Definition ServerBombs.cpp:369