#ifndef CBUILDINGHANDLER_H #define CBUILDINGHANDLER_H #include "../global.h" #include #include //enum EbuildingType {NEUTRAL=-1, CASTLE, RAMPART, TOWER, INFERNO, NECROPOLIS, DUNGEON, STRONGHOLD, FORTRESS, CONFLUX}; class DLL_EXPORT CBuilding //a typical building encountered in every castle ;] { public: std::string name; std::string refName; //reference name, for identification std::vector resources; std::string description; //EbuildingType type; //type of building (occures in many castles or is specific for one castle) //bool isDwelling; //true, if this building is a dwelling }; class DLL_EXPORT CBuildingHandler { public: std::map > buildings; ///< first int is the castle ID, second the building ID (in ERM-U format) std::map > > > > hall; //map >[5]> - external vector is the vector of buildings in the row, internal is the list of buildings for the specific slot void loadBuildings(); //main loader }; #endif //CBUILDINGHANDLER_H