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 91065b6af4 Initial Save + Load implementation
* Fix VM Global Addressing
* Modify VM structures to simplify storage
* Add explicit GameWorld::createPlayer() method
* Move gameTime to GameState for storage
* Add SaveGame class for reading + writing
* New Dependancy: cereal
2015-05-03 05:23:44 +01:00

39 lines
723 B
C++

#ifndef INGAMESTATE_HPP
#define INGAMESTATE_HPP
#include "State.hpp"
class PlayerController;
class IngameState : public State
{
bool started;
bool test;
bool newgame;
ViewCamera _look;
/** Player input */
glm::vec2 _lookAngles;
glm::vec3 _movement;
/** Timer to reset _lookAngles to forward in vehicles */
float autolookTimer;
public:
IngameState(RWGame* game, bool newgame = true, bool test = false);
void startTest();
void startGame();
virtual void enter();
virtual void exit();
virtual void tick(float dt);
virtual void draw(GameRenderer* r);
virtual void handleEvent(const sf::Event& event);
virtual bool shouldWorldUpdate();
const ViewCamera& getCamera();
};
#endif // INGAMESTATE_HPP