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

Method Map_Create

Source/Fodder.cpp:1896–1915  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1894}
1895
1896void cFodder::Map_Create(sMapParams pParams) {
1897
1898 if (mVersionCurrent->isAmigaPower())
1899 pParams.mTileSub = eTileSub_1;
1900
1901 mMapLoaded = std::make_shared<cRandomMap>(pParams);
1902
1903 mMap = mMapLoaded->getData();
1904
1905 mMapTile_Ptr = (int32)((0x60 - 8) - (mMapLoaded->getWidth() * 2));
1906 mMapTile_DrawX = 0;
1907 mMapTile_DrawY = 0;
1908
1909 // Clear current sprites
1910 Sprite_Clear_All();
1911
1912 // Load the map specific resources
1913 Map_Load_Resources();
1914
1915}
1916
1917void cFodder::Map_Load() {
1918 mMapLoaded = mGame_Data.mCampaign.getCMap(mGame_Data.mPhase_Current);

Callers

nothing calls this directly

Calls 3

isAmigaPowerMethod · 0.80
getDataMethod · 0.80
getWidthMethod · 0.45

Tested by

no test coverage detected