Lanca-chamas agora atira gotas, nao bolhas...
[Projeto-PCG.git] / shooter.h
blob7238f126d4b5c12b0e61b088a15f6d27fbea0cdf
1 #ifndef SHOOTER_H
2 #define SHOOTER_H
4 #include "game.h"
5 #include "geometry.h"
6 #include "thing.h"
7 #include "weapon.h"
9 class Game;
10 class Player;
12 class Shooter: public Thing {
13 protected:
14 Ponto leftFeet();
15 Ponto rightFeet();
16 Ponto cintura();
17 Ponto leftArm();
18 Ponto rightArm();
19 Ponto pescoco();
20 Ponto aim;
21 Weapon* weapon;
22 double tamanhoAntebraco();
23 double tamanhoBraco();
24 double getAngle();
25 Ponto getCotovelo(Ponto ombro, Ponto hand);
26 bool canfire;
27 public:
28 Game* game;
29 Shooter(Game* agame, Ponto pos, Ponto speed);
30 void desenha();
31 void setAim(double x, double y);
32 void equip(Weapon* aweapon);
33 void fire();
34 void allowFire();
35 virtual Linha getBaseLine();
36 virtual Polygon getCollision();
39 #endif