1
0
mirror of https://github.com/rwengine/openrw.git synced 2024-10-05 08:37:20 +02:00
openrw/rwgame/ingamestate.hpp
Daniel Evans 9eb4c62a04 Improve HUD and UI rendering
+ Add names for some styles to reduce confusion
+ Move some HUD drawing into a seperate file
2015-02-15 12:41:51 +00:00

35 lines
648 B
C++

#ifndef INGAMESTATE_HPP
#define INGAMESTATE_HPP
#include "State.hpp"
class PlayerController;
class IngameState : public State
{
ViewCamera _look;
glm::vec2 _lookAngles;
glm::vec3 _movement;
float autolookTimer;
public:
IngameState(RWGame* game, bool test = false);
void startTest();
void spawnPlayerVehicle();
/** shortcut for getWorld()->state.player->getCharacter() */
PlayerController* getPlayer();
virtual void enter();
virtual void exit();
virtual void tick(float dt);
virtual void draw(GameRenderer* r);
virtual void handleEvent(const sf::Event& event);
const ViewCamera& getCamera();
};
#endif // INGAMESTATE_HPP