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

Method Game_Setup

Source/Fodder.cpp:18637–18655  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18635}
18636
18637void cFodder::Game_Setup() {
18638
18639 if (mParams->mMissionNumber < 1)
18640 mParams->mMissionNumber = 1;
18641
18642 GameData_Reset();
18643
18644 mIntroDone = false;
18645 mPhase_Complete = false;
18646
18647 mGame_Data.mMission_Phases_Remaining = 1;
18648 mGame_Data.mMission_Number = (uint16) (mParams->mMissionNumber);
18649 mGame_Data.mMission_Phase = (uint16) (mParams->mPhaseNumber ? (mParams->mPhaseNumber) : 1);
18650
18651 mGame_Data.Phase_Start();
18652
18653 mPhase_TryAgain = true;
18654 mGraphics->Load_pStuff();
18655}
18656
18657// This function is for viewing/iterating sprites
18658void cFodder::Playground() {

Callers 3

menu_loopFunction · 0.80
RunTestsMethod · 0.80
quickServiceScreenFunction · 0.80

Calls 2

Phase_StartMethod · 0.80
Load_pStuffMethod · 0.45

Tested by 1

RunTestsMethod · 0.64