Bomberman
Public Types | Public Member Functions | Public Attributes | List of all members
BBM::IntroAnimationComponent Class Reference

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>

Inheritance diagram for BBM::IntroAnimationComponent:
Collaboration diagram for BBM::IntroAnimationComponent:

Public Types

enum  animationSteps {
  epitechLogo, boxBlinking, topLeftgrowing, bottomRightGrowing,
  lettersTyping, fading, prompt
}
 

Public Member Functions

Componentclone (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...
 
IntroAnimationComponentoperator= (const IntroAnimationComponent &)=delete
 A IntroAnimationComponent is not assignable. More...
 
- Public Member Functions inherited from WAL::Component
Componentoperator= (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...
 

Detailed Description

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.

Member Enumeration Documentation

◆ animationSteps

Enumerator
epitechLogo 
boxBlinking 
topLeftgrowing 
bottomRightGrowing 
lettersTyping 
fading 
prompt 

Constructor & Destructor Documentation

◆ IntroAnimationComponent() [1/2]

BBM::IntroAnimationComponent::IntroAnimationComponent ( WAL::Entity entity)
explicit

Create a new, default IntroAnimationComponent.

Parameters
entityThe entity attached to this component.

◆ IntroAnimationComponent() [2/2]

BBM::IntroAnimationComponent::IntroAnimationComponent ( const IntroAnimationComponent other)
default

A IntroAnimationComponent is copy constructable.

Parameters
otherThe other IntroAnimationComponent to copy.

◆ ~IntroAnimationComponent()

BBM::IntroAnimationComponent::~IntroAnimationComponent ( )
overridedefault

A default destructor.

Member Function Documentation

◆ clone()

WAL::Component * BBM::IntroAnimationComponent::clone ( WAL::Entity entity) const
overridevirtual

Clone a component for another or the same entity.

Parameters
entityThe entity that owns the ne component.

Implements WAL::Component.

◆ operator=()

IntroAnimationComponent& BBM::IntroAnimationComponent::operator= ( const IntroAnimationComponent )
delete

A IntroAnimationComponent is not assignable.

Member Data Documentation

◆ currentStep

enum animationSteps BBM::IntroAnimationComponent::currentStep = epitechLogo

◆ frameCounter

unsigned int BBM::IntroAnimationComponent::frameCounter = 0

The documentation for this class was generated from the following files: