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

Method BroadcastWeather

src/World.cpp:2158–2170  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2156
2157
2158void cWorld::BroadcastWeather(eWeather a_Weather, const cClientHandle * a_Exclude)
2159{
2160 cCSLock Lock(m_CSPlayers);
2161 for (cPlayerList::iterator itr = m_Players.begin(); itr != m_Players.end(); ++itr)
2162 {
2163 cClientHandle * ch = (*itr)->GetClientHandle();
2164 if ((ch == a_Exclude) || (ch == NULL) || !ch->IsLoggedIn() || ch->IsDestroyed())
2165 {
2166 continue;
2167 }
2168 ch->SendWeather(a_Weather);
2169 }
2170}
2171
2172
2173

Callers

nothing calls this directly

Calls 6

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

Tested by

no test coverage detected