Restored drops in DropAnimation.
[tagua/yd.git] / src / variants / xchess / dropanimator.h
blob2e1c092298168a1cba34a4bc2baf49caf654791e
1 #ifndef XCHESS__DROPANIMATOR_H
2 #define XCHESS__DROPANIMATOR_H
4 #include "animator.h"
6 template <typename Variant>
7 class DropAnimator : public SimpleAnimator<Variant> {
8 typedef SimpleAnimator<Variant> Base;
10 using Base::m_cinterface;
11 protected:
12 typedef typename Base::API API;
13 typedef typename Base::Position Position;
14 typedef typename Base::Piece Piece;
15 typedef typename Base::Move Move;
17 virtual void updatePool(const Position& final);
18 public:
19 DropAnimator(API cinterface);
21 virtual AnimationGroupPtr forward(const Position& final, const Move& move);
22 virtual AnimationGroupPtr back(const Position& final, const Move& move);
25 #endif // XCHESS__DROPANIMATOR_H