Rehti MMORPG  1.0.0
Rehti MMORPG is a free and open source MMORPG game.
CharacterReader.cpp File Reference
#include "CharacterReader.hpp"
#include "../../Config.hpp"
#include "MapReader.hpp"
#include "RehtiUtils.hpp"
#include <stdexcept>
Include dependency graph for CharacterReader.cpp:

Functions

GameCharacters readCharacterData ()
 Reads the character data from JSON file. More...
 
void validSpawnCoordinateBounds (SpawnCoordinateBounds spawnCoordinateBounds, int worldWidth, int worldHeight)
 Check if SpawnCoordinateBounds is valid. Throws error if not. More...
 

Function Documentation

◆ readCharacterData()

GameCharacters readCharacterData ( )

Reads the character data from JSON file.

Returns
GameCharacters
Here is the call graph for this function:
Here is the caller graph for this function:

◆ validSpawnCoordinateBounds()

void validSpawnCoordinateBounds ( SpawnCoordinateBounds  spawnCoordinateBounds,
int  worldWidth,
int  worldHeight 
)

Check if SpawnCoordinateBounds is valid. Throws error if not.

Parameters
spawnCoordinateBoundsSpawnCoordinateBounds
worldWidthin tiles
worldHeightin tiles
Here is the caller graph for this function: