Rehti MMORPG  1.0.0
Rehti MMORPG is a free and open source MMORPG game.
GameObjects Struct Reference

Contains all the objects defined in the objects.json file. More...

#include <ObjectReader.hpp>

Collaboration diagram for GameObjects:
Collaboration graph

Public Member Functions

bool containsId (int id)
 
const std::optional< reader::ObjectTypegetObjectType (int id)
 
std::vector< std::vector< std::string > > getTileMap (int id)
 
const GeneralObjectStructgetGeneralObject (int id)
 
const ResourceObjectStructgetResourceObject (int id)
 
const LootObjectStructgetLootObject (int id)
 
const std::vector< int > getObjectIds () const
 Returns all the object ids that exist. More...
 

Public Attributes

std::map< int, GeneralObjectStructgeneralObjects
 
std::map< int, ResourceObjectStructresourceObjects
 
std::map< int, LootObjectStructlootObjects
 

Detailed Description

Contains all the objects defined in the objects.json file.

Member Function Documentation

◆ containsId()

bool GameObjects::containsId ( int  id)
inline

◆ getGeneralObject()

const GeneralObjectStruct& GameObjects::getGeneralObject ( int  id)
inline
Here is the caller graph for this function:

◆ getLootObject()

const LootObjectStruct& GameObjects::getLootObject ( int  id)
inline
Here is the caller graph for this function:

◆ getObjectIds()

const std::vector<int> GameObjects::getObjectIds ( ) const
inline

Returns all the object ids that exist.

Returns
Vector of object ids

◆ getObjectType()

const std::optional<reader::ObjectType> GameObjects::getObjectType ( int  id)
inline
Here is the caller graph for this function:

◆ getResourceObject()

const ResourceObjectStruct& GameObjects::getResourceObject ( int  id)
inline
Here is the caller graph for this function:

◆ getTileMap()

std::vector<std::vector<std::string> > GameObjects::getTileMap ( int  id)
inline
Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ generalObjects

std::map<int, GeneralObjectStruct> GameObjects::generalObjects

◆ lootObjects

std::map<int, LootObjectStruct> GameObjects::lootObjects

◆ resourceObjects

std::map<int, ResourceObjectStruct> GameObjects::resourceObjects

The documentation for this struct was generated from the following file: