NewEntitySystem class that handles the creation of an entity.
More...
#include <NewEntitySystem.hpp>
|
| NewEntitySystem () |
| Construct a new New Entity System object.
|
|
void | operator() (Registry ®istry, Sparse_array< component::cnetwork_queue_t > &network, Sparse_array< component::cserverid_t > &serverIds, Sparse_array< component::casset_t > &assets, Sparse_array< component::cclient_network_id > &clientNetwrokId, Sparse_array< component::csceneid_t > &sceneId, Sparse_array< component::csound_t > &sounds) |
| Function that will be automaticaly called while the client is working (on loop) More...
|
|
void | addBullet (Registry ®istry, packet_new_entity &packet_new_entity, Sparse_array< component::casset_t > &assets, Sparse_array< component::csound_t > &sounds) |
| A method to add a new bullet entity. More...
|
|
void | addShip (Registry ®istry, packet_new_entity &packet_new_entity, Sparse_array< component::casset_t > &assets, Sparse_array< component::cclient_network_id > &clientNetworkId, Sparse_array< component::csceneid_t > &sceneId, Sparse_array< component::csound_t > &sounds) |
| A method to add a new ship entity. More...
|
|
void | addEnemy (Registry ®istry, packet_new_entity &packet_new_entity, Sparse_array< component::casset_t > &assets, Sparse_array< component::csound_t > &sounds) |
| A method to add a new enemy entity. More...
|
|
void | addEnemy2 (Registry ®istry, packet_new_entity &packet_new_entity, Sparse_array< component::casset_t > &assets, Sparse_array< component::csound_t > &sounds) |
| A method to add a new enemy entity. More...
|
|
void | addEnemy3 (Registry ®istry, packet_new_entity &packet_new_entity, Sparse_array< component::casset_t > &assets, Sparse_array< component::csound_t > &sounds) |
| A method to add a new enemy entity. More...
|
|
void | doesEntityAlreadyExist (int newEntityId) |
| A method to check if an entity already exists. More...
|
|
NewEntitySystem class that handles the creation of an entity.
◆ addBullet()
A method to add a new bullet entity.
- Parameters
-
registry | The registry of the client |
packet_new_entity | The packet containing the new entity |
assets | The sparse array of asset id entities |
sounds | The sparse array of sound id entities |
◆ addEnemy()
A method to add a new enemy entity.
- Parameters
-
registry | The registry of the client |
packet_new_entity | The packet containing the new entity |
assets | The sparse array of asset id entities |
sounds | The sparse array of sound id entities |
◆ addEnemy2()
A method to add a new enemy entity.
- Parameters
-
registry | The registry of the client |
packet_new_entity | The packet containing the new entity |
assets | The sparse array of asset id entities |
sounds | The sparse array of sound id entities |
◆ addEnemy3()
A method to add a new enemy entity.
- Parameters
-
registry | The registry of the client |
packet_new_entity | The packet containing the new entity |
assets | The sparse array of asset id entities |
sounds | The sparse array of sound id entities |
◆ addShip()
A method to add a new ship entity.
- Parameters
-
registry | The registry of the client |
packet_new_entity | The packet containing the new entity |
assets | The sparse array of asset id entities |
clientNetworkId | The sparse array of client network id entities |
sceneId | The sparse array of scene id entities |
sounds | The sparse array of sound id entities |
◆ doesEntityAlreadyExist()
void System::NewEntitySystem::doesEntityAlreadyExist |
( |
int |
newEntityId | ) |
|
A method to check if an entity already exists.
- Parameters
-
newEntityId | The id of the new entity |
◆ operator()()
Function that will be automaticaly called while the client is working (on loop)
- Parameters
-
registry | The registry of the client |
network | The sparse array of network entities |
serverIds | The sparse array of server Id entities |
assets | The sparse array of asset entities |
clientNetwrokId | The sparse array of client network id entities |
sceneId | The sparse array of scene id entities |
The documentation for this class was generated from the following files:
- /home/gurvan-le-letty/delivery/epitech_delivery/semester_5/B-CPP-500/B-CPP-500-PAR-5-1-rtype-martin.vanaud/Client/Source/System/NewEntitySystem/NewEntitySystem.hpp
- /home/gurvan-le-letty/delivery/epitech_delivery/semester_5/B-CPP-500/B-CPP-500-PAR-5-1-rtype-martin.vanaud/Client/Source/System/NewEntitySystem/NewEntitySystem.cpp