#include "point.h" #include "object.h" #include "gun.h" #include #include Gun :: Gun() : Object() {} Gun :: Gun(const Point &point, const sf::Texture &texture, const int width, const int height) : Object(point) { setTexture(texture); this->sprite.setTexture(texture); this->sprite.setOrigin(sf::Vector2f(width / 2 - 20, height / 2)); setWidth(width); setHeight(height); } void Gun :: draw(sf::RenderWindow &window) { window.draw(sprite); }