BlockAnimation.h 526 B

12345678910111213141516171819202122232425
  1. #pragma once
  2. #include <Animation3D.h>
  3. #include "Block.h"
  4. class BlockAnimation : public Framework::ReferenceCounter
  5. {
  6. private:
  7. Block* block;
  8. Framework::SkeletonAnimation* animation;
  9. public:
  10. BlockAnimation(Block* block, Framework::SkeletonAnimation* animation);
  11. ~BlockAnimation();
  12. void appendAnimation(int boneId,
  13. double time,
  14. Framework::Vec3<float> pos,
  15. Framework::Vec3<float> rot);
  16. bool tick(double time);
  17. bool isFinished() const;
  18. Block* zBlock() const;
  19. };