Platform Data Engine 0.0.1
A data-driven game engine for platformers
PlatformDataEngine::Connection Class Reference
Inheritance diagram for PlatformDataEngine::Connection:
PlatformDataEngine::Networkable

Public Member Functions

void networkSerializeInit (PDEPacket &output)
 Called when an object is sent to the clients for the first time More...
 
void networkDeserializeInit (PDEPacket &input)
 Called when an object is recieved on a client for the first time More...
 
void networkSerialize (PDEPacket &output)
 Called every time an object is sent to a client More...
 
void networkDeserialize (PDEPacket &input)
 Called every time an object is recieved from a client More...
 

Public Attributes

sf::IpAddress ip
 
std::string id
 
unsigned short port
 
std::string name
 
sf::Clock respawnTimer
 
PlayerState state
 
float health
 

Member Function Documentation

◆ networkDeserialize()

void Connection::networkDeserialize ( PDEPacket input)
virtual

Called every time an object is recieved from a client

Parameters
input

Implements PlatformDataEngine::Networkable.

◆ networkDeserializeInit()

void PlatformDataEngine::Connection::networkDeserializeInit ( PDEPacket input)
inlinevirtual

Called when an object is recieved on a client for the first time

Parameters
input

Implements PlatformDataEngine::Networkable.

◆ networkSerialize()

void Connection::networkSerialize ( PDEPacket output)
virtual

Called every time an object is sent to a client

Parameters
output

Implements PlatformDataEngine::Networkable.

◆ networkSerializeInit()

void PlatformDataEngine::Connection::networkSerializeInit ( PDEPacket output)
inlinevirtual

Called when an object is sent to the clients for the first time

Parameters
output

Implements PlatformDataEngine::Networkable.


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