CReverseAnimation.h 790 B

12345678910111213141516171819202122232425262728293031323334
  1. #pragma once
  2. #include "CBattleStackAnimation.h"
  3. class CStack;
  4. /*
  5. * CReverseAnimation.h, part of VCMI engine
  6. *
  7. * Authors: listed in file AUTHORS in main folder
  8. *
  9. * License: GNU General Public License v2.0 or later
  10. * Full text of license available in license.txt file, in main folder
  11. *
  12. */
  13. /// Class responsible for animation of stack chaning direction (left <-> right)
  14. class CReverseAnimation : public CBattleStackAnimation
  15. {
  16. private:
  17. int partOfAnim; //1 - first, 2 - second
  18. bool secondPartSetup;
  19. SBattleHex hex;
  20. public:
  21. bool priority; //true - high, false - low
  22. bool init();
  23. void nextFrame();
  24. void setupSecondPart();
  25. void endAnim();
  26. CReverseAnimation(CBattleInterface *_owner, const CStack *stack, SBattleHex dest, bool _priority);
  27. };