|
Bomberman
|
#include <BombHolderComponent.hpp>
Public Member Functions | |
| WAL::Component * | clone (WAL::Entity &entity) const override |
| Clone a component for another or the same entity. More... | |
| BombHolderComponent (WAL::Entity &entity) | |
| A component can't be instantiated, it should be derived. More... | |
| BombHolderComponent (WAL::Entity &entity, unsigned int maxBombCount, unsigned int bombExplosionRadius=3) | |
| Constructor. More... | |
| BombHolderComponent (const BombHolderComponent &)=default | |
| A component can't be instantiated, it should be derived. More... | |
| ~BombHolderComponent () override=default | |
| default destructor More... | |
| BombHolderComponent & | operator= (const BombHolderComponent &)=delete |
| A component can't be assigned. More... | |
Public Member Functions inherited from WAL::Component | |
| Component & | operator= (const Component &)=delete |
| A component can't be assigned. More... | |
| virtual | ~Component ()=default |
| A virtual destructor. More... | |
| virtual void | onStart () |
| The entity or this component has just been enabled. More... | |
| virtual void | onStop () |
| The entity or this component has just been disable. More... | |
Public Attributes | |
| unsigned int | bombCount = 1 |
| The number of bomb that this entity hold. More... | |
| unsigned int | maxBombCount = 3 |
| The max number of bomb that this entity can have. More... | |
| std::chrono::nanoseconds | refillRate = 1s |
| The number of seconds of each refill. This variable is used to reset the nextBombRefill value. More... | |
| std::chrono::nanoseconds | nextBombRefill = refillRate |
| The number of nanosecond before the next bomb refill. More... | |
| unsigned int | explosionRadius = 3 |
| The radius of the explosion. More... | |
| int | damage = 1 |
| The damage made by the explosion on an entity. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from WAL::Component | |
| Component (Entity &entity) | |
| A component can't be instantiated, it should be derived. More... | |
| Component (const Component &)=default | |
| A component can't be instantiated, it should be derived. More... | |
Protected Attributes inherited from WAL::Component | |
| Entity & | _entity |
| The entity that own this component. More... | |
|
explicit |
A component can't be instantiated, it should be derived.
| BBM::BombHolderComponent::BombHolderComponent | ( | WAL::Entity & | entity, |
| unsigned int | maxBombCount, | ||
| unsigned int | bombExplosionRadius = 3 |
||
| ) |
Constructor.
|
default |
A component can't be instantiated, it should be derived.
|
overridedefault |
default destructor
|
overridevirtual |
Clone a component for another or the same entity.
| entity | The entity that owns the ne component. |
Implements WAL::Component.
|
delete |
A component can't be assigned.
| unsigned int BBM::BombHolderComponent::bombCount = 1 |
The number of bomb that this entity hold.
| int BBM::BombHolderComponent::damage = 1 |
The damage made by the explosion on an entity.
| unsigned int BBM::BombHolderComponent::explosionRadius = 3 |
The radius of the explosion.
| unsigned int BBM::BombHolderComponent::maxBombCount = 3 |
The max number of bomb that this entity can have.
| std::chrono::nanoseconds BBM::BombHolderComponent::nextBombRefill = refillRate |
The number of nanosecond before the next bomb refill.
| std::chrono::nanoseconds BBM::BombHolderComponent::refillRate = 1s |
The number of seconds of each refill. This variable is used to reset the nextBombRefill value.
1.8.17