nsnake
Classic snake game for the terminal
Animation.hpp
1 #ifndef ANIMATION_H_DEFINED
2 #define ANIMATION_H_DEFINED
3 
4 #include <Interface/Window.hpp>
5 
7 class Animation
8 {
9 public:
11  Animation(Window* window):
12  window(window)
13  { };
14 
15  virtual ~Animation() {};
16 
18  virtual void load() = 0;
19 
21  virtual void update() = 0;
22 
24  virtual void draw() = 0;
25 
26 protected:
27  Window* window;
28 };
29 
30 #endif //ANIMATION_H_DEFINED
31 
A segment of the terminal screen (2D char matrix).
Definition: Window.hpp:16
virtual void update()=0
Updates Animation&#39;s internal state.
Animation(Window *window)
Creates an Animation that will occur on #window.
Definition: Animation.hpp:11
virtual void draw()=0
Shows Animation on the screen.
virtual void load()=0
Loads all internal things.
Abstract interface to any kind of Animation.
Definition: Animation.hpp:7