2014-05-26 06:34:49 +02:00
|
|
|
#ifndef INGAMESTATE_HPP
|
|
|
|
#define INGAMESTATE_HPP
|
|
|
|
|
|
|
|
#include "State.hpp"
|
|
|
|
|
2014-06-06 18:04:00 +02:00
|
|
|
#include <ai/PlayerController.hpp>
|
2014-05-26 06:34:49 +02:00
|
|
|
|
|
|
|
class IngameState : public State
|
|
|
|
{
|
2014-06-06 18:04:00 +02:00
|
|
|
PlayerController* _player;
|
2014-06-06 16:22:26 +02:00
|
|
|
CharacterObject* _playerCharacter;
|
2014-05-26 06:34:49 +02:00
|
|
|
|
|
|
|
glm::vec2 _lookAngles;
|
|
|
|
glm::vec3 _movement;
|
|
|
|
public:
|
2014-07-24 00:57:21 +02:00
|
|
|
IngameState(bool test = false);
|
2014-05-26 06:34:49 +02:00
|
|
|
|
2014-07-24 00:57:21 +02:00
|
|
|
void startTest();
|
2014-05-26 06:34:49 +02:00
|
|
|
void spawnPlayerVehicle();
|
|
|
|
|
2014-07-24 00:57:21 +02:00
|
|
|
void updateView();
|
|
|
|
|
2014-05-26 06:34:49 +02:00
|
|
|
virtual void enter();
|
|
|
|
virtual void exit();
|
|
|
|
|
|
|
|
virtual void tick(float dt);
|
|
|
|
|
|
|
|
virtual void handleEvent(const sf::Event& event);
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // INGAMESTATE_HPP
|