1
0
mirror of https://github.com/rwengine/openrw.git synced 2024-11-22 18:32:44 +01:00
openrw/rwgame/ingamestate.hpp
2015-01-25 18:42:29 +00:00

38 lines
705 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(sf::RenderWindow& w);
virtual void handleEvent(const sf::Event& event);
const ViewCamera& getCamera();
private:
void drawHUD(const sf::RenderWindow& w);
};
#endif // INGAMESTATE_HPP