This commit is contained in:
2024-12-19 16:01:21 +01:00
parent 36984b859f
commit 76203a8b29
14 changed files with 58 additions and 68 deletions

View File

@@ -3,8 +3,6 @@
#include "Enemy.h"
#include <cmath>
enum class DirectionA {
Up,
Down,

View File

@@ -2,7 +2,6 @@
#define LOTOSTATEK_BEAM_H
#include <SFML/Graphics.hpp>
#include "Position.h"
class Beam {
public:

View File

@@ -2,14 +2,11 @@
#define LOTOSTATEK_BULLET_H
#include "Projectile.h"
#include "SFML/Graphics/Texture.hpp"
class Bullet : public Projectile {
public:
Bullet(float x, float y, sf::Texture &texture) : Projectile(x,y, texture) {};
void update() override;
private:
float directionY;
};

View File

@@ -2,13 +2,12 @@
#define LOTOSTATEK_HEART_HPP
#include "SFML/Graphics/Texture.hpp"
#include "SFML/Graphics/Sprite.hpp"
#include "ObjectItem.hpp"
class Heart : public ObjectItem {
public:
Heart(float x, float y, sf::Texture &texture);
void update();
void update() override;
};
#endif //LOTOSTATEK_HEART_HPP

View File

@@ -8,7 +8,7 @@
class Meteor : public ObjectItem {
public:
Meteor(float x, float y, sf::Texture &texture);
Meteor(float x, float y, sf::Texture &texture_);
void update();
};

View File

@@ -12,7 +12,7 @@ public:
bool getStatus();
virtual void update() = 0;
protected:
sf::Texture texture;
sf::Texture texture_;
sf::Sprite sprite;
Position position;
float rotationSpeed;

View File

@@ -33,8 +33,6 @@ public:
bool isShooting() const;
const Beam* getBeam() const;
void setPlanszaHeight(float height, float width);
void setMapBounds(float width, float height);
private:
float planszaHeight = 800.f;