Zaimplementowane menu i wybieranie skinów statku

This commit is contained in:
2024-12-14 20:21:46 +01:00
parent 34424da9d6
commit 9432cd94fe
8 changed files with 182 additions and 6 deletions

View File

@@ -17,9 +17,16 @@
#include "Heart.hpp"
#include "Size.h"
enum ships{
nova,
pulsar,
zenith,
none
};
class Plansza {
public:
Plansza(unsigned int windowHeight, unsigned int windowWidth, sf::RenderWindow *mainWindow);
Plansza(unsigned int windowHeight, unsigned int windowWidth, sf::RenderWindow *mainWindow, ships selectedShip);
Size getSize();
std::vector<Meteor> &getMeteors();
void spawn_meteor();
@@ -37,6 +44,8 @@ public:
~Plansza() {
delete ship; // usuwanie wskaźnika ship
}
static ships selectedShip;
private:
Background background;
AudioManager audioManager;