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

Method Briefing_Draw_Phase

Source/Fodder.cpp:10183–10216  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10181}
10182
10183void cFodder::Briefing_Draw_Phase() {
10184 const char* Str_Brief = "BRIEFING";
10185 const char* Str_Phase = "PHASE ";
10186 const char* Str_Of = " OF ";
10187
10188 mString_GapCharID = 0x25;
10189
10190 String_Print_Large(Str_Brief, true, 0x4E);
10191
10192 Briefing_DrawBox(1, 0x49, 0x13E, 0x6B, 0xF3);
10193 Briefing_DrawBox(0, 0x48, 0x13E, 0x6B, 0xF2);
10194
10195 mString_GapCharID = 0;
10196
10197 std::stringstream Phase;
10198
10199 Phase << Str_Phase << tool_StripLeadingZero(std::to_string(mGame_Data.mMission_Phase));
10200 Phase << Str_Of << tool_StripLeadingZero(std::to_string(mGame_Data.mMission_Current->NumberOfPhases()));
10201
10202 String_Print_Small(Phase.str(), 0x1D);
10203
10204 Phase_Goals_Set();
10205
10206 int16 DataC = 0x84;
10207 bool* Goals = mGame_Data.mGamePhase_Data.mGoals_Remaining;
10208
10209 for (const auto GoalName : mMissionGoal_Titles) {
10210 if (*Goals++) {
10211
10212 String_Print_Small(GoalName, DataC - 0x12);
10213 DataC += 0x0C;
10214 }
10215 }
10216}
10217
10218void cFodder::Briefing_Show_PreReady() {
10219

Callers

nothing calls this directly

Calls 2

tool_StripLeadingZeroFunction · 0.85
NumberOfPhasesMethod · 0.80

Tested by

no test coverage detected