My Project
Public Member Functions | List of all members
System::ControlSystem Class Reference

ControlSystem class that handles the control of all the entities. More...

#include <ControlSystem.hpp>

Public Member Functions

 ControlSystem ()
 Construct a new Control System object.
 
void operator() (Registry &registry, Sparse_array< component::ckeyboard_t > &keyboards, Sparse_array< component::cnetwork_queue_t > &network, Sparse_array< component::csceneid_t > &scenesId, Sparse_array< component::cclient_network_id > &clientNetworkId)
 Function that will be automaticaly called while the client is working (on loop) More...
 
void addToNetworkQueue (float x, float y, Sparse_array< component::cnetwork_queue_t > &network, uint16_t idOfShip)
 A method to add a task for the server through the network queue. More...
 

Detailed Description

ControlSystem class that handles the control of all the entities.

Member Function Documentation

◆ addToNetworkQueue()

void System::ControlSystem::addToNetworkQueue ( float  x,
float  y,
Sparse_array< component::cnetwork_queue_t > &  network,
uint16_t  idOfShip 
)

A method to add a task for the server through the network queue.

Parameters
xThe x position of the task
yThe y position of the task
networkThe sparse array of network entitiies
idOfShipThe sparse array of id of the ship entities

◆ operator()()

void System::ControlSystem::operator() ( Registry registry,
Sparse_array< component::ckeyboard_t > &  keyboards,
Sparse_array< component::cnetwork_queue_t > &  network,
Sparse_array< component::csceneid_t > &  scenesId,
Sparse_array< component::cclient_network_id > &  clientNetworkId 
)

Function that will be automaticaly called while the client is working (on loop)

Parameters
registryThe registry of the server
keyboardsThe sparse array of keyboard entities
networkThe sparse array of network entities
scenesIdThe sparse array of scenesId entities
clientNetworkIdThe sparse array of clientNetworkId entities

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