Fix use of singleton pattern.
[tagua/yd.git] / src / animationmanager.h
blob880ec96a4973237b46367b5e973b0a966a335154
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 ANIMATIONMANAGER_H
11 #define ANIMATIONMANAGER_H
13 #include <QString>
14 #include <core/animation_fwd.h>
16 class MainAnimation;
17 class NamedSprite;
18 class QPoint;
20 class AnimationManager {
21 MainAnimation* m_main;
22 public:
23 bool enabled;
25 int maxSequence;
26 bool movement;
27 bool explode;
28 bool fading;
29 bool transform;
31 AnimationManager();
32 ~AnimationManager();
34 void reload();
35 void enqueue(const AnimationPtr& a);
36 void stop();
38 AnimationPtr group(const QString& flags) const;
39 AnimationPtr appear(const NamedSprite& sprite, const QString& flags) const;
40 AnimationPtr disappear(const NamedSprite& sprite, const QString& flags) const;
41 AnimationPtr move(const NamedSprite& sprite,
42 const QPoint& destination,
43 bool far,
44 const QString& flags) const;
45 AnimationPtr morph(const NamedSprite& sprite1,
46 const NamedSprite& sprite2,
47 const QString& flags) const;
50 #endif // ANIMATIONMANAGER_H