blob: 3dc6b279695a65335531a08d4820d9937798d11d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
#ifndef GAMEPLAY_H_
#define GAMEPLAY_H_
#include "window.hpp"
#include <vector>
class Enemy {
public:
float posX;
float posY;
Vector2 direction;
Enemy();
~Enemy();
};
class Player {
public:
float posX;
float posY;
Vector2 direction;
Player();
~Player();
};
class Game {
int nEnemies;
std::vector<Enemy> * enemies;
public:
Game();
~Game();
void start() const ;
void draw() const ;
void tick() const ;
void getKeys() const ;
};
#endif // GAMEPLAY_H_
|