Bomberman
IAControllableComponent.hpp
Go to the documentation of this file.
1 /*
2 ** EPITECH PROJECT, 2021
3 ** Bomberman
4 ** File description:
5 ** IAComponent
6 */
7 
8 #ifndef IACOMPONENT_HPP_
9 #define IACOMPONENT_HPP_
10 
11 #include "Component/Component.hpp"
12 #include "Entity/Entity.hpp"
13 #include "Models/Vector3.hpp"
14 #include "LuaGate.hpp"
15 
16 namespace BBM
17 {
19  {
20  private:
22  const std::string _scriptPath;
23  public:
24 
26  bool registered;
27 
30 
32  WAL::Component *clone(WAL::Entity &entity) const override;
33 
35  IAControllableComponent(WAL::Entity &entity, std::string scripPath);
36 
39 
41  ~IAControllableComponent() override = default;
42 
45  protected:
46  };
47 }
48 
49 
50 #endif /* !IACOMPONENT_HPP_ */
WAL::Component
Represent a single component of WAL.
Definition: Component.hpp:17
Vector3.hpp
BBM
Definition: AnimationsComponent.cpp:9
Entity.hpp
WAL::Entity
An entity of the WAL's ECS.
Definition: Entity.hpp:20
BBM::IAControllableComponent
Definition: IAControllableComponent.hpp:18
Component.hpp
BBM::IAControllableComponent::clone
WAL::Component * clone(WAL::Entity &entity) const override
Clone a component for another or the same entity.
Definition: IAControllableComponent.cpp:36
LuaG::State
Definition: LuaGate.hpp:12
BBM::IAControllableComponent::_state
LuaG::State _state
LuaGate state.
Definition: IAControllableComponent.hpp:29
LuaGate.hpp
BBM::IAControllableComponent::_scriptPath
const std::string _scriptPath
path to the lua script
Definition: IAControllableComponent.hpp:22
BBM::IAControllableComponent::registered
bool registered
Is the binding registered.
Definition: IAControllableComponent.hpp:26
BBM::IAControllableComponent::operator=
IAControllableComponent & operator=(const IAControllableComponent &)=delete
A IA component can't be assigned.
BBM::IAControllableComponent::~IAControllableComponent
~IAControllableComponent() override=default
default destructor
BBM::IAControllableComponent::IAControllableComponent
IAControllableComponent(WAL::Entity &entity, std::string scripPath)
Constructor.
Definition: IAControllableComponent.cpp:15