Flamethrower decente ateh
[Projeto-PCG.git] / weapon.h
blob307a2fc36b40f495bab66fc15332904779763f28
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 Game;
11 class Weapon {
12 private:
13 Ponto leftHand;
14 Ponto rightHand;
15 Ponto tip;
16 lua_State* lstate;
17 public:
18 Game *game;
19 Weapon (Game* g,lua_State* l) {game = g; lstate = l;}
20 Polygon sprite;
21 int fireRate;
22 std::string name;
23 void setSprite(Polygon asprite) { sprite = asprite;}
24 void setLeftHand(Ponto hand) {leftHand = hand;}
25 void setRightHand(Ponto hand) {rightHand = hand;}
26 Ponto getLeftHand() {return leftHand;}
27 Ponto getRightHand(){return rightHand;}
28 void desenha();
29 void setTip(Ponto t) {tip = t;}
30 Ponto getTip() {return tip;}
31 void fire(Ponto place, double angle);
35 #endif