#include <propertymanager.h>
Public Member Functions | |
const int | Get (const OPENCITY_PROPERTY_CODE &pCode, const OPENCITY_STRUCTURE_CODE &sCode, const Structure *pcStruct=NULL) const |
const OPENCITY_GRAPHIC_CODE | GetGC (const OPENCITY_STRUCTURE_CODE scode) const |
const OPENCITY_STRUCTURE_TYPE | GetST (const OPENCITY_STRUCTURE_CODE scode) const |
void | GetWLH (const OPENCITY_GRAPHIC_CODE &gcode, uint &w, const uint defw, uint &l, const uint defl, uint &h, const uint defh) |
Private Member Functions | |
const string | propertymanagerGetStr (const OPENCITY_GRAPHIC_CODE &gcode, const string &key, const string &def="") |
const OPENCITY_ERR_CODE | propertymanagerGetLint (const OPENCITY_GRAPHIC_CODE &gcode, const string &key, OC_LINT &rlint, const OC_LINT &def=0) |
Private Attributes | |
std::vector< Conf * > | vpConf |
Models' configuration files. |
Definition at line 38 of file propertymanager.h.
|
Returns the requested property of the structure
Definition at line 98 of file propertymanager.cpp. References Structure::GetLevel(). Referenced by BuildingLayer::_BuildPathStructure(), and BuildingLayer::_DestroyStructure(). |
|
Return the _first_ level graphic code for the corresponding structure code
Definition at line 225 of file propertymanager.cpp. Referenced by BuildingLayer::BuildPreview(). |
|
Return the structure type from its structure code. This is used for serialization. Definition at line 297 of file propertymanager.cpp. |
|
Return the structure's "width, length, and height" parameter
Definition at line 352 of file propertymanager.cpp. Referenced by BuildingLayer::_DestroyStructure(), BuildingLayer::_LoadStructure(), BuildingLayer::BuildPreview(), Simulator::CheckLevelDown(), Simulator::CheckLevelUp(), Renderer::DisplayBuildPreview(), and BuildingLayer::ResizeStructure(). |
|
Return the string which represents the value part of the (key-value) pair of the structure code given in parameter.
Definition at line 383 of file propertymanager.cpp. |