MCPcopy Create free account
hub / github.com/OpenFodder/openfodder / Service_KIA_Troop_Prepare

Method Service_KIA_Troop_Prepare

Source/Fodder.cpp:9925–9945  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9923}
9924
9925int16 cFodder::Service_KIA_Troop_Prepare() {
9926 mService_Draw_List.clear();
9927
9928 mVideo_Draw_PosY = 0xE8;
9929 Service_Mission_Text_Prepare();
9930 mVideo_Draw_PosY += 0x40;
9931
9932 if (mGame_Data.mHeroes.empty() || mGame_Data.mGamePhase_Data.mHeroesCount == mGame_Data.mHeroes.size())
9933 return -1;
9934
9935
9936 for (size_t i = mGame_Data.mGamePhase_Data.mHeroesCount; i < mGame_Data.mHeroes.size(); ++i) {
9937
9938 auto& Hero = mGame_Data.mHeroes[i];
9939
9940 Service_Draw_Troop_And_Rank(Hero.mRecruitID, Hero.mRank);
9941 mVideo_Draw_PosY += 0x40;
9942 }
9943
9944 return 0;
9945}
9946
9947int16 cFodder::Service_Promotion_Prepare_Draw() {
9948 mService_Draw_List.clear();

Callers

nothing calls this directly

Calls 3

clearMethod · 0.45
emptyMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected