Debian Codegraph @

src/state/DemoMode.h

raw
1 #ifndef HEADER_DEMOMODE_H
2 #define HEADER_DEMOMODE_H
3
4 class Picture;
5 class DemoInput;
6
7 #include "Path.h"
8 #include "GameState.h"
9 #include "Planner.h"
10 #include "Drawable.h"
11
12 /**
13 * Graphic demo.
14 */
15 class DemoMode : public Planner, public GameState, public Drawable {
16 private:
17 int m_oldLimitY;
18 Path m_demoscript;
19 SDL_Surface *m_surfaceBuffer;
20 Picture *m_display;
21 protected:
22 virtual void own_initState();
23 virtual void own_updateState();
24 virtual void own_pauseState() {}
25 virtual void own_resumeState() {}
26 virtual void own_cleanState();
27 public:
28 DemoMode(const Path &demoscript);
29 virtual ~DemoMode();
30 virtual const char *getName() const { return "state_demo"; };
31
32 bool action_display(Picture *picture);
33 virtual void drawOn(SDL_Surface *screen);
34 };
35
36 #endif