SDL SPOOKY PLATFORMER ENGINE
0.2.0
An implementation of a platformer using sdl, implemented using an entity component system and efficient collision management.
Main Page
Related Pages
Classes
Files
File List
File Members
include
component_system
ControllerComponent.hpp
Go to the documentation of this file.
1
#ifndef CONTROLLERCOMPONENT_HPP
2
#define CONTROLLERCOMPONENT_HPP
3
4
#include "
Component.hpp
"
5
#include "
PhysicsComponent.hpp
"
6
#include "
TinyMath.hpp
"
7
#include "SDL2/SDL.h"
8
#include "
GameManager.hpp
"
9
10
#include "
InputManager.hpp
"
11
12
#define PLAYER_SPEED 15
13
#define PLAYER_JUMP_VEL 30
14
15
class
ControllerComponent
:
public
Component
16
{
17
public
:
18
ControllerComponent
();
19
~ControllerComponent
();
20
21
void
Update
(
float
deltaTime);
22
private
:
23
PhysicsComponent
* physics =
nullptr
;
24
};
25
26
#endif
PhysicsComponent
Definition:
PhysicsComponent.hpp:8
ControllerComponent::Update
void Update(float deltaTime)
Update this component according to the deltaTime.
Definition:
ControllerComponent.cpp:12
ControllerComponent::~ControllerComponent
~ControllerComponent()
Definition:
ControllerComponent.cpp:8
ControllerComponent::ControllerComponent
ControllerComponent()
Definition:
ControllerComponent.cpp:4
Component
Definition:
Component.hpp:13
ControllerComponent
Definition:
ControllerComponent.hpp:15
InputManager.hpp
GameManager.hpp
TinyMath.hpp
PhysicsComponent.hpp
Component.hpp
Generated on Tue Mar 16 2021 02:10:18 for SDL SPOOKY PLATFORMER ENGINE by
1.4.1