-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathWorld.h
39 lines (31 loc) · 1.18 KB
/
World.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
36
37
38
39
#pragma once
#include "SFML\Graphics.hpp"
#include "texturecodex.h"
class World
{
public:
/////////////////////////////////////////////////////////////////////
/// Constructor : left is for x coordinate ,
/// top is for y coordinate
/// size is the square dimension of the texture.
/////////////////////////////////////////////////////////////////////
World(std::string);
/////////////////////////////////////////////
///Destroys the texture, the vector container
/////////////////////////////////////////////
~World(void);
///////////////////////////////////////////////////////////////////////
/// 7 arguments:
/// Renderwindow,
/// left, file ko, top file ko,
/// sizeofx file ko, sizeofy file ko,
/// positionX screen ko, positionY screen ko
///////////////////////////////////////////////////////////////////////
void World::draw(sf::RenderTarget &window, int, int, int, int , int , int );
private:
//shared pointer, from the TextureCodex class, for managing
//and easily getting the texture for drawing stuff
std::shared_ptr<sf::Texture> tex;
//stores the bounds, has 4 elements to it. Easy ;)
sf::IntRect bounds;
};