|
Bomberman
|
#include <LevitateComponent.hpp>
Public Member Functions | |
| WAL::Component * | clone (WAL::Entity &entity) const override |
| Clone a component for another or the same entity. More... | |
| LevitateComponent (WAL::Entity &entity) | |
| Create a new levitate component. More... | |
| LevitateComponent (WAL::Entity &entity, float entityY) | |
| Create a new levitate component. More... | |
| LevitateComponent (const LevitateComponent &)=default | |
| A Levitate component is copy constructable. More... | |
| ~LevitateComponent () override=default | |
| default destructor More... | |
| LevitateComponent & | operator= (const LevitateComponent &)=delete |
| A Levitate 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 | |
| bool | up = true |
| Go down or up. More... | |
| float | y |
| Original y of the entity. 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 |
Create a new levitate component.
| BBM::LevitateComponent::LevitateComponent | ( | WAL::Entity & | entity, |
| float | entityY | ||
| ) |
Create a new levitate component.
|
default |
A Levitate 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 Levitate component can't be assigned.
| bool BBM::LevitateComponent::up = true |
Go down or up.
| float BBM::LevitateComponent::y |
Original y of the entity.
1.8.17