25 lines
515 B
C++
25 lines
515 B
C++
#ifndef PLANSZA_H
|
|
#define PLANSZA_H
|
|
|
|
#include "Meteor.h"
|
|
#include "RandomNumberGenerator.h"
|
|
#include "SFML/System/Clock.hpp"
|
|
#include "Size.h"
|
|
|
|
class Plansza {
|
|
public:
|
|
Plansza(unsigned int windowHeight, unsigned int windowWidth);
|
|
Size getSize();
|
|
std::vector<Meteor> &getMeteors();
|
|
void spawn_meteor();
|
|
void update_meteors();
|
|
private:
|
|
Size size;
|
|
sf::Texture meteorTexture1;
|
|
sf::Texture meteorTexture2;
|
|
sf::Clock spawnClock;
|
|
std::vector<Meteor> meteors;
|
|
};
|
|
|
|
#endif //PLANSZA_H
|