|
| HitboxSystem () |
| Construct a new Hitbox System object.
|
|
bool | CheckCollision (component::crect_t const &rec1, component::crect_t const &rec2, component::cposition_t const &pos1, component::cposition_t const &pos2) |
| A method to check if a collision happened. More...
|
|
void | operator() (Registry ®istry, Sparse_array< component::cnetwork_queue_t > &network_queues, Sparse_array< component::ctype_t > &types, Sparse_array< component::cposition_t > &positions, Sparse_array< component::crect_t > &rects, Sparse_array< component::chealth_t > &health, Sparse_array< component::clobby_id_t > &lobbyId, Sparse_array< component::cscore_t > &score, Sparse_array< component::ctype_t > &type, Sparse_array< component::cowner_id_t > &ownerId) |
| The main handler for the Hitbox System. More...
|
|
void | doHealthCheck (Registry ®istry, component::cnetwork_queue_t &netQueue, component::chealth_t &health1, component::chealth_t &health2, component::clobby_id_t &lobbyId, int i, int x, ENTITY_TYPE &entityType) |
| A method to check if a collision happened between a player and a bullet. More...
|
|
void | doScoreUpdate (component::cnetwork_queue_t &netQueue, component::clobby_id_t &lobbyId, Sparse_array< component::cscore_t > &score, Sparse_array< component::ctype_t > &type, Sparse_array< component::cowner_id_t > &ownerId, int x) |
| A method to check if a collision happened between a player and a bonus. More...
|
|
The Hitbox System class, it handles everything related to collisions between entities.