1
0
mirror of https://github.com/rwengine/openrw.git synced 2024-11-07 11:22:45 +01:00
openrw/rwgame/states/DebugState.hpp

42 lines
909 B
C++
Raw Normal View History

#ifndef DEBUGSTATE_HPP
#define DEBUGSTATE_HPP
#include "State.hpp"
2016-09-09 22:13:20 +02:00
class DebugState : public State {
ViewCamera _debugCam;
glm::vec3 _movement;
glm::vec2 _debugLook;
bool _freeLook = false;
bool _sonicMode = false;
bool _invertedY;
Menu* createDebugMenu();
Menu* createMapMenu();
Menu* createVehicleMenu();
Menu* createAIMenu();
Menu* createWeaponMenu();
public:
2016-09-09 22:13:20 +02:00
DebugState(RWGame* game, const glm::vec3& vp = {},
const glm::quat& vd = {});
2016-09-09 22:13:20 +02:00
virtual void enter();
virtual void exit();
2016-09-09 22:13:20 +02:00
virtual void tick(float dt);
virtual void draw(GameRenderer* r);
2016-09-09 22:13:20 +02:00
virtual void handleEvent(const SDL_Event& event);
2014-06-01 14:17:35 +02:00
2016-09-09 22:13:20 +02:00
void printCameraDetails();
2016-09-09 22:13:20 +02:00
void spawnVehicle(unsigned int id);
void spawnFollower(unsigned int id);
void giveItem(InventoryItem* item);
2016-09-09 22:13:20 +02:00
const ViewCamera& getCamera();
};
2016-09-09 22:13:20 +02:00
#endif // DEBUGSTATE_HPP