Go to the documentation of this file.
64 std::chrono::nanoseconds dtime)
override;
CollisionComponent::CollidedAxis operator|(CollisionComponent::CollidedAxis first, CollisionComponent::CollidedAxis second)
Definition: CollisionComponent.cpp:58
Definition: BombHolderComponent.hpp:17
@ UP
Definition: BombHolderSystem.hpp:19
ExpansionDirection
Definition: BombHolderSystem.hpp:17
@ LEFT
Definition: BombHolderSystem.hpp:21
BombHolderSystem(WAL::Wal &wal)
A default constructor.
Definition: BombHolderSystem.cpp:39
@ BACK
Definition: BombHolderSystem.hpp:24
~BombHolderSystem() override=default
A default destructor.
void _spawnBomb(Vector3f position, BombHolderComponent &holder)
Spawn a bomb at the specified position.
Definition: BombHolderSystem.cpp:120
Definition: AnimationsComponent.cpp:9
The main WAL class, it is used to setup and run the ECS.
Definition: Wal.hpp:27
An entity of the WAL's ECS.
Definition: Entity.hpp:20
static void _bombCollide(WAL::Entity &entity, const WAL::Entity &wall, BBM::CollisionComponent::CollidedAxis collidedAxis)
The method called when a player collide with a bomb.
Definition: BombHolderSystem.cpp:28
@ DOWN
Definition: BombHolderSystem.hpp:20
CollidedAxis
Used to tell the collided axis.
Definition: CollisionComponent.hpp:19
The system that allow one to place bombs.
Definition: BombHolderSystem.hpp:34
BombHolderSystem & operator=(const BombHolderSystem &)=delete
A bomb holder system is not assignable.
@ RIGHT
Definition: BombHolderSystem.hpp:22
static std::chrono::nanoseconds explosionTimer
The explosion time of new bombs.
Definition: BombHolderSystem.hpp:60
A base system of WAL.
Definition: System.hpp:22
static void _bombExplosion(WAL::Entity &bomb, WAL::Wal &)
The method triggered when the bomb explode.
Definition: BombHolderSystem.cpp:112
@ FRONT
Definition: BombHolderSystem.hpp:23
void onUpdate(WAL::ViewEntity< PositionComponent, BombHolderComponent, ControllableComponent > &entity, std::chrono::nanoseconds dtime) override
Definition: BombHolderSystem.cpp:178
static void _dispatchExplosion(const Vector3f &position, WAL::Wal &wal, int size, ExpansionDirection expansionDirections=ExpansionDirection::DOWN|ExpansionDirection::UP|ExpansionDirection::FRONT|ExpansionDirection::BACK|ExpansionDirection::LEFT|ExpansionDirection::RIGHT)
Spawn a bomb at the specified position.
Definition: BombHolderSystem.cpp:43