Rehti MMORPG  1.0.0
Rehti MMORPG is a free and open source MMORPG game.
MapReader.cpp File Reference
#include <cstdint>
#include <iostream>
#include <string>
#include <vector>
#include "../../Config.hpp"
#include "MapReader.hpp"
#include "Utils.hpp"
Include dependency graph for MapReader.cpp:

Functions

std::vector< std::vector< uint8_t > > fetchAccessMatrix ()
 Loads the access map from the given path. More...
 
std::vector< std::vector< int > > fetchHeightMatrix ()
 Loads the height map from the given path. More...
 
std::vector< std::vector< int > > fetchMapTextureMatrix ()
 Loads the map texture map from the given path. More...
 
std::vector< std::vector< std::string > > fetchAreaMatrix ()
 Loads the area map from the given path. More...
 

Function Documentation

◆ fetchAccessMatrix()

std::vector<std::vector<uint8_t> > fetchAccessMatrix ( )

Loads the access map from the given path.

Returns
Matrix of uint8_t that contains the access map information.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ fetchAreaMatrix()

std::vector<std::vector<std::string> > fetchAreaMatrix ( )

Loads the area map from the given path.

Returns
Matrix of string that will be filled with the area map information.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ fetchHeightMatrix()

std::vector<std::vector<int> > fetchHeightMatrix ( )

Loads the height map from the given path.

Returns
Matrix of int that will be filled with the height map information. Each cell contains the height of the tile.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ fetchMapTextureMatrix()

std::vector<std::vector<int> > fetchMapTextureMatrix ( )

Loads the map texture map from the given path.

Returns
Matrix of int that will be filled with the map texture map information.
Here is the call graph for this function: