GekkoNet 1.0
C/C++ Peer to Peer Game Networking SDK
Loading...
Searching...
No Matches
Gekko::StressSession Class Reference

#include <stress_session.h>

Inheritance diagram for Gekko::StressSession:
Collaboration diagram for Gekko::StressSession:

Public Member Functions

 StressSession ()
void Init (GekkoConfig *config) override
void SetLocalDelay (i32 player, u8 delay) override
i32 AddActor (GekkoPlayerType type, GekkoNetAddress *addr) override
void AddLocalInput (i32 player, void *input) override
GekkoGameEvent ** UpdateSession (i32 *count) override
GekkoSessionEvent ** Events (i32 *count) override
bool StartRecording (bool save_initial_state, bool disable_compression) override
const u8 * StopRecording (u32 &length) override
const u8 * PeekRecording (u32 &length) override
bool RecordChecksums (u32 interval) override
bool SetReplayUserData (const u8 *data, u32 length) override
Public Member Functions inherited from GekkoSession
virtual void SetRunahead (u8 runahead)
virtual void SetInputPredictionWindow (u8 window)
virtual void SetNetAdapter (GekkoNetAdapter *adapter)
virtual bool DisconnectActor (i32 actor)
virtual void SetDisconnectTimeout (u32 timeout)
virtual f32 FramesAhead ()
virtual i32 SpectatorBufferedFrames ()
virtual void NetworkStats (i32 player, GekkoNetworkStats *stats)
virtual void RollbackStats (GekkoRollbackStats *stats)
virtual void NetworkPoll ()
virtual bool LoadReplay (const u8 *replay_data, u32 length)
virtual const u8 * ReplayUserData (u32 &length)
virtual ~GekkoSession ()=default

Private Member Functions

void HandleRollback ()
void CheckForDesyncs (Frame check_frame)
void UpdateRecording ()
void FlushRecording ()

Private Attributes

GekkoConfig _config
SyncSystem _sync
StateStorage _storage
SessionEventSystem _session_events
GameEventSystem _game_events
ReplaySystem _replay
std::vector< Player > _locals
u32 _check_distance
std::map< Frame, u32 > _checksum_history

Detailed Description

Definition at line 17 of file stress_session.h.

Constructor & Destructor Documentation

◆ StressSession()

Gekko::StressSession::StressSession ( )

Definition at line 6 of file stress_session.cpp.

Member Function Documentation

◆ AddActor()

i32 Gekko::StressSession::AddActor ( GekkoPlayerType type,
GekkoNetAddress * addr )
overridevirtual

Reimplemented from GekkoSession.

Definition at line 42 of file stress_session.cpp.

◆ AddLocalInput()

void Gekko::StressSession::AddLocalInput ( i32 player,
void * input )
overridevirtual

Reimplemented from GekkoSession.

Definition at line 58 of file stress_session.cpp.

◆ CheckForDesyncs()

void Gekko::StressSession::CheckForDesyncs ( Frame check_frame)
private

Definition at line 184 of file stress_session.cpp.

Here is the caller graph for this function:

◆ Events()

GekkoSessionEvent ** Gekko::StressSession::Events ( i32 * count)
overridevirtual

Implements GekkoSession.

Definition at line 104 of file stress_session.cpp.

◆ FlushRecording()

void Gekko::StressSession::FlushRecording ( )
private

Definition at line 129 of file stress_session.cpp.

Here is the caller graph for this function:

◆ HandleRollback()

void Gekko::StressSession::HandleRollback ( )
private

Definition at line 164 of file stress_session.cpp.

Here is the caller graph for this function:

◆ Init()

void Gekko::StressSession::Init ( GekkoConfig * config)
overridevirtual

Implements GekkoSession.

Definition at line 13 of file stress_session.cpp.

◆ PeekRecording()

const u8 * Gekko::StressSession::PeekRecording ( u32 & length)
overridevirtual

Reimplemented from GekkoSession.

Definition at line 122 of file stress_session.cpp.

Here is the call graph for this function:

◆ RecordChecksums()

bool Gekko::StressSession::RecordChecksums ( u32 interval)
overridevirtual

Reimplemented from GekkoSession.

Definition at line 138 of file stress_session.cpp.

◆ SetLocalDelay()

void Gekko::StressSession::SetLocalDelay ( i32 player,
u8 delay )
overridevirtual

Reimplemented from GekkoSession.

Definition at line 33 of file stress_session.cpp.

◆ SetReplayUserData()

bool Gekko::StressSession::SetReplayUserData ( const u8 * data,
u32 length )
overridevirtual

Reimplemented from GekkoSession.

Definition at line 143 of file stress_session.cpp.

◆ StartRecording()

bool Gekko::StressSession::StartRecording ( bool save_initial_state,
bool disable_compression )
overridevirtual

Reimplemented from GekkoSession.

Definition at line 110 of file stress_session.cpp.

◆ StopRecording()

const u8 * Gekko::StressSession::StopRecording ( u32 & length)
overridevirtual

Reimplemented from GekkoSession.

Definition at line 115 of file stress_session.cpp.

Here is the call graph for this function:

◆ UpdateRecording()

void Gekko::StressSession::UpdateRecording ( )
private

Definition at line 148 of file stress_session.cpp.

Here is the caller graph for this function:

◆ UpdateSession()

GekkoGameEvent ** Gekko::StressSession::UpdateSession ( i32 * count)
overridevirtual

Implements GekkoSession.

Definition at line 70 of file stress_session.cpp.

Here is the call graph for this function:

Member Data Documentation

◆ _check_distance

u32 Gekko::StressSession::_check_distance
private

Definition at line 67 of file stress_session.h.

◆ _checksum_history

std::map<Frame, u32> Gekko::StressSession::_checksum_history
private

Definition at line 69 of file stress_session.h.

◆ _config

GekkoConfig Gekko::StressSession::_config
private

Definition at line 53 of file stress_session.h.

◆ _game_events

GameEventSystem Gekko::StressSession::_game_events
private

Definition at line 61 of file stress_session.h.

◆ _locals

std::vector<Player> Gekko::StressSession::_locals
private

Definition at line 65 of file stress_session.h.

◆ _replay

ReplaySystem Gekko::StressSession::_replay
private

Definition at line 63 of file stress_session.h.

◆ _session_events

SessionEventSystem Gekko::StressSession::_session_events
private

Definition at line 59 of file stress_session.h.

◆ _storage

StateStorage Gekko::StressSession::_storage
private

Definition at line 57 of file stress_session.h.

◆ _sync

SyncSystem Gekko::StressSession::_sync
private

Definition at line 55 of file stress_session.h.


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