Consertado spawn do mapa 2
[Projeto-PCG.git] / shot.h
blob0ec3315c5bead1b3c47dd03c72358f2eea13c448
1 #ifndef SHOT_H
2 #define SHOT_H
4 #include "thing.h"
6 class Weapon;
7 class Game;
8 class Shooter;
10 class Shot: public Thing {
11 private:
12 Game* game;
13 public:
14 int damage;
15 Shooter* firedBy;
16 Polygon sprite;
17 Shot(double x, double y, double angle, double speed, double gravityRate, Weapon* w, int damage);
18 ~Shot();
19 void desenha();
20 virtual Polygon getCollision();
21 virtual void collide(Thing* b);
22 virtual bool canCollide(Thing* b);
25 #endif