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:
@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user