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

#include <Drawable3DComponent.hpp>

Inheritance diagram for BBM::Drawable3DComponent:
Collaboration diagram for BBM::Drawable3DComponent:

Public Member Functions

 Drawable3DComponent (WAL::Entity &entity, std::shared_ptr< RAY::Drawables::ADrawable3D > drawable3D)
 ctor More...
 
template<typename T , typename ... Params>
 Drawable3DComponent (WAL::Entity &entity, WAL::TypeHolder< T >, Params &&...params)
 ctor More...
 
WAL::Componentclone (WAL::Entity &entity) const override
 Clone a component for another or the same entity. More...
 
 Drawable3DComponent (const Drawable3DComponent &)=default
 Default copy ctor. More...
 
 ~Drawable3DComponent () override=default
 Default dtor. More...
 
Drawable3DComponentoperator= (const Drawable3DComponent &)=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

std::shared_ptr< RAY::Drawables::ADrawable3Ddrawable
 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

◆ Drawable3DComponent() [1/3]

BBM::Drawable3DComponent::Drawable3DComponent ( WAL::Entity entity,
std::shared_ptr< RAY::Drawables::ADrawable3D drawable3D 
)
inline

ctor

◆ Drawable3DComponent() [2/3]

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

ctor

◆ Drawable3DComponent() [3/3]

BBM::Drawable3DComponent::Drawable3DComponent ( const Drawable3DComponent )
default

Default copy ctor.

◆ ~Drawable3DComponent()

BBM::Drawable3DComponent::~Drawable3DComponent ( )
overridedefault

Default dtor.

Member Function Documentation

◆ clone()

WAL::Component* BBM::Drawable3DComponent::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=()

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

Default assignment operator.

Member Data Documentation

◆ drawable

std::shared_ptr<RAY::Drawables::ADrawable3D> BBM::Drawable3DComponent::drawable

The type of the component.


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