#ifndef WEAPONS_H_ #define WEAPONS_H_ #include "point.h" #include "projectiles.h" #include "entities.h" #include "SDL/SDL.h" #include class Weapon { int type_; int projectileType_; int projectileSpeed_; int rof_; int damage_; std::vector *projectiles_; Uint32 rofTimer_; public: Weapon() : type_(0), projectileType_(0), projectileSpeed_(10), rof_(4), damage_(0), projectiles_(NULL), rofTimer_(0) {} void init(int type, int pType, int pSpeed, int rof, int dmg, std::vector *projectiles); bool fire(Player player, Point map, int size, std::vector *obstacles, std::vector *enemies); }; #endif