1
0
mirror of https://github.com/rwengine/openrw.git synced 2024-11-07 19:32:49 +01:00
openrw/rwgame/states/DebugState.hpp
Lucas Eriksson 3e96ad9c92 Stop using default initialization onglm datatypes.
It results in undefined behaviour with glm 0.9.9
2018-02-09 22:33:10 +00:00

44 lines
1022 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 = false;
bool _sonicMode = false;
bool _invertedY;
std::shared_ptr<Menu> createDebugMenu();
std::shared_ptr<Menu> createMapMenu();
std::shared_ptr<Menu> createVehicleMenu();
std::shared_ptr<Menu> createAIMenu();
std::shared_ptr<Menu> createWeaponMenu();
public:
DebugState(RWGame* game, const glm::vec3& vp = {},
const glm::quat& vd = {1.0f,0.0f,0.0f,0.0f});
void enter() override;
void exit() override;
void tick(float dt) override;
void draw(GameRenderer* r) override;
void handleEvent(const SDL_Event& event) override;
void printCameraDetails();
void spawnVehicle(unsigned int id);
void spawnFollower(unsigned int id);
void giveItem(int slot);
const ViewCamera& getCamera(float) override;
};
#endif // DEBUGSTATE_HPP