-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathIMap.hpp
52 lines (47 loc) · 1.16 KB
/
IMap.hpp
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
40
41
42
43
44
45
46
47
48
49
50
51
52
// v1.0.3
#ifndef IMAP_HPP_
#define IMAP_HPP_
#include <cstddef>
#include "ITile.hpp"
namespace arcade
{
///
/// \class IMap
/// \brief Interface representing a Map
///
/// A map is composed of layers, which contain tiles.
/// Your Map must support them from its own
/// If you want to access to the tile x:3 y:8 of the layer 2
/// you have to use the at method like IMap::at(2, 3, 8);
///
class IMap
{
public:
///
/// \fn virtual ~IMap()
/// \brief Virtual destructor of the interface
///
virtual ~IMap(){};
///
/// \fn virtual size_t getLayerNb() const = 0
/// \brief Get the number of layers
///
virtual size_t getLayerNb() const = 0;
///
/// \fn virtual size_t getWidth() const = 0
/// \brief Get the width of the map
///
virtual size_t getWidth() const = 0;
///
/// \fn virtual size_t getHeight() const = 0
/// \brief Get the height of the map
///
virtual size_t getHeight() const = 0;
///
/// \fn virtual ITile const &at(size_t layer, size_t x, size_t y) const = 0
/// \brief Get a specific ITile of the map
///
virtual ITile const &at(size_t layer, size_t x, size_t y) const = 0;
};
}
#endif // !IMAP_HPP_