2014-05-26 06:34:49 +02:00
|
|
|
#ifndef GAME_HPP
|
|
|
|
#define GAME_HPP
|
|
|
|
|
|
|
|
#include <SFML/Window.hpp>
|
|
|
|
#include <SFML/Graphics.hpp>
|
|
|
|
#include <engine/GameObject.hpp>
|
|
|
|
#include <engine/GameWorld.hpp>
|
|
|
|
|
|
|
|
|
|
|
|
constexpr double PiOver180 = 3.1415926535897932384626433832795028/180;
|
|
|
|
|
2014-05-31 09:18:50 +02:00
|
|
|
// TODO: Move all of this stuff so it's not just lying around.
|
2014-05-26 06:34:49 +02:00
|
|
|
|
|
|
|
bool hitWorldRay(glm::vec3& hit, glm::vec3& normal, GameObject** object = nullptr);
|
2014-05-31 09:18:50 +02:00
|
|
|
bool hitWorldRay(const glm::vec3& start, const glm::vec3& direction,
|
|
|
|
glm::vec3& hit, glm::vec3& normal, GameObject** object = nullptr);
|
2014-05-26 06:34:49 +02:00
|
|
|
|
|
|
|
sf::Window& getWindow();
|
|
|
|
|
|
|
|
GameWorld* getWorld();
|
2014-06-06 16:22:26 +02:00
|
|
|
CharacterObject* getPlayerCharacter();
|
|
|
|
void setPlayerCharacter(CharacterObject* playerCharacter);
|
2014-05-26 06:34:49 +02:00
|
|
|
|
|
|
|
sf::Font& getFont();
|
|
|
|
|
|
|
|
/**
|
|
|
|
Set view parameters.
|
|
|
|
*/
|
|
|
|
|
|
|
|
void setViewParameters(const glm::vec3& center, const glm::vec2 &angles);
|
2014-06-08 23:18:03 +02:00
|
|
|
glm::vec3& getViewPosition();
|
|
|
|
glm::vec2& getViewAngles();
|
2014-05-26 06:34:49 +02:00
|
|
|
|
|
|
|
#endif // GAME_HPP
|
|
|
|
|