27 lines
503 B
C++
27 lines
503 B
C++
#ifndef LOTOSTATEK_METEOR_H
|
|
#define LOTOSTATEK_METEOR_H
|
|
|
|
#include "SFML/Graphics/Texture.hpp"
|
|
#include "SFML/Graphics/Sprite.hpp"
|
|
|
|
class Meteor {
|
|
struct Position {
|
|
int x;
|
|
int y;
|
|
};
|
|
public:
|
|
Meteor(int x, int y, sf::Texture &texture);
|
|
sf::Sprite & getSprite();
|
|
bool getStatus();
|
|
void update();
|
|
private:
|
|
sf::Texture meteorTexture;
|
|
sf::Sprite meteorSprite;
|
|
Position position;
|
|
float meteorSpeed;
|
|
bool outOfBounds;
|
|
};
|
|
|
|
|
|
#endif //LOTOSTATEK_METEOR_H
|