tahamajs's picture
download
raw
726 Bytes
#pragma once
#include <iostream>
#include <vector>
#include <SFML/Graphics.hpp>
#include <SFML/Window.hpp>
#include <fstream>
#include "Const.hpp"
class LevelScreen {
public:
LevelScreen(RenderWindow &_window, const sf::Vector2f& position);
void moveUp();
void moveDown();
std::string getSelectedOption() const;
void render() const;
void update(enum GameState &gameState, Vector2f position);
private:
sf::Vector2f m_position;
std::vector<std::string> m_options;
std::vector<sf::Text> m_optionTexts;
int m_selectedOptionIndex;
RenderWindow *window;
Font *m_font;
Texture *Bacground;
Sprite *backgroundSprite;
void updateOptionTexts();
void pollEvents(enum GameState &gameState);
};

Xet Storage Details

Size:
726 Bytes
·
Xet hash:
c13f39b7c93d62a0c26fa8c88ec6744f8a4946b8a51ab75f3fb2fe67e2cf854a

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.