Files
escape-the-dawn/Escape-the-Dawn/Systems/PlayerSystem.h
T
ViktorLjung 18f7b977a3 Merge branch 'master' of github.com:sippeangelo/Escape-the-Dawn
Conflicts:
	Escape-the-Dawn/Systems/PlayerSystem.cpp
2014-03-13 23:08:56 +01:00

44 lines
754 B
C++

#ifndef PlayerSystem_h__
#define PlayerSystem_h__
#include <array>
#include "System.h"
#include "Components/Transform.h"
#include "Components/Input.h"
#include "Components/Collision.h"
#include "Components/Camera.h"
#include "Components/Bounds.h"
#include "Components/PowerUp.h"
#include "logging.h"
namespace Systems
{
class PlayerSystem : public System
{
public:
PlayerSystem(World* world);
void Update(double dt) override;
void UpdateEntity(double dt, EntityID entity, EntityID parent) override;
private:
float m_PlayerSpeed;
glm::vec3 m_PlayerOriginalBounds;
glm::vec3 m_CameraOffset;
glm::quat m_CameraOrientation;
bool freecamEnabled;
float m_basespeed;
float m_poweruptimeleft;
};
}
#endif // InputSystem_h__