|
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 <IntroAnimationComponent.hpp>
Public Types | |
| enum | animationSteps { epitechLogo, boxBlinking, topLeftgrowing, bottomRightGrowing, lettersTyping, fading, prompt } |
Public Member Functions | |
| Component * | clone (WAL::Entity &entity) const override |
| Clone a component for another or the same entity. More... | |
| IntroAnimationComponent (WAL::Entity &entity) | |
| Create a new, default IntroAnimationComponent. More... | |
| IntroAnimationComponent (const IntroAnimationComponent &other)=default | |
| A IntroAnimationComponent is copy constructable. More... | |
| ~IntroAnimationComponent () override=default | |
| A default destructor. More... | |
| IntroAnimationComponent & | operator= (const IntroAnimationComponent &)=delete |
| A IntroAnimationComponent 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 | |
| unsigned int | frameCounter = 0 |
| enum animationSteps | currentStep = epitechLogo |
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 IntroAnimationComponent.
| entity | The entity attached to this component. |
|
default |
A IntroAnimationComponent is copy constructable.
| other | The other IntroAnimationComponent 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 IntroAnimationComponent is not assignable.
| enum animationSteps BBM::IntroAnimationComponent::currentStep = epitechLogo |
| unsigned int BBM::IntroAnimationComponent::frameCounter = 0 |
1.8.17