Bomberman Multiplayer
Authoritative multiplayer networking layer for Bomberman.
Loading...
Searching...
No Matches
bomberman::net::ClientPrediction Class Reference

Client-side local input prediction and reconciliation. More...

#include <ClientPrediction.h>

Public Member Functions

void reset () noexcept
 Clears all prediction state and history.
 
void suspend () noexcept
 Suspends prediction, drops retained local history, and waits for a later correction baseline to re-arm.
 
bool isInitialized () const noexcept
 Returns true once the first authoritative baseline has been accepted.
 
const LocalPlayerStatecurrentState () const noexcept
 Returns the local state currently being presented for the owning player.
 
const PredictionStatsstats () const noexcept
 Returns aggregate prediction diagnostics for the current session.
 
uint32_t lastRecordedInputSeq () const noexcept
 Returns the highest contiguous local input seq seen so far.
 
bool applyLocalInput (uint32_t inputSeq, uint8_t buttons, const sim::TileMap &map) noexcept
 Records one new local input and simulates it immediately only while prediction is active.
 
CorrectionReplayResult reconcileAndReplay (const MsgCorrection &correction, const sim::TileMap &map) noexcept
 Applies an authoritative correction and replays retained local inputs after it.
 

Detailed Description

Client-side local input prediction and reconciliation.


The documentation for this class was generated from the following files: