mirror of
https://github.com/rwengine/openrw.git
synced 2024-11-07 19:32:49 +01:00
37 lines
612 B
C++
37 lines
612 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 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
|