Misc cleanups.
[tagua/yd.git] / src / core / baseanimator.h
blob022a7eaa4658060e1a7c7a7030e8a04c5bfd0cd7
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__BASEANIMATOR_H
11 #define CORE__BASEANIMATOR_H
13 #include "component.h"
14 #include "animation_fwd.h"
15 #include "animator.h"
17 class INamer;
18 class TaguaAPI;
20 class TAGUA_EXPORT BaseAnimator : public Component, public IAnimator {
21 protected:
22 TaguaAPI* m_api;
23 const INamer* m_namer;
24 public:
25 BaseAnimator(TaguaAPI* api, const INamer* namer);
27 virtual AnimationPtr warp(const IState* state);
28 virtual AnimationPtr forward(const Move& move, const IState* state);
29 virtual AnimationPtr back(const Move& move, const IState* state);
32 #endif // CORE__BASEANIMATOR_H