nsnake
Classic snake game for the terminal
src
Display
Animations
AnimationGameOfLife.hpp
1
#ifndef ANIMATIONGAMEOFLIFE_H_DEFINED
2
#define ANIMATIONGAMEOFLIFE_H_DEFINED
3
4
#include <Engine/Graphics/Animation.hpp>
5
#include <Engine/Helpers/Array2D.hpp>
6
#include <Engine/Helpers/Timer.hpp>
7
8
#include <vector>
9
11
class
AnimationGameOfLife
:
public
Animation
12
{
13
public
:
14
AnimationGameOfLife
(Window* window);
15
virtual
~
AnimationGameOfLife
();
16
17
void
load();
18
void
update();
19
void
draw();
20
21
private
:
22
Array2D<bool>* cells;
23
24
Timer timer;
25
};
26
27
#endif //ANIMATIONGAMEOFLIFE_H_DEFINED
28
AnimationGameOfLife
Rules and behavior of the GameOfLife animation.
Definition:
AnimationGameOfLife.hpp:11
Generated on Fri Feb 8 2019 14:33:04 for nsnake by
1.8.15