void CMinimapInstance::showAll(SDL_Surface *to) { blitAtLoc(minimap, 0, 0, to); //draw heroes std::vector <const CGHeroInstance *> heroes = LOCPLINT->cb->getHeroesInfo(false); BOOST_FOREACH(auto & hero, heroes) { int3 position = hero->getPosition(false); if (position.z == level) { const SDL_Color & color = graphics->playerColors[hero->getOwner()]; blitTileWithColor(color, position, to, pos.x, pos.y); } }
void CMinimapInstance::refreshTile(const int3 &tile) { blitTileWithColor(getTileColor(int3(tile.x, tile.y, level)), tile, minimap, 0, 0); }