#define VCMI_DLL #include "../global.h" #include "VCMI_Lib.h" #include "../hch/CArtHandler.h" #include "../hch/CCreatureHandler.h" #include "../hch/CDefObjInfoHandler.h" #include "../hch/CHeroHandler.h" #include "../hch/CObjectHandler.h" #include "../hch/CTownHandler.h" #include "../hch/CBuildingHandler.h" #include "../hch/CSpellHandler.h" class CLodHandler; LibClasses * VLC = NULL; CLodHandler * bitmaph=NULL; DLL_EXPORT void initDLL(CLodHandler *b) { timeHandler pomtime; bitmaph=b; VLC = new LibClasses; CHeroHandler * heroh = new CHeroHandler; heroh->loadHeroes(); heroh->loadPortraits(); VLC->heroh = heroh; THC std::cout<<"\tHero handler: "<loadArtifacts(); VLC->arth = arth; THC std::cout<<"\tArtifact handler: "<loadCreatures(); VLC->creh = creh; THC std::cout<<"\tCreature handler: "<townh = new CTownHandler; VLC->townh->loadNames(); THC std::cout<<"\tTown handler: "<loadObjects(); VLC->objh = objh; THC std::cout<<"\tObject handler: "<dobjinfo = new CDefObjInfoHandler; VLC->dobjinfo->load(); THC std::cout<<"\tDef information handler: "<buildh = new CBuildingHandler; VLC->buildh->loadBuildings(); THC std::cout<<"\tBuilding handler: "<loadSpells(); VLC->spellh = spellh; THC std::cout<<"\tSpell handler: "<