nsnake
Classic snake game for the terminal
src
Interface
Animation
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
Window
A segment of the terminal screen (2D char matrix).
Definition:
Window.hpp:16
Animation::load
virtual void load()=0
Loads all internal things.
Animation::update
virtual void update()=0
Updates Animation's internal state.
Animation::Animation
Animation(Window *window)
Creates an Animation that will occur on #window.
Definition:
Animation.hpp:11
Animation::draw
virtual void draw()=0
Shows Animation on the screen.
Animation
Abstract interface to any kind of Animation.
Definition:
Animation.hpp:7
Generated on Wed Jan 29 2020 00:00:00 for nsnake by
1.8.17