CodingStyle: Document header include order.
[gemrb.git] / gemrb / core / AnimationMgr.h
blobd161aff4becf813c75a76edda299ded3fc30ad82
1 /* GemRB - Infinity Engine Emulator
2 * Copyright (C) 2003 The GemRB Project
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public License
6 * as published by the Free Software Foundation; either version 2
7 * of the License, or (at your option) any later version.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21 #ifndef ANIMATIONMGR_H
22 #define ANIMATIONMGR_H
24 #include "globals.h"
26 #include "Animation.h"
27 #include "AnimationFactory.h"
28 #include "Font.h"
29 #include "Plugin.h"
31 class GEM_EXPORT AnimationMgr : public Plugin {
32 public:
33 AnimationMgr(void);
34 virtual ~AnimationMgr(void);
35 virtual bool Open(DataStream* stream, bool autoFree = true) = 0;
36 virtual int GetCycleSize(unsigned char Cycle) = 0;
37 virtual AnimationFactory* GetAnimationFactory(const char* ResRef,
38 unsigned char mode = IE_NORMAL) = 0;
39 /** This function will load the Animation as a Font */
40 virtual Font* GetFont() = 0;
41 /** Debug Function: Returns the Global Animation Palette as a Sprite2D Object.
42 If the Global Animation Palette is NULL, returns NULL. */
43 virtual Sprite2D* GetPalette() = 0;
44 virtual int GetCycleCount() = 0;
47 #endif