Night Sky Engine
A fighting game framework made in Unreal Engine
Loading...
Searching...
No Matches
AFighterMultiplayerRunner Class Reference

#include <FighterMultiplayerRunner.h>

Inheritance diagram for AFighterMultiplayerRunner:
Collaboration diagram for AFighterMultiplayerRunner:

Public Member Functions

 AFighterMultiplayerRunner ()
 
virtual void Update (float DeltaTime) override
 
- Public Member Functions inherited from AFighterLocalRunner
 AFighterLocalRunner ()
 

Static Public Member Functions

static int fletcher32_checksum (short *data, size_t len)
 

Public Attributes

GGPOSession * ggpo = nullptr
 
TArray< GGPOPlayerHandle > PlayerHandles
 
TArray< GGPOPlayer * > Players
 
class RpcConnectionManagerconnectionManager
 

Protected Member Functions

virtual void BeginPlay () override
 
virtual void EndPlay (const EEndPlayReason::Type EndPlayReason) override
 
GGPOSessionCallbacks CreateCallbacks ()
 
bool __cdecl BeginGameCallback (const char *)
 
bool __cdecl SaveGameStateCallback (unsigned char **buffer, int32 *len, int32 *checksum, int32)
 
bool __cdecl LoadGameStateCallback (unsigned char *buffer, int32 len)
 
bool __cdecl LogGameState (const char *filename, unsigned char *buffer, int len)
 
void __cdecl FreeBuffer (void *buffer)
 
bool __cdecl AdvanceFrameCallback (int32)
 
bool __cdecl OnEventCallback (GGPOEvent *info)
 
void GgpoUpdate ()
 

Protected Attributes

TArray< int > PlayerInputIndex
 
int MultipliedFramesAhead =0
 
int MultipliedFramesBehind =0
 
- Protected Attributes inherited from AFighterLocalRunner
float ElapsedTime =0
 
class ANightSkyGameStateGameState
 

Detailed Description

Definition at line 13 of file FighterMultiplayerRunner.h.

Constructor & Destructor Documentation

◆ AFighterMultiplayerRunner()

AFighterMultiplayerRunner::AFighterMultiplayerRunner ( )

Definition at line 17 of file FighterMultiplayerRunner.cpp.

Member Function Documentation

◆ AdvanceFrameCallback()

bool AFighterMultiplayerRunner::AdvanceFrameCallback ( int32 )
protected

Definition at line 235 of file FighterMultiplayerRunner.cpp.

◆ BeginGameCallback()

bool AFighterMultiplayerRunner::BeginGameCallback ( const char * )
protected

Definition at line 83 of file FighterMultiplayerRunner.cpp.

◆ BeginPlay()

void AFighterMultiplayerRunner::BeginPlay ( )
overrideprotectedvirtual

Reimplemented from AFighterLocalRunner.

Reimplemented in AFighterSynctestRunner.

Definition at line 26 of file FighterMultiplayerRunner.cpp.

◆ CreateCallbacks()

GGPOSessionCallbacks AFighterMultiplayerRunner::CreateCallbacks ( )
protected

Definition at line 64 of file FighterMultiplayerRunner.cpp.

◆ EndPlay()

void AFighterMultiplayerRunner::EndPlay ( const EEndPlayReason::Type EndPlayReason)
overrideprotectedvirtual

Definition at line 56 of file FighterMultiplayerRunner.cpp.

◆ fletcher32_checksum()

int AFighterMultiplayerRunner::fletcher32_checksum ( short * data,
size_t len )
static

Definition at line 376 of file FighterMultiplayerRunner.cpp.

◆ FreeBuffer()

void AFighterMultiplayerRunner::FreeBuffer ( void * buffer)
protected

Definition at line 230 of file FighterMultiplayerRunner.cpp.

◆ GgpoUpdate()

void AFighterMultiplayerRunner::GgpoUpdate ( )
protected

Definition at line 305 of file FighterMultiplayerRunner.cpp.

◆ LoadGameStateCallback()

bool AFighterMultiplayerRunner::LoadGameStateCallback ( unsigned char * buffer,
int32 len )
protected

Definition at line 107 of file FighterMultiplayerRunner.cpp.

◆ LogGameState()

bool AFighterMultiplayerRunner::LogGameState ( const char * filename,
unsigned char * buffer,
int len )
protected

Definition at line 127 of file FighterMultiplayerRunner.cpp.

◆ OnEventCallback()

bool AFighterMultiplayerRunner::OnEventCallback ( GGPOEvent * info)
protected

Definition at line 245 of file FighterMultiplayerRunner.cpp.

◆ SaveGameStateCallback()

bool AFighterMultiplayerRunner::SaveGameStateCallback ( unsigned char ** buffer,
int32 * len,
int32 * checksum,
int32  )
protected

Definition at line 88 of file FighterMultiplayerRunner.cpp.

◆ Update()

void AFighterMultiplayerRunner::Update ( float DeltaTime)
overridevirtual

Reimplemented from AFighterLocalRunner.

Reimplemented in AFighterSynctestRunner.

Definition at line 341 of file FighterMultiplayerRunner.cpp.

Member Data Documentation

◆ connectionManager

class RpcConnectionManager* AFighterMultiplayerRunner::connectionManager

Definition at line 49 of file FighterMultiplayerRunner.h.

◆ ggpo

GGPOSession* AFighterMultiplayerRunner::ggpo = nullptr

Definition at line 36 of file FighterMultiplayerRunner.h.

◆ MultipliedFramesAhead

int AFighterMultiplayerRunner::MultipliedFramesAhead =0
protected

Definition at line 44 of file FighterMultiplayerRunner.h.

◆ MultipliedFramesBehind

int AFighterMultiplayerRunner::MultipliedFramesBehind =0
protected

Definition at line 45 of file FighterMultiplayerRunner.h.

◆ PlayerHandles

TArray<GGPOPlayerHandle> AFighterMultiplayerRunner::PlayerHandles

Definition at line 37 of file FighterMultiplayerRunner.h.

◆ PlayerInputIndex

TArray<int> AFighterMultiplayerRunner::PlayerInputIndex
protected

Definition at line 41 of file FighterMultiplayerRunner.h.

◆ Players

TArray<GGPOPlayer*> AFighterMultiplayerRunner::Players

Definition at line 38 of file FighterMultiplayerRunner.h.


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