1
0
mirror of https://github.com/rwengine/openrw.git synced 2024-11-07 19:32:49 +01:00
openrw/rwgame/ingamestate.hpp

35 lines
648 B
C++
Raw Normal View History

2014-05-26 06:34:49 +02:00
#ifndef INGAMESTATE_HPP
#define INGAMESTATE_HPP
#include "State.hpp"
class PlayerController;
2014-05-26 06:34:49 +02:00
class IngameState : public State
{
ViewCamera _look;
2014-05-26 06:34:49 +02:00
glm::vec2 _lookAngles;
glm::vec3 _movement;
2014-12-15 00:21:30 +01:00
float autolookTimer;
2014-05-26 06:34:49 +02:00
public:
IngameState(RWGame* game, bool test = false);
2014-05-26 06:34:49 +02:00
void startTest();
2014-05-26 06:34:49 +02:00
void spawnPlayerVehicle();
/** shortcut for getWorld()->state.player->getCharacter() */
PlayerController* getPlayer();
2014-05-26 06:34:49 +02:00
virtual void enter();
virtual void exit();
virtual void tick(float dt);
2015-02-07 23:55:06 +01:00
virtual void draw(GameRenderer* r);
2014-05-26 06:34:49 +02:00
virtual void handleEvent(const sf::Event& event);
const ViewCamera& getCamera();
2014-05-26 06:34:49 +02:00
};
#endif // INGAMESTATE_HPP