Jagguar Game Engine

Loading...
Searching...
No Matches
ControllerComponent.hpp
1#ifndef CONTROLLERCOMPONENT_HPP
2#define CONTROLLERCOMPONENT_HPP
3
4#include "TinyMath.hpp"
5#include "TransformComponent.hpp"
6#include <string>
7
11 class ControllerComponent : public Component {
12
13 public:
21 ControllerComponent(TransformComponent *_transform, Vec2D deltaPos);
22
26 ~ControllerComponent();
27
35 void Update(SDL_Event e, int frame, std::vector<std::string> broadcastList) override;
36
37 void ShowComponentEditor(bool* showEditor) override;
38
39 const char* ComponentTypeName() override {return "Controller Component";}
40
41 private:
42 Vec2D deltaPos;
43 TransformComponent *transform;
44};
45
46#endif
Component
Definition: Component.hpp:38
ControllerComponent
Definition: ControllerComponent.hpp:11
ControllerComponent::Update
void Update(SDL_Event e, int frame, std::vector< std::string > broadcastList) override
Definition: ControllerComponent.cpp:12
ControllerComponent::~ControllerComponent
~ControllerComponent()
Definition: ControllerComponent.cpp:9
ControllerComponent::ComponentTypeName
const char * ComponentTypeName() override
Definition: ControllerComponent.hpp:39
ControllerComponent::ShowComponentEditor
void ShowComponentEditor(bool *showEditor) override
Definition: ControllerComponent.cpp:27
TransformComponent
Definition: TransformComponent.hpp:12
Vec2D
Definition: TinyMath.hpp:14