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

#include <IAControllableComponent.hpp>

Inheritance diagram for BBM::IAControllableComponent:
Collaboration diagram for BBM::IAControllableComponent:

Public Member Functions

WAL::Componentclone (WAL::Entity &entity) const override
 Clone a component for another or the same entity. More...
 
 IAControllableComponent (WAL::Entity &entity, std::string scripPath)
 Constructor. More...
 
 IAControllableComponent (const IAControllableComponent &)=default
 A IA component can't be instantiated, it should be derived. More...
 
 ~IAControllableComponent () override=default
 default destructor More...
 
IAControllableComponentoperator= (const IAControllableComponent &)=delete
 A IA component can't be assigned. 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 registered
 Is the binding registered. More...
 
LuaG::State _state
 LuaGate state. More...
 

Private Attributes

const std::string _scriptPath
 path to the lua script 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

◆ IAControllableComponent() [1/2]

BBM::IAControllableComponent::IAControllableComponent ( WAL::Entity entity,
std::string  scripPath 
)

Constructor.

◆ IAControllableComponent() [2/2]

BBM::IAControllableComponent::IAControllableComponent ( const IAControllableComponent )
default

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

◆ ~IAControllableComponent()

BBM::IAControllableComponent::~IAControllableComponent ( )
overridedefault

default destructor

Member Function Documentation

◆ clone()

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

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

A IA component can't be assigned.

Member Data Documentation

◆ _scriptPath

const std::string BBM::IAControllableComponent::_scriptPath
private

path to the lua script

◆ _state

LuaG::State BBM::IAControllableComponent::_state

LuaGate state.

◆ registered

bool BBM::IAControllableComponent::registered

Is the binding registered.


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