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

Method BroadcastScoreUpdate

src/World.cpp:2041–2053  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2039
2040
2041void cWorld::BroadcastScoreUpdate(const AString & a_Objective, const AString & a_Player, cObjective::Score a_Score, Byte a_Mode)
2042{
2043 cCSLock Lock(m_CSPlayers);
2044 for (cPlayerList::iterator itr = m_Players.begin(); itr != m_Players.end(); ++itr)
2045 {
2046 cClientHandle * ch = (*itr)->GetClientHandle();
2047 if ((ch == NULL) || !ch->IsLoggedIn() || ch->IsDestroyed())
2048 {
2049 continue;
2050 }
2051 ch->SendScoreUpdate(a_Objective, a_Player, a_Score, a_Mode);
2052 }
2053}
2054
2055
2056

Callers 3

ResetMethod · 0.80
SetScoreMethod · 0.80
ResetScoreMethod · 0.80

Calls 6

beginMethod · 0.80
endMethod · 0.80
GetClientHandleMethod · 0.80
IsLoggedInMethod · 0.80
IsDestroyedMethod · 0.45
SendScoreUpdateMethod · 0.45

Tested by

no test coverage detected