MCPcopy Create free account
hub / github.com/StrongPC123/Far-Cry-1-Source-Full / IsInMusicTheme

Method IsInMusicTheme

CrySystem/ScriptObjectSound.cpp:1211–1223  ·  view source on GitHub ↗

/////////////////////////////////////////////////////////////////////

Source from the content-addressed store, hash-verified

1209
1210//////////////////////////////////////////////////////////////////////////
1211int CScriptObjectSound::IsInMusicTheme(IFunctionHandler *pH)
1212{
1213 if(!m_pMusicSystem)
1214 return pH->EndFunctionNull();
1215
1216 CHECK_PARAMETERS(1);
1217 const char *pszTheme;
1218 pH->GetParam(1, pszTheme);
1219 SMusicSystemStatus *pStatus=m_pMusicSystem->GetStatus();
1220 if (pStatus)
1221 return pH->EndFunction(stricmp(pStatus->sTheme.c_str(), pszTheme)==0);
1222 return pH->EndFunctionNull();
1223}
1224
1225//////////////////////////////////////////////////////////////////////////
1226int CScriptObjectSound::IsInMusicMood(IFunctionHandler *pH)

Callers

nothing calls this directly

Calls 6

EndFunctionNullMethod · 0.80
EndFunctionMethod · 0.80
stricmpFunction · 0.50
GetParamMethod · 0.45
GetStatusMethod · 0.45
c_strMethod · 0.45

Tested by

no test coverage detected