-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathBonus.hpp
38 lines (27 loc) · 1.38 KB
/
Bonus.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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* Bonus.hpp :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: jfortin <jfortin@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2018/01/13 14:07:28 by jfortin #+# #+# */
/* Updated: 2018/02/11 22:47:00 by jfortin ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef BONUS_HPP
# define BONUS_HPP
# include "Game.hpp"
class Bonus : public AEntity {
public:
Bonus(std::string skin, Weapon *weapon, t_coord coord, unsigned int timePop = 10000);
Bonus(Bonus const &src);
~Bonus();
Bonus &operator=(Bonus const &rhs);
bool move(unsigned int height, unsigned int width, int key);
t_entityList *shoot(int key);
unsigned int takeDamage(AEntity &attacker);
private:
Bonus();
};
#endif