-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathresources.h
35 lines (28 loc) · 922 Bytes
/
resources.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
30
31
32
33
34
35
#ifndef RESOURCES_H
#define RESOURCES_H
#include <player.h>
class Resources
{
public:
Resources(sf::RenderWindow* window,std::stack<Resources*>* layers);
virtual ~Resources();
const bool& getEnd() const;
void endLayer();
virtual void updateMousePos();
virtual void updateInput(const float& deltaTime)=0;
virtual void update(const float& deltaTime)=0;
virtual void render(sf::RenderWindow* window)=0;
protected:
std::stack<Resources*>* layers;
std::map<std::string, sf::Texture> texturesPlayer;
std::map<std::string, sf::Texture> texturesEnemies;
std::map<std::string, sf::Texture> mapTextures;
std::map<std::string, sf::Texture> objTextures;
std::map<std::string, std::vector<int>> mapLayout;
sf::RenderWindow* window;
bool end;
sf::Vector2i mousePosScreen;
sf::Vector2i mousePosWindow;
sf::Vector2f mousePosView;
};
#endif // RESOURCES_H