Sistema de tiro agora atira, bastante trabalho para fazer ainda.
[Projeto-PCG.git] / weapon.h
blob7cb63c4c68ff5a698201f7cf15bfb3111ec90601
1 #ifndef WEAPON_H
2 #define WEAPON_H
4 #include <string>
5 #include "geometry.h"
6 #include "thing.h"
7 #include "luaenv.h"
9 class Weapon: public Thing {
10 private:
11 Ponto leftHand;
12 Ponto rightHand;
13 Ponto tip;
14 public:
15 double shotSpeed;
16 Polygon sprite;
17 int fireRate;
18 std::string name;
19 void setSprite(Polygon asprite) { sprite = asprite;}
20 void setLeftHand(Ponto hand) {leftHand = hand;}
21 void setRightHand(Ponto hand) {rightHand = hand;}
22 Ponto getLeftHand() {return leftHand;}
23 Ponto getRightHand(){return rightHand;}
24 void desenha();
25 void setTip(Ponto t) {tip = t;}
26 Ponto getTip() {return tip;}
30 #endif