2009-10-03 21:16:00 -04:00
|
|
|
#ifndef HEADER_FEATURE_UNLOCKED_HPP
|
|
|
|
#define HEADER_FEATURE_UNLOCKED_HPP
|
|
|
|
|
|
|
|
#include "guiengine/cutscene.hpp"
|
|
|
|
|
2009-10-04 16:20:41 -04:00
|
|
|
namespace irr { namespace scene { class ISceneNode; class ICameraSceneNode; class ILightSceneNode; } }
|
2009-10-03 21:16:00 -04:00
|
|
|
|
|
|
|
class FeatureUnlockedCutScene : public GUIEngine::CutScene
|
|
|
|
{
|
|
|
|
FeatureUnlockedCutScene();
|
|
|
|
void prepare();
|
|
|
|
|
2009-10-04 16:20:41 -04:00
|
|
|
/** sky angle, 0-360 */
|
|
|
|
float m_angle;
|
|
|
|
|
|
|
|
/** Key position from origin (where the chest is) */
|
|
|
|
float m_key_pos;
|
|
|
|
|
|
|
|
/** Angle of the key (from 0 to 1, simply traces progression) */
|
|
|
|
float m_key_angle;
|
|
|
|
|
|
|
|
irr::scene::ISceneNode* m_sky;
|
|
|
|
irr::scene::ICameraSceneNode* m_camera;
|
|
|
|
irr::scene::ISceneNode* m_chest;
|
|
|
|
irr::scene::ISceneNode* m_chest_top;
|
|
|
|
irr::scene::ISceneNode* m_key;
|
|
|
|
irr::scene::ILightSceneNode* m_light;
|
2009-10-03 21:16:00 -04:00
|
|
|
public:
|
|
|
|
static void show();
|
|
|
|
|
|
|
|
void onUpdate(float dt, irr::video::IVideoDriver*);
|
|
|
|
void terminate();
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|