Files
escape-the-dawn/Escape-the-Dawn/Systems/PlayerSystem.h
T
ViktorLjung 4b9cb71cca Fixad FOV
Levelgen Spawnfrequency
2014-03-14 00:57:52 +01:00

47 lines
778 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_maxspeed;
float m_poweruptimeleft;
};
}
#endif // InputSystem_h__