1 // Copyright (C) 2002-2012 Nikolaus Gebhardt
2 // This file is part of the "Irrlicht Engine".
3 // For conditions of distribution and use, see copyright notice in irrlicht.h
4 
5 #ifndef __I_SCENE_NODE_ANIMATOR_FINISHING_H_INCLUDED__
6 #define __I_SCENE_NODE_ANIMATOR_FINISHING_H_INCLUDED__
7 
8 #include "ISceneNode.h"
9 
10 namespace irr
11 {
12 namespace scene
13 {
14 	//! This is an abstract base class for animators that have a discrete end time.
15 	class ISceneNodeAnimatorFinishing : public ISceneNodeAnimator
16 	{
17 	public:
18 
19 		//! constructor
ISceneNodeAnimatorFinishing(u32 finishTime)20 		ISceneNodeAnimatorFinishing(u32 finishTime)
21 			: FinishTime(finishTime), HasFinished(false) { }
22 
hasFinished(void)23 		virtual bool hasFinished(void) const { return HasFinished; }
24 
25 	protected:
26 
27 		u32 FinishTime;
28 		bool HasFinished;
29 	};
30 
31 
32 } // end namespace scene
33 } // end namespace irr
34 
35 #endif
36 
37