mirror of
https://github.com/vcmi/vcmi.git
synced 2025-07-13 01:20:34 +02:00
Next part of Seer Hut code, including large number of Components, packs and help functions.
Mapa now contains separate vector of monsters to avoid linear search trough all objects.
This commit is contained in:
@ -865,6 +865,9 @@ void SComponent::init(Etype Type, int Subtype, int Val)
|
||||
subtitle = oss.str();
|
||||
}
|
||||
break;
|
||||
case hero:
|
||||
subtitle = description = CGI->heroh->heroes[Subtype]->name;
|
||||
break;
|
||||
case flag:
|
||||
subtitle = CGI->generaltexth->capColors[Subtype];
|
||||
break;
|
||||
@ -935,6 +938,9 @@ SDL_Surface * SComponent::getImg()
|
||||
break;
|
||||
case creature:
|
||||
return graphics->bigImgs[subtype];
|
||||
break;
|
||||
case hero:
|
||||
return graphics->portraitLarge[subtype];
|
||||
case flag:
|
||||
return graphics->flags->ourImages[subtype].bitmap;
|
||||
}
|
||||
|
Reference in New Issue
Block a user