Possivel se deitar
[Projeto-PCG.git] / shooter.h
blob5f5149543e1981b8e9738e21f14d4ef3c4b8ca63
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 cabeca();
17 Ponto leftArm(bool w);
18 Ponto rightArm(bool w);
19 Ponto aim;
20 Ponto realRightfeet;
21 Ponto realLeftfeet;
22 Ponto imaginaryRightfeet();
23 Ponto imaginaryLeftfeet();
24 double imaginaryBodyAngle();
25 Weapon* weapon;
26 double bodyAngle;
27 double tamanhoAntebraco();
28 double tamanhoBraco();
29 double tamanhoCoxa();
30 double tamanhoPerna();
31 double getAngle();
32 Ponto getJunta(Ponto superior, Ponto inferior,
33 double tamanhoSuperior, double tamanhoInferior);
34 bool canfire;
35 unsigned int feetTime;
36 unsigned int angleTime;
37 void updateFeetTime();
38 void updateAngleTime();
39 int direction;
40 double addToAngle;
41 public:
42 bool crawl;
43 Ponto pescoco();
44 Ponto cintura();
45 Game* game;
46 Shooter(Game* agame, Ponto pos, Ponto speed);
47 void desenha();
48 void setAim(double x, double y);
49 void equip(Weapon* aweapon);
50 void fire();
51 void allowFire();
52 void animate();
53 virtual Linha getBaseLine();
54 virtual Polygon getCollision();
57 #endif