|
Bomberman
|
A basic color component. More...
#include <ColorComponent.hpp>
Public Member Functions | |
| WAL::Component * | clone (WAL::Entity &entity) const override |
| Clone a component for another or the same entity. More... | |
| ColorComponent (WAL::Entity &entity, RAY::Color componentColor) | |
| Create a new ColorComponent at a certain color. More... | |
| ColorComponent (WAL::Entity &entity, unsigned char r, unsigned char g, unsigned char b, unsigned char a) | |
| Create a new ColorComponent at a certain color. More... | |
| ColorComponent (const ColorComponent &)=default | |
| A color component is copy constructable. More... | |
| ~ColorComponent () override=default | |
| A default destructor. More... | |
| ColorComponent & | operator= (const ColorComponent &)=delete |
| A color 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 | |
| RAY::Color | color |
| Get the editable color 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 color component.
| BBM::ColorComponent::ColorComponent | ( | WAL::Entity & | entity, |
| RAY::Color | componentColor | ||
| ) |
Create a new ColorComponent at a certain color.
| BBM::ColorComponent::ColorComponent | ( | WAL::Entity & | entity, |
| unsigned char | r, | ||
| unsigned char | g, | ||
| unsigned char | b, | ||
| unsigned char | a | ||
| ) |
Create a new ColorComponent at a certain color.
|
default |
A color 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 color component is not assignable.
| RAY::Color BBM::ColorComponent::color |
Get the editable color of this entity.
1.8.17