MCPcopy Create free account
hub / github.com/TombEngine/TombEngine / ClearInactiveDisplayPickups

Method ClearInactiveDisplayPickups

TombEngine/Game/Hud/PickupSummary.cpp:234–244  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

232 }
233
234 void PickupSummaryController::ClearInactiveDisplayPickups()
235 {
236 _displayPickups.erase(
237 std::remove_if(
238 _displayPickups.begin(), _displayPickups.end(),
239 [](const DisplayPickup& pickup)
240 {
241 return ((pickup.Life <= 0.0f) && pickup.IsOffscreen());
242 }),
243 _displayPickups.end());
244 }
245
246 void PickupSummaryController::DrawDebug() const
247 {

Callers

nothing calls this directly

Calls 4

IsOffscreenMethod · 0.80
eraseMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected