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

#include <Drawable2DComponent.hpp>

Inheritance diagram for BBM::Drawable2DComponent:
Collaboration diagram for BBM::Drawable2DComponent:

Public Member Functions

 Drawable2DComponent (WAL::Entity &entity, std::shared_ptr< RAY::Drawables::ADrawable2D > drawable2D, bool drawBehind3D=false)
 ctor More...
 
template<typename T , typename ... Params>
 Drawable2DComponent (WAL::Entity &entity, WAL::TypeHolder< T >, Params &&...params)
 ctor More...
 
template<typename T , typename ... Params>
 Drawable2DComponent (WAL::Entity &entity, WAL::TypeHolder< T >, bool drawBehind3D, Params &&...params)
 ctor More...
 
WAL::Componentclone (WAL::Entity &entity) const override
 Clone a component for another or the same entity. More...
 
 Drawable2DComponent (const Drawable2DComponent &)=default
 Default copy ctor. More...
 
 ~Drawable2DComponent () override=default
 Default dtor. More...
 
Drawable2DComponentoperator= (const Drawable2DComponent &)=delete
 Default assignment operator. 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

bool drawBefore3D = false
 Tells the renderer to draw in a particular order. More...
 
std::shared_ptr< RAY::Drawables::ADrawable2Ddrawable
 The type of the component. 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...
 

Constructor & Destructor Documentation

◆ Drawable2DComponent() [1/4]

BBM::Drawable2DComponent::Drawable2DComponent ( WAL::Entity entity,
std::shared_ptr< RAY::Drawables::ADrawable2D drawable2D,
bool  drawBehind3D = false 
)
inline

ctor

◆ Drawable2DComponent() [2/4]

template<typename T , typename ... Params>
BBM::Drawable2DComponent::Drawable2DComponent ( WAL::Entity entity,
WAL::TypeHolder< T >  ,
Params &&...  params 
)
inlineexplicit

ctor

◆ Drawable2DComponent() [3/4]

template<typename T , typename ... Params>
BBM::Drawable2DComponent::Drawable2DComponent ( WAL::Entity entity,
WAL::TypeHolder< T >  ,
bool  drawBehind3D,
Params &&...  params 
)
inlineexplicit

ctor

◆ Drawable2DComponent() [4/4]

BBM::Drawable2DComponent::Drawable2DComponent ( const Drawable2DComponent )
default

Default copy ctor.

◆ ~Drawable2DComponent()

BBM::Drawable2DComponent::~Drawable2DComponent ( )
overridedefault

Default dtor.

Member Function Documentation

◆ clone()

WAL::Component* BBM::Drawable2DComponent::clone ( WAL::Entity entity) const
inlineoverridevirtual

Clone a component for another or the same entity.

Parameters
entityThe entity that owns the ne component.

Implements WAL::Component.

◆ operator=()

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

Default assignment operator.

Member Data Documentation

◆ drawable

std::shared_ptr<RAY::Drawables::ADrawable2D> BBM::Drawable2DComponent::drawable

The type of the component.

◆ drawBefore3D

bool BBM::Drawable2DComponent::drawBefore3D = false

Tells the renderer to draw in a particular order.


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