Bomberman
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
WAL::Component Class Referenceabstract

Represent a single component of WAL. More...

#include <Component.hpp>

Inheritance diagram for WAL::Component:
Collaboration diagram for WAL::Component:

Public Member Functions

Componentoperator= (const Component &)=delete
 A component can't be assigned. More...
 
virtual ~Component ()=default
 A virtual destructor. More...
 
virtual Componentclone (Entity &entity) const =0
 Clone a component for another or the same entity. 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...
 

Protected Member Functions

 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

Entity_entity
 The entity that own this component. More...
 

Detailed Description

Represent a single component of WAL.

Constructor & Destructor Documentation

◆ Component() [1/2]

WAL::Component::Component ( Entity entity)
explicitprotected

A component can't be instantiated, it should be derived.

◆ Component() [2/2]

WAL::Component::Component ( const Component )
protecteddefault

A component can't be instantiated, it should be derived.

◆ ~Component()

virtual WAL::Component::~Component ( )
virtualdefault

A virtual destructor.

Member Function Documentation

◆ clone()

virtual Component* WAL::Component::clone ( Entity entity) const
pure virtual

◆ onStart()

void WAL::Component::onStart ( )
virtual

The entity or this component has just been enabled.

Reimplemented in BBM::ShaderComponentModel, BBM::GamepadComponent, and BBM::KeyboardComponent.

◆ onStop()

void WAL::Component::onStop ( )
virtual

The entity or this component has just been disable.

◆ operator=()

Component& WAL::Component::operator= ( const Component )
delete

A component can't be assigned.

Member Data Documentation

◆ _entity

Entity& WAL::Component::_entity
protected

The entity that own this component.


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