MCPcopy Create free account
hub / github.com/cuberite/cuberite / AddPlayerScore

Method AddPlayerScore

src/Scoreboard.cpp:530–541  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

528
529
530void cScoreboard::AddPlayerScore(const AString & a_Name, cObjective::eType a_Type, cObjective::Score a_Value)
531{
532 cCSLock Lock(m_CSObjectives);
533
534 for (cObjectiveMap::iterator it = m_Objectives.begin(); it != m_Objectives.end(); ++it)
535 {
536 if (it->second.GetType() == a_Type)
537 {
538 it->second.AddScore(a_Name, a_Value);
539 }
540 }
541}
542
543
544

Callers 1

KilledByMethod · 0.80

Calls 4

beginMethod · 0.80
endMethod · 0.80
AddScoreMethod · 0.80
GetTypeMethod · 0.45

Tested by

no test coverage detected