|
Bomberman
|
#include <BasicBombComponent.hpp>
Public Member Functions | |
| WAL::Component * | clone (WAL::Entity &entity) const override |
| Clone a component for another or the same entity. More... | |
| BasicBombComponent (WAL::Entity &entity, int damageHit, int radius, std::vector< unsigned > ignored) | |
| A component can't be instantiated, it should be derived. More... | |
| BasicBombComponent (const BasicBombComponent &)=default | |
| A component can't be instantiated, it should be derived. More... | |
| ~BasicBombComponent () override=default | |
| default destructor More... | |
| BasicBombComponent & | operator= (const BasicBombComponent &)=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 | |
| const int | explosionRadius = 3 |
| The radius of the explosion. More... | |
| const int | damage = 1 |
| The damage made by the explosion on an entity. More... | |
| std::vector< unsigned > | ignoredEntities |
| The list of IDs of ignored entities. 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.
|
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.
| const int BBM::BasicBombComponent::damage = 1 |
The damage made by the explosion on an entity.
| const int BBM::BasicBombComponent::explosionRadius = 3 |
The radius of the explosion.
| std::vector<unsigned> BBM::BasicBombComponent::ignoredEntities |
The list of IDs of ignored entities.
1.8.17