1
0
mirror of https://github.com/rwengine/openrw.git synced 2024-11-10 04:42:38 +01:00
openrw/rwgame/debugstate.hpp

43 lines
840 B
C++
Raw Normal View History

#ifndef DEBUGSTATE_HPP
#define DEBUGSTATE_HPP
#include <SDL2/SDL_events.h>
#include "State.hpp"
class DebugState : public State
{
ViewCamera _debugCam;
2014-06-08 23:18:03 +02:00
glm::vec3 _movement;
glm::vec2 _debugLook;
2014-06-08 23:18:03 +02:00
bool _freeLook;
bool _sonicMode;
bool _invertedY;
2016-06-17 00:31:05 +02:00
Menu* createDebugMenu();
Menu* createMapMenu();
Menu* createVehicleMenu();
Menu* createAIMenu();
2016-06-19 14:50:06 +02:00
Menu* createWeaponMenu();
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 SDL_Event& event);
2014-06-01 14:17:35 +02:00
void printCameraDetails();
2014-06-01 14:17:35 +02:00
void spawnVehicle(unsigned int id);
void spawnFollower(unsigned int id);
2016-06-19 14:50:06 +02:00
void giveItem(InventoryItem* item);
const ViewCamera& getCamera();
};
#endif // DEBUGSTATE_HPP