Rise
The Vieneo Province
Networking Class Reference

#include <Networking.h>

Collaboration diagram for Networking:
[legend]

Public Member Functions

 Networking (GameClass *g)
 
void Close ()
 
void RakNetMessageHandler (RakNet::Packet *packet) const
 
void SendToServer (void *pData, DWORD dwSize, bool bGuaranteed, PacketOrdering order=ORDERING_NONE) const
 
void SendTelemetry (SClientPacketNew *pData) const
 
void SendErrorReport (SErrorPacket *pData) const
 
void SendChatMessage (unsigned char channel, unsigned char player, const WCHAR *message) const
 
void FrameMove (GameState displaystage)
 
int GetPingTime () const
 
void SendEvent (EventType eventType, float extent=0.0f) const
 
void SendTraceFile (const char *fileContents) const
 
void SendScreenShot (const char *fileContents, int length) const
 
RakNet::RakNetStatistics * GetStatistics () const
 
RakNet::ConnectionAttemptResult Connect () const
 
void Flush () const
 
void RequestVerbiage (int helpId) const
 

Public Attributes

char connectstatus
 
unsigned long patchbytes
 
unsigned long rcvdbytes
 
short retryconnect
 

Private Member Functions

void Trace (const char *msg, Logger::Level severity=Logger::Level::Info) const
 

Private Attributes

GameClassgame
 
RakNet::RakPeerInterface * rakPeer
 
RakNet::SystemAddress serverC
 
RakNet::Packet * p
 

Detailed Description

Definition at line 60 of file Networking.h.

Constructor & Destructor Documentation

◆ Networking()

Networking::Networking ( GameClass g)

Definition at line 15 of file Networking.cpp.

Here is the call graph for this function:

Member Function Documentation

◆ Close()

void Networking::Close ( )

Definition at line 48 of file Networking.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Connect()

RakNet::ConnectionAttemptResult Networking::Connect ( ) const

Definition at line 153 of file Networking.cpp.

Here is the caller graph for this function:

◆ Flush()

void Networking::Flush ( ) const

Definition at line 158 of file Networking.cpp.

Here is the caller graph for this function:

◆ FrameMove()

void Networking::FrameMove ( GameState  displaystage)

Definition at line 191 of file Networking.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetPingTime()

int Networking::GetPingTime ( ) const

Definition at line 106 of file Networking.cpp.

Here is the caller graph for this function:

◆ GetStatistics()

RakNet::RakNetStatistics * Networking::GetStatistics ( ) const

Definition at line 148 of file Networking.cpp.

Here is the caller graph for this function:

◆ RakNetMessageHandler()

void Networking::RakNetMessageHandler ( RakNet::Packet *  packet) const
Todo:
we don't actually care about x, y, leftright, updown, rolltilt, or heading right now
Todo:
this seems dangerous, server should probably handle this?
Todo:
could update the Biometer here if we choose to reveal this information
Todo:
could downgrade this to char

Definition at line 827 of file Networking.cpp.

Here is the caller graph for this function:

◆ RequestVerbiage()

void Networking::RequestVerbiage ( int  helpId) const

Definition at line 168 of file Networking.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SendChatMessage()

void Networking::SendChatMessage ( unsigned char  channel,
unsigned char  player,
const WCHAR *  message 
) const

Definition at line 179 of file Networking.cpp.

Here is the caller graph for this function:

◆ SendErrorReport()

void Networking::SendErrorReport ( SErrorPacket *  pData) const

Definition at line 93 of file Networking.cpp.

Here is the caller graph for this function:

◆ SendEvent()

void Networking::SendEvent ( EventType  eventType,
float  extent = 0.0f 
) const

Definition at line 111 of file Networking.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SendScreenShot()

void Networking::SendScreenShot ( const char *  fileContents,
int  length 
) const

Definition at line 140 of file Networking.cpp.

Here is the caller graph for this function:

◆ SendTelemetry()

void Networking::SendTelemetry ( SClientPacketNew *  pData) const

Definition at line 83 of file Networking.cpp.

Here is the caller graph for this function:

◆ SendToServer()

void Networking::SendToServer ( void *  pData,
DWORD  dwSize,
bool  bGuaranteed,
PacketOrdering  order = ORDERING_NONE 
) const

Definition at line 59 of file Networking.cpp.

◆ SendTraceFile()

void Networking::SendTraceFile ( const char *  fileContents) const

Definition at line 125 of file Networking.cpp.

Here is the caller graph for this function:

◆ Trace()

void Networking::Trace ( const char *  msg,
Logger::Level  severity = Logger::Level::Info 
) const
private

Definition at line 41 of file Networking.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ connectstatus

char Networking::connectstatus

Definition at line 91 of file Networking.h.

◆ game

GameClass* Networking::game
private

Definition at line 62 of file Networking.h.

◆ p

RakNet::Packet* Networking::p
private

Definition at line 66 of file Networking.h.

◆ patchbytes

unsigned long Networking::patchbytes

Definition at line 92 of file Networking.h.

◆ rakPeer

RakNet::RakPeerInterface* Networking::rakPeer
private

Definition at line 64 of file Networking.h.

◆ rcvdbytes

unsigned long Networking::rcvdbytes

Definition at line 93 of file Networking.h.

◆ retryconnect

short Networking::retryconnect

Definition at line 94 of file Networking.h.

◆ serverC

RakNet::SystemAddress Networking::serverC
private

Definition at line 65 of file Networking.h.


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