-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathExplosion.hpp
More file actions
44 lines (34 loc) · 906 Bytes
/
Copy pathExplosion.hpp
File metadata and controls
44 lines (34 loc) · 906 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
#ifndef EXPLOSION_HPP_
# define EXPLOSION_HPP_
#include <iostream>
#include <list>
#include "Texture.hh"
#include "Geometry.hh"
#include "AObject.hpp"
#include "Bomb.hpp"
#include "GameMap.hh"
class GameMap;
class Bomb;
class Explosion : public AObject
{
private:
gdl::Texture _texture;
gdl::Geometry _geometry;
float _speed;
std::string _path;
int _delay;
AObject *_explosion;
std::list<AObject*> _objects;
public:
Explosion();
Explosion(int Px, int Py, int Pz, int Rx, int Ry, int Rz);
virtual ~Explosion() { }
virtual bool initialize();
void impact(GameMap &, int pow);
void clearExplosion(GameMap &, int pow);
void toRenew(GameMap &, int pow);
virtual void update(gdl::Clock const &clock, gdl::Input &input, std::deque<Bomb *> & objects);
virtual void draw(gdl::AShader &shader, gdl::Clock const &clock);
virtual char getLetter() const;
};
#endif