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

Method BroadcastDisplayObjective

src/World.cpp:2059–2071  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2057
2058
2059void cWorld::BroadcastDisplayObjective(const AString & a_Objective, cScoreboard::eDisplaySlot a_Display)
2060{
2061 cCSLock Lock(m_CSPlayers);
2062 for (cPlayerList::iterator itr = m_Players.begin(); itr != m_Players.end(); ++itr)
2063 {
2064 cClientHandle * ch = (*itr)->GetClientHandle();
2065 if ((ch == NULL) || !ch->IsLoggedIn() || ch->IsDestroyed())
2066 {
2067 continue;
2068 }
2069 ch->SendDisplayObjective(a_Objective, a_Display);
2070 }
2071}
2072
2073
2074

Callers 1

SetDisplayMethod · 0.80

Calls 6

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

Tested by

no test coverage detected