|
Bomberman
|
A basic position component. More...
#include <ScoreComponent.hpp>
Public Member Functions | |
| WAL::Component * | clone (WAL::Entity &entity) const override |
| Clone a component for another or the same entity. More... | |
| ScoreComponent (WAL::Entity &entity) | |
| Create a new ScoreComponent linked to a specific entity. More... | |
| ScoreComponent (const ScoreComponent &)=default | |
| A position component is copy constructable. More... | |
| ~ScoreComponent () override=default | |
| A default destructor. More... | |
| ScoreComponent & | operator= (const ScoreComponent &)=delete |
| A position component is not assignable. 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 | |
| std::chrono::nanoseconds | aliveTime |
| the score of the player 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... | |
A basic position component.
|
explicit |
Create a new ScoreComponent linked to a specific entity.
|
default |
A position component is copy constructable.
|
overridedefault |
A 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 position component is not assignable.
| std::chrono::nanoseconds BBM::ScoreComponent::aliveTime |
the score of the player
1.8.17