|
Bomberman
|
A basic position component. More...
#include <PositionComponent.hpp>
Public Member Functions | |
| float | getX () const |
| Get the X position of this entity. More... | |
| float | getY () const |
| Get the Y position of this entity. More... | |
| float | getZ () const |
| Get the Z position of this entity. More... | |
| WAL::Component * | clone (WAL::Entity &entity) const override |
| Clone a component for another or the same entity. More... | |
| PositionComponent (WAL::Entity &entity) | |
| Create a new PositionComponent linked to a specific entity. More... | |
| PositionComponent (WAL::Entity &entity, Vector3f pos) | |
| Create a new PositionComponent at a certain position. More... | |
| PositionComponent (WAL::Entity &entity, float x, float y, float z) | |
| Create a new PositionComponent at a certain position. More... | |
| PositionComponent (const PositionComponent &)=default | |
| A position component is copy constructable. More... | |
| ~PositionComponent () override=default | |
| A default destructor. More... | |
| PositionComponent & | operator= (const PositionComponent &)=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 | |
| Vector3f | position |
| Get the editable position of this 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... | |
A basic position component.
|
explicit |
Create a new PositionComponent linked to a specific entity.
| BBM::PositionComponent::PositionComponent | ( | WAL::Entity & | entity, |
| Vector3f | pos | ||
| ) |
Create a new PositionComponent at a certain position.
| BBM::PositionComponent::PositionComponent | ( | WAL::Entity & | entity, |
| float | x, | ||
| float | y, | ||
| float | z | ||
| ) |
Create a new PositionComponent at a certain position.
|
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.
| float BBM::PositionComponent::getX | ( | ) | const |
Get the X position of this entity.
| float BBM::PositionComponent::getY | ( | ) | const |
Get the Y position of this entity.
| float BBM::PositionComponent::getZ | ( | ) | const |
Get the Z position of this entity.
|
delete |
A position component is not assignable.
| Vector3f BBM::PositionComponent::position |
Get the editable position of this entity.
1.8.17