|
Bomberman
|
A component to slowly center entities to the middle of their current block. This allow flexibility in their movement will preventing them from getting stuck at every corner. More...
#include <GridCenteredComponent.hpp>
Public Member Functions | |
| Component * | clone (WAL::Entity &entity) const override |
| Clone a component for another or the same entity. More... | |
| GridCenteredComponent (WAL::Entity &entity) | |
| Create a new, default GridCenteredComponent. More... | |
| GridCenteredComponent (const GridCenteredComponent &other)=default | |
| A GridCenteredComponent is copy constructable. More... | |
| ~GridCenteredComponent () override=default | |
| A default destructor. More... | |
| GridCenteredComponent & | operator= (const GridCenteredComponent &)=delete |
| A GridCenteredComponent 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 | |
| float | force = 1 |
| The force factor applied at each frame. 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 component to slowly center entities to the middle of their current block. This allow flexibility in their movement will preventing them from getting stuck at every corner.
|
explicit |
Create a new, default GridCenteredComponent.
| entity | The entity attached to this component. |
|
default |
A GridCenteredComponent is copy constructable.
| other | The other GridCenteredComponent to copy. |
|
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 GridCenteredComponent is not assignable.
| float BBM::GridCenteredComponent::force = 1 |
The force factor applied at each frame.
1.8.17