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

* fixed bugs in hero moving

* added functions to show/hide objects to CMapHandler
* added (partially written) fonction to create new CGObjectInstances
* added 2 console commands: A hides all abjects and R shows them again
This commit is contained in:
mateuszb
2007-11-03 16:46:08 +00:00
parent de4d8e093e
commit 8b73ab8492
6 changed files with 189 additions and 7 deletions

View File

@ -79,6 +79,18 @@ int internalFunc(void * callback)
std::cout<<std::endl;
}
break;
case 'A': //hide everything from map
for(int c=0; c<CGI->objh->objInstances.size(); ++c)
{
CGI->mh->hideObject(CGI->objh->objInstances[c]);
}
break;
case 'R': //restora all objects after A has been pressed
for(int c=0; c<CGI->objh->objInstances.size(); ++c)
{
CGI->mh->printObject(CGI->objh->objInstances[c]);
}
break;
}
//SDL_Delay(100);
}