ISceneNodeAnimatorFinishing.h 829 B

12345678910111213141516171819202122232425262728293031323334353637
  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. #ifndef __I_SCENE_NODE_ANIMATOR_FINISHING_H_INCLUDED__
  5. #define __I_SCENE_NODE_ANIMATOR_FINISHING_H_INCLUDED__
  6. #include "ISceneNode.h"
  7. namespace irr
  8. {
  9. namespace scene
  10. {
  11. //! This is an abstract base class for animators that have a discrete end time.
  12. class ISceneNodeAnimatorFinishing : public ISceneNodeAnimator
  13. {
  14. public:
  15. //! constructor
  16. ISceneNodeAnimatorFinishing(u32 finishTime)
  17. : FinishTime(finishTime), HasFinished(false) { }
  18. virtual bool hasFinished(void) const { return HasFinished; }
  19. protected:
  20. u32 FinishTime;
  21. bool HasFinished;
  22. };
  23. } // end namespace scene
  24. } // end namespace irr
  25. #endif