mirror of
https://github.com/rwengine/openrw.git
synced 2024-11-07 19:32:49 +01:00
a54e4a384e
* Move test spawn to the parking garage * Add --test option to start a new testing session * Add information about camera position to DebugState
30 lines
559 B
C++
30 lines
559 B
C++
#ifndef DEBUGSTATE_HPP
|
|
#define DEBUGSTATE_HPP
|
|
|
|
#include "State.hpp"
|
|
|
|
class DebugState : public State
|
|
{
|
|
ViewCamera _debugCam;
|
|
glm::vec3 _movement;
|
|
glm::vec2 _debugLook;
|
|
bool _freeLook;
|
|
bool _sonicMode;
|
|
public:
|
|
DebugState(RWGame* game, const glm::vec3& vp = {}, const glm::quat& vd = {});
|
|
|
|
virtual void enter();
|
|
virtual void exit();
|
|
|
|
virtual void tick(float dt);
|
|
virtual void draw(GameRenderer* r);
|
|
|
|
virtual void handleEvent(const sf::Event& event);
|
|
|
|
void spawnVehicle(unsigned int id);
|
|
|
|
const ViewCamera& getCamera();
|
|
};
|
|
|
|
#endif // DEBUGSTATE_HPP
|