mirror of
https://github.com/vcmi/vcmi.git
synced 2025-05-31 22:59:54 +02:00
* CHexFieldControl renamed to CClickableHex * CCreatureAnimation.cpp/.h moved to BattleInterface/CCreatureAnimation.cpp/.h * Removed unused project files * Added VCMI_client filters file for VS 2010 * Gathered common parts of StdInc.h in Global.h * Boost.Spirit has been included in PCH for ERM project * StopWatch renamed to CStopWatch * GuiBase.cpp split up in UIFramework/...
34 lines
790 B
C++
34 lines
790 B
C++
#pragma once
|
|
|
|
#include "CBattleStackAnimation.h"
|
|
|
|
|
|
class CStack;
|
|
|
|
/*
|
|
* CReverseAnimation.h, part of VCMI engine
|
|
*
|
|
* Authors: listed in file AUTHORS in main folder
|
|
*
|
|
* License: GNU General Public License v2.0 or later
|
|
* Full text of license available in license.txt file, in main folder
|
|
*
|
|
*/
|
|
|
|
/// Class responsible for animation of stack chaning direction (left <-> right)
|
|
class CReverseAnimation : public CBattleStackAnimation
|
|
{
|
|
private:
|
|
int partOfAnim; //1 - first, 2 - second
|
|
bool secondPartSetup;
|
|
SBattleHex hex;
|
|
public:
|
|
bool priority; //true - high, false - low
|
|
bool init();
|
|
void nextFrame();
|
|
|
|
void setupSecondPart();
|
|
void endAnim();
|
|
|
|
CReverseAnimation(CBattleInterface *_owner, const CStack *stack, SBattleHex dest, bool _priority);
|
|
}; |