This repository has been archived on 2025-06-06. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
LotoStatek/headers/Beam.h
2024-12-19 16:01:21 +01:00

28 lines
516 B
C++

#ifndef LOTOSTATEK_BEAM_H
#define LOTOSTATEK_BEAM_H
#include <SFML/Graphics.hpp>
class Beam {
public:
Beam(float x, float y, float width, float height);
void draw(sf::RenderWindow &window);
void update();
void render(sf::RenderWindow& window);
sf::FloatRect getBounds() const;
bool isVisible() const;
void setVisible(bool visible);
private:
sf::RectangleShape beamShape;
bool visible;
sf::Texture beamTexture;
sf::Sprite beamSprite;
};
#endif // LOTOSTATEK_BEAM_H