Saxum/game/entity.hh

29 lines
757 B
C++
Raw Normal View History

2014-10-22 22:51:12 +00:00
#ifndef ENTITY_HH_INCLUDED
2014-10-20 16:43:46 +00:00
#define ENTITY_HH_INCLUDED
#include <ACGL/Math/Math.hh>
2015-03-24 18:09:39 +00:00
#include <mutex>
2014-10-20 16:43:46 +00:00
class Entity {
public:
Entity(glm::vec3 position, glm::vec3 rotation);
Entity(glm::vec3 position, glm::mat4 rotation);
2015-03-24 18:09:39 +00:00
Entity(const Entity &other);
Entity(Entity &&other);
Entity& operator= (const Entity& other);
Entity& operator= (Entity &&other);
Entity();
2014-10-20 16:43:46 +00:00
~Entity();
void setPosition(glm::vec3 positon);
void setRotation(glm::vec3 rotation);
void setRotation(glm::mat4 rotation);
2014-10-20 16:43:46 +00:00
glm::vec3 getPosition();
glm::mat4 getRotation();
2014-10-20 16:43:46 +00:00
private:
glm::vec3 position;
glm::mat4 rotation;
2015-03-24 18:09:39 +00:00
mutable std::mutex mutex;
2014-10-20 16:43:46 +00:00
};
2014-10-20 16:48:20 +00:00
#endif