1
0
mirror of https://github.com/rwengine/openrw.git synced 2024-10-05 16:47:19 +02:00
openrw/rwengine/include/objects/CutsceneObject.hpp
2016-04-28 00:54:42 +01:00

37 lines
634 B
C++

#pragma once
#ifndef _CUTSCENEOBJECT_HPP_
#define _CUTSCENEOBJECT_HPP_
#include <objects/GameObject.hpp>
/**
* @brief Object type used for cutscene animations.
*/
class CutsceneObject : public GameObject
{
GameObject* _parent;
ModelFrame* _bone;
public:
CutsceneObject(GameWorld* engine, const glm::vec3& pos, const glm::quat& rot, const ModelRef& model);
~CutsceneObject();
Type type() { return Cutscene; }
void tick(float dt);
void setParentActor(GameObject* parent, ModelFrame* bone);
GameObject* getParentActor() const
{
return _parent;
}
ModelFrame* getParentFrame() const
{
return _bone;
}
};
#endif