-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathEnemy.h
More file actions
44 lines (27 loc) · 711 Bytes
/
Enemy.h
File metadata and controls
44 lines (27 loc) · 711 Bytes
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
42
43
44
//
// Created by segalle on 11/21/21.
//
#ifndef JOGO_ENEMY_H
#define JOGO_ENEMY_H
#include "MovingEntity.h"
#include "Player.h"
#include "Projectile.h"
namespace entities {
namespace characters {
class Enemy : public MovingEntity{
protected:
Player* player;
sf::Vector2f p_position;
public:
Enemy();
virtual ~Enemy();
//Arrumar para dois players
void setPlayer(Entity* player);
virtual void run() = 0;
virtual void attack() = 0;
virtual int getCollisionDamage() = 0;
virtual Entity* getProjectile() = 0;
};
}
}
#endif //JOGO_ENEMY_H