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

Method hasTileset

Source/Versions.hpp:47–58  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45 }
46
47 bool hasTileset(eTileTypes pTileType, eTileSub pSub = eTileSub::eTileSub_0 ) const {
48 auto tiles = getTileTypes();
49
50 return std::find_if(tiles.begin(), tiles.end(),
51 [pTileType, pSub](const sTileset& ms) {
52 if (ms.Type != pTileType)
53 return false;
54
55 return std::find(ms.Subs.begin(), ms.Subs.end(), pSub) != ms.Subs.end();
56 }
57 ) != tiles.end();
58 }
59
60 bool hasBriefingScreen() const {
61 return hasGfx(eGFX_BRIEFING);

Callers 1

GetForTilesetMethod · 0.80

Calls 3

findFunction · 0.85
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected