Class Tilemap¶
Defined in File Tilemap.hpp
Class Documentation¶
-
class Tilemap¶
Public Functions
-
inline Tilemap()¶
-
~Tilemap() = default¶
-
std::pair<int, int> GetSize() const¶
Get the Size object.
- Returns:
std::pair<x, y>
-
std::vector<std::vector<Tile>> GetTilemap()¶
Get the Tilemap.
- Returns:
std::vector<std::vector<Tile>>
-
void SetSize(int x, int y)¶
Set the Size of the tilemap.
- Parameters:
x – Contain the width of the tilemap
y – Contain the height of the tilemap
-
void SetTileInventory(int x, int y, size_t food, size_t linemate, size_t deraumere, size_t sibur, size_t mendiane, size_t phiras, size_t thystame)¶
Set the inventory of one tile.
- Parameters:
x – Contain position x of the tile
y – Contain position y of the tile
food – Contain number of food of the tile
linemate – Contain number of linemate of the tile
deraumere – Contain number of deraumere of the tile
sibur – Contain number of sibur of the tile
mendiane – Contain number of mendiane of the tile
phiras – Contain number of phiras of the tile
thystame – Contain number of thystame of the tile
-
inline Tilemap()¶