This commit is contained in:
2024-12-02 15:51:01 +01:00
parent 2341c2fa6d
commit 5ccb29f27b

View File

@@ -15,13 +15,13 @@ public:
void setSpeed(float speed); void setSpeed(float speed);
bool isOutOfBounds() const; bool isOutOfBounds() const;
virtual void update() = 0; virtual void update() = 0;
static sf::Texture texture;
protected: protected:
~Projectile() = default; static sf::Texture texture;
sf::Sprite sprite; sf::Sprite sprite;
Position position{}; Position position{};
float speed; float speed;
bool outOfBounds; bool outOfBounds;
~Projectile() = default;
}; };
#endif //PROJECTILE_H #endif //PROJECTILE_H