|
Bomberman
|
#include <TimerComponent.hpp>
Public Member Functions | |
| Component * | clone (WAL::Entity &entity) const override |
| Clone a component for another or the same entity. More... | |
| TimerComponent (WAL::Entity &entity, std::chrono::nanoseconds delay) | |
| A default constructor. More... | |
| TimerComponent (WAL::Entity &entity, std::chrono::nanoseconds delay, const WAL::Callback< WAL::Entity &, WAL::Wal & > &timerCallback) | |
| Create a timer with a callback. More... | |
| TimerComponent (const TimerComponent &)=default | |
| A timer component is copy constructable. More... | |
| ~TimerComponent () override=default | |
| A default destructor. More... | |
| TimerComponent & | operator= (const TimerComponent &)=delete |
| A 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 | |
| bool | disabled = false |
| Is the ticking of this component disabled? More... | |
| WAL::Callback< WAL::Entity &, WAL::Wal & > | callback |
| The callback to call when the timer ring. More... | |
| std::chrono::nanoseconds | ringIn |
| The ring delay of this timer component. 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... | |
| BBM::TimerComponent::TimerComponent | ( | WAL::Entity & | entity, |
| std::chrono::nanoseconds | delay | ||
| ) |
A default constructor.
| BBM::TimerComponent::TimerComponent | ( | WAL::Entity & | entity, |
| std::chrono::nanoseconds | delay, | ||
| const WAL::Callback< WAL::Entity &, WAL::Wal & > & | timerCallback | ||
| ) |
Create a timer with a callback.
|
default |
A timer 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 component is not assignable.
| WAL::Callback<WAL::Entity &, WAL::Wal &> BBM::TimerComponent::callback |
The callback to call when the timer ring.
| bool BBM::TimerComponent::disabled = false |
Is the ticking of this component disabled?
| std::chrono::nanoseconds BBM::TimerComponent::ringIn |
The ring delay of this timer component.
1.8.17