1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-07-01 00:45:26 +02:00

Partially done resources.

This commit is contained in:
Michał W. Urbańczyk
2007-11-25 13:16:45 +00:00
parent b226540775
commit fa5079809f
11 changed files with 217 additions and 53 deletions

View File

@ -59,6 +59,16 @@ void CObjectHandler::loadObjects()
temp = temp.substr(1,temp.length()-2);
mines[i++].second = temp;
}
buf = CGameInfo::mainObj->bitmaph->getTextFile("RESTYPES.TXT");
it=0;
while (it<buf.length()-1)
{
CGeneralTextHandler::loadToIt(temp,buf,it,3);
restypes.push_back(temp);
}
}
@ -273,6 +283,7 @@ CGObjectInstance::CGObjectInstance()
//state = NULL;
defObjInfoNumber = -1;
tempOwner = 254;
blockVisit = false;
}
CGObjectInstance::~CGObjectInstance()
{
@ -297,7 +308,7 @@ CGObjectInstance::CGObjectInstance(const CGObjectInstance & right)
defInfo = right.defInfo;
info = right.info;
defObjInfoNumber = right.defObjInfoNumber;
blockVisit = false;
blockVisit = right.blockVisit;
//state = new CLuaObjectScript(right.state->);
//*state = *right.state;
//state = right.state;