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

Public Member Functions

 Client ()
 Constructor
 
void start ()
 Starts the client, doesn't do anything right now More...
 
void stop ()
 Stops the client, doesn't do anything right now More...
 
void process (GameWorld *world)
 Sends data to the server, should be called in a fixed time period loop More...
 
void recieve (GameWorld *world)
 Checks for new data from the server and processes it More...
 
void disconnect ()
 Lets the server know we're disconnecting
 
- Public Member Functions inherited from PlatformDataEngine::NetworkHandler
const std::string & getId ()
 
void setId (const std::string &name)
 
virtual void start ()=0
 
virtual void stop ()=0
 
virtual void process (GameWorld *world)=0
 Process is responsible for sending packets, limited in rate More...
 
virtual void recieve (GameWorld *world)=0
 Recieve checks for new packets, not limited in rate More...
 
std::shared_ptr< ConnectiongetConnection ()
 Gets the current process connection More...
 
void setConnection (std::shared_ptr< Connection > conn)
 Sets the current process connection More...
 

Additional Inherited Members

- Protected Attributes inherited from PlatformDataEngine::NetworkHandler
std::shared_ptr< Connectionm_clientConnection
 

Member Function Documentation

◆ process()

void Client::process ( GameWorld world)
virtual

Sends data to the server, should be called in a fixed time period loop

Parameters
worldThe game world

Implements PlatformDataEngine::NetworkHandler.

◆ recieve()

void Client::recieve ( GameWorld world)
virtual

Checks for new data from the server and processes it

Parameters
worldThe game world

Implements PlatformDataEngine::NetworkHandler.

◆ start()

void Client::start ( )
virtual

Starts the client, doesn't do anything right now

Implements PlatformDataEngine::NetworkHandler.

◆ stop()

void Client::stop ( )
virtual

Stops the client, doesn't do anything right now

Implements PlatformDataEngine::NetworkHandler.


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