#ifndef LOTOSTATEK_BULLET_H #define LOTOSTATEK_BULLET_H #include "SFML/Graphics/Sprite.hpp" #include "SFML/Graphics/Texture.hpp" class Bullet { struct Position { int x; int y; }; public: Bullet(float x, float y, sf::Texture &bulletTexture); void update(); sf::Sprite& getSprite(); void setSpeed(float speed); bool getStatus() const { return outOfBounds; } private: sf::Sprite bulletSprite; sf::Texture bulletTexture; float bulletSpeed; Position bulletPosition; bool outOfBounds; }; #endif //LOTOSTATEK_BULLET_H