-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmap.h
More file actions
33 lines (21 loc) · 875 Bytes
/
map.h
File metadata and controls
33 lines (21 loc) · 875 Bytes
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
#ifndef MAP_H
#define MAP_H
/* Draw array of tiles based on input.
The input is the width of tiles and the height of tiles, columns = width, rows = height.
Every element is a tile with a key from the std::map template. The key is the name of
the texture. With keys you can select the name/key with the corresponding texture you
want. When a texture is imported to the program, input the key for the texture,
then it is added to the std::map. The elements of std::map are displayed on screen as names.
Texture is selected by input, the key is input to a function for getting the corresponding texture.
Texture can be inputed with the mouse on a grid. Always check which tile the mouse pointer is in
to know where to place the tile. Pointer to the [row][column].
*/
class Map
{
public:
Map();
~Map();
void createTilemap();
private:
};
#endif // !MAP_H