Port DropAnimatorMixin.
[tagua/yd.git] / src / core / dropanimator.h
blob005649b9842b01efa32dc1aafed61e9f9126953c
1 /*
2 Copyright (c) 2007 Paolo Capriotti <p.capriotti@gmail.com>
4 This program is free software; you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation; either version 2 of the License, or
7 (at your option) any later version.
8 */
10 #ifndef CORE__DROPANIMATOR_H
11 #define CORE__DROPANIMATOR_H
13 #include "component.h"
14 #include "animator.h"
16 class IColor;
17 class INamer;
18 class TaguaAPI;
20 class DropAnimator : public Component, public IAnimator {
21 Q_OBJECT
22 IAnimator* m_base;
23 TaguaAPI* m_api;
24 INamer* m_namer;
25 const IColor** m_players;
26 public:
27 virtual ~DropAnimator();
29 DropAnimator(IAnimator* base, TaguaAPI* api,
30 INamer* namer, const IColor** players);
32 virtual AnimationPtr warp(const IState* state);
33 virtual AnimationPtr forward(const Move& move, const IState* state);
34 virtual AnimationPtr back(const Move& move, const IState* state);
36 virtual void updatePool(const IState* final);
39 #endif // CORE__DROPANIMATOR_H