-
Notifications
You must be signed in to change notification settings - Fork 0
/
Obstacle.hpp
41 lines (36 loc) · 1.4 KB
/
Obstacle.hpp
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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* Obstacle.hpp :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: dzui <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2017/11/05 21:32:47 by dzui #+# #+# */
/* Updated: 2017/11/05 21:32:53 by dzui ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef CPP_RUSH_00_OBSTACLE_H
#define CPP_RUSH_00_OBSTACLE_H
#include <cstdlib>
#include <ctime>
class Obstacle
{
protected:
int posX;
int posY;
int hp;
int map_nb;
public:
int getX();
int getY();
virtual void moveObstacle(int **map);
Obstacle();
virtual ~Obstacle();
Obstacle(const Obstacle &ob);
void takeDamage();
virtual void generatePosition(int **map);
int getHP() const;
virtual void setHP();
Obstacle &operator=(const Obstacle &ob);
};
#endif //CPP_RUSH_00_OBSTACLE_H