1
0
mirror of https://github.com/rwengine/openrw.git synced 2024-09-18 16:32:32 +02:00
openrw/rwgame/ingamestate.hpp
2014-09-16 19:22:43 +01:00

35 lines
607 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;
public:
IngameState(RWGame* game, bool test = false);
void startTest();
void spawnPlayerVehicle();
void updateView();
/** shortcut for getWorld()->state.player->getCharacter() */
PlayerController* getPlayer();
virtual void enter();
virtual void exit();
virtual void tick(float dt);
virtual void handleEvent(const sf::Event& event);
const ViewCamera& getCamera();
};
#endif // INGAMESTATE_HPP