1
0
mirror of https://github.com/rwengine/openrw.git synced 2024-11-09 12:22:34 +01:00
openrw/rwgame/states/DebugState.hpp
Daniel Evans ddb62ed3cd Rewrite of camera and character look code
Make states responsible for interpolating camera transformation
Apply look direction to character orientation
2016-12-04 01:06:27 +00:00

42 lines
989 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 = {});
virtual void enter();
virtual void exit();
virtual void tick(float dt);
virtual void draw(GameRenderer* r);
virtual void handleEvent(const SDL_Event& event);
void printCameraDetails();
void spawnVehicle(unsigned int id);
void spawnFollower(unsigned int id);
void giveItem(int slot);
const ViewCamera& getCamera(float alpha);
};
#endif // DEBUGSTATE_HPP