Make component interfaces inherit Component.
[tagua/yd.git] / src / core / dropanimator.h
blobda5dd08cf933024cf33698531b299a10bb1bd470
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 "baseanimator.h"
14 #include "component.h"
15 #include "export.h"
17 class IColor;
18 class INamer;
19 class TaguaAPI;
21 class TAGUA_EXPORT DropAnimator : public BaseAnimator {
22 Q_OBJECT
23 IWarper* m_warper;
24 IAnimator* m_base;
25 const IColor** m_players;
26 public:
27 virtual ~DropAnimator();
29 DropAnimator(IAnimator* base, TaguaAPI* api,
30 const 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);
35 virtual void setWarper(IWarper* warper);
36 protected Q_SLOTS:
37 virtual void updatePool(const IState* final);
40 #endif // CORE__DROPANIMATOR_H