#include "stdafx.h" #include "CAbilityHandler.h" #include "../CGameInfo.h" #include "CGeneralTextHandler.h" #include "CLodHandler.h" void CAbilityHandler::loadAbilities() { std::string buf = CGameInfo::mainObj->bitmaph->getTextFile("SSTRAITS.TXT"); int it=0; std::string dump; for(int i=0; i<2; ++i) { CGeneralTextHandler::loadToIt(dump,buf,it,3); } for (int i=0; iname,buf,it,4); CGeneralTextHandler::loadToIt(nab->basicText,buf,it,4); CGeneralTextHandler::loadToIt(nab->advText,buf,it,4); CGeneralTextHandler::loadToIt(nab->expText,buf,it,3); nab->idNumber = abilities.size(); abilities.push_back(nab); } }