-
Notifications
You must be signed in to change notification settings - Fork 2
/
buildRocket.h
29 lines (27 loc) · 905 Bytes
/
buildRocket.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#pragma once
#ifndef buildRocket_hpp
#define buildRocket_hpp
#include <SFML/Audio.hpp>
#include <SFML/Graphics.hpp>
#include <map>
#include "drawAll.h"
class buildRocket {
private:
sf::Texture texBackground, texHeadRocket, texAirRocket, texEmptyRocket, texEngineRocket, texRightInter;
sf::Sprite sprBackground, sprHeadRocket, sprAirRocket, sprEmptyRocket, sprEngineRocket, sprRightInter;
sf::Sprite sprREmpty, sprRAir;
float xRightInter, yRightInter;
sf::Sprite play, playWithMouse, back, backWithMouse, built, builtWithMouse;
std::map<std::string, std::vector<std::vector<float>>> m;
int sizeM;
float sizeXForSprite, sizeYForSprite;
sf::Vector2f spriteScale;
sf::FloatRect boundsAir, boundsEmpty, boundsHead, boundsEngine;
std::vector<int> result;
int menuNum;
drawAll draw;
public:
buildRocket();
std::pair < std::string, std::vector<int>> drawBuildRocket(sf::RenderWindow&);
};
#endif