#include <CollisionSystem.hpp>
◆ CollisionSystem()
ECS::CollisionSystem::CollisionSystem |
( |
const std::shared_ptr< ComponentManager > & |
componentsManager, |
|
|
const std::shared_ptr< EntityManager > & |
entityManager |
|
) |
| |
It's a constructor for the CollisionSystem class
- Parameters
-
componentsManager | The ComponentManager that will be used to get the components of the entities. |
entityManager | The entity manager that will be used to get the entities that have the components that the system will use. |
◆ ~CollisionSystem()
ECS::CollisionSystem::~CollisionSystem |
( |
| ) |
|
|
default |
◆ bonusCollisionManagement()
void ECS::CollisionSystem::bonusCollisionManagement |
( |
Entity |
entityPlayer, |
|
|
Entity |
entityBonus |
|
) |
| |
|
protected |
◆ checkIsValidEntity()
bool ECS::CollisionSystem::checkIsValidEntity |
( |
Entity |
entity | ) |
|
|
virtual |
If the entity has a position, hitbox, and health component, then it's valid
- Parameters
-
entity | The entity to check |
- Returns
- A boolean value.
Implements ECS::System.
◆ update()
void ECS::CollisionSystem::update |
( |
| ) |
|
|
virtual |
If the entity is valid, check if it's colliding with another entity, and if it is, remove health from the entity
Implements ECS::System.
The documentation for this class was generated from the following files: