24 lines
518 B
C++
24 lines
518 B
C++
|
|
#ifndef LOTOSTATEK_BULLET_H
|
|
#define LOTOSTATEK_BULLET_H
|
|
|
|
#include "Projectile.h"
|
|
#include "SFML/Graphics/Texture.hpp"
|
|
#include "SFML/Audio/Sound.hpp"
|
|
#include "SFML/Audio/SoundBuffer.hpp"
|
|
|
|
class Bullet : public Projectile {
|
|
public:
|
|
Bullet(float x, float y, sf::Texture &texture);
|
|
void update() override;
|
|
|
|
// Dodanie metody do odtwarzania dźwięku
|
|
void playShootSound();
|
|
|
|
private:
|
|
sf::Sound shootSound;
|
|
sf::SoundBuffer shootBuffer; // Dodanie bufora dźwięku
|
|
};
|
|
|
|
#endif //LOTOSTATEK_BULLET_H
|