2014-05-31 09:18:50 +02:00
|
|
|
#ifndef DEBUGSTATE_HPP
|
|
|
|
#define DEBUGSTATE_HPP
|
|
|
|
|
|
|
|
#include "State.hpp"
|
|
|
|
|
|
|
|
class DebugState : public State
|
|
|
|
{
|
2014-08-12 22:15:26 +02:00
|
|
|
ViewCamera _debugCam;
|
2014-06-08 23:18:03 +02:00
|
|
|
glm::vec3 _movement;
|
2014-08-12 22:15:26 +02:00
|
|
|
glm::vec2 _debugLook;
|
2014-06-08 23:18:03 +02:00
|
|
|
bool _freeLook;
|
|
|
|
bool _sonicMode;
|
2014-05-31 09:18:50 +02:00
|
|
|
public:
|
2014-09-16 20:22:43 +02:00
|
|
|
DebugState(RWGame* game, const glm::vec3& vp = {}, const glm::quat& vd = {});
|
2014-05-31 09:18:50 +02:00
|
|
|
|
|
|
|
virtual void enter();
|
|
|
|
virtual void exit();
|
|
|
|
|
|
|
|
virtual void tick(float dt);
|
2015-04-04 18:48:36 +02:00
|
|
|
virtual void draw(GameRenderer* r);
|
2014-05-31 09:18:50 +02:00
|
|
|
|
|
|
|
virtual void handleEvent(const sf::Event& event);
|
2014-06-01 14:17:35 +02:00
|
|
|
|
2016-04-18 03:31:52 +02:00
|
|
|
void printCameraDetails();
|
|
|
|
|
2014-06-01 14:17:35 +02:00
|
|
|
void spawnVehicle(unsigned int id);
|
2014-08-12 22:15:26 +02:00
|
|
|
|
|
|
|
const ViewCamera& getCamera();
|
2014-05-31 09:18:50 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // DEBUGSTATE_HPP
|