|
Bomberman
|
#include <SpeedComponent.hpp>
Public Member Functions | |
| WAL::Component * | clone (WAL::Entity &entity) const override |
| Clone a component for another or the same entity. More... | |
| SpeedComponent (WAL::Entity &entity) | |
| Initialize a new controllable component. More... | |
| SpeedComponent (WAL::Entity &entity, float entitySpeed) | |
| Initialize a new controllable component. More... | |
| SpeedComponent (const SpeedComponent &)=default | |
| A Controllable component is copy constructable. More... | |
| ~SpeedComponent () override=default | |
| default destructor More... | |
| SpeedComponent & | operator= (const SpeedComponent &)=delete |
| A Controllable 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 | |
| float | speed = .15f |
| entity speed 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 |
Initialize a new controllable component.
|
explicit |
Initialize a new controllable component.
|
default |
A Controllable component is copy constructable.
|
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 Controllable component can't be assigned.
| float BBM::SpeedComponent::speed = .15f |
entity speed
1.8.17