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

Method WonGame

Source/Fodder.cpp:16927–16958  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16925}
16926
16927void cFodder::WonGame() {
16928
16929 if (mParams->mSinglePhase)
16930 return;
16931
16932 mMouseX = -1;
16933 mMouseY = -1;
16934
16935 mWindow->SetScreenSize(mVersionCurrent->GetSecondScreenSize());
16936
16937 if (mVersionCurrent->isAmigaTheOne()) {
16938 // mGraphics->Load_And_Draw_Image("PRETENTIOUS2", 0x100);
16939 mGraphics->Load_And_Draw_Image("PRETENTIOUS3", 0x100);
16940 } else {
16941 Music_Play(17);
16942 mGraphics->Load_And_Draw_Image("WON", 0x100);
16943 }
16944
16945 Image_FadeIn();
16946 mMouse_Exit_Loop = false;
16947
16948 for (int count = 10000; count >= 0; --count) {
16949 Video_Sleep();
16950
16951 if (mPhase_Aborted || mMouse_Exit_Loop)
16952 break;
16953 }
16954
16955 Image_FadeOut();
16956
16957 mWindow->SetScreenSize(mVersionCurrent->GetScreenSize());
16958}
16959
16960int16 cFodder::Sprite_Handle_Troop_Get_Frame_For_Direction(sSprite* pSprite) {
16961 int16 FrameNumber = pSprite->field_10;

Callers

nothing calls this directly

Calls 5

SetScreenSizeMethod · 0.80
GetSecondScreenSizeMethod · 0.80
isAmigaTheOneMethod · 0.80
Load_And_Draw_ImageMethod · 0.45
GetScreenSizeMethod · 0.45

Tested by

no test coverage detected