nsnake
Classic snake game for the terminal
Loading...
Searching...
No Matches
Animation.hpp
1#ifndef ANIMATION_H_DEFINED
2#define ANIMATION_H_DEFINED
3
4#include <Interface/Window.hpp>
5
8{
9public:
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
26protected:
27 Window* window;
28};
29
30#endif //ANIMATION_H_DEFINED
31
Abstract interface to any kind of Animation.
Definition Animation.hpp:8
virtual void draw()=0
Shows Animation on the screen.
Animation(Window *window)
Creates an Animation that will occur on window.
Definition Animation.hpp:11
virtual void update()=0
Updates Animation's internal state.
virtual void load()=0
Loads all internal things.
A segment of the terminal screen (2D char matrix).
Definition Window.hpp:17