MCPcopy Create free account
hub / github.com/OGSR/OGSR-Engine / update

Method update

ogsr_engine/xrGame/item_manager.cpp:67–84  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

65}
66
67void CItemManager::update()
68{
69 START_PROFILE("Memory Manager/items::update")
70
71#ifdef DEBUG
72 OBJECTS::const_iterator I = m_objects.begin();
73 OBJECTS::const_iterator E = m_objects.end();
74 for (; I != E; ++I)
75 VERIFY3(m_object->movement().restrictions().accessible((*I)->ai_location().level_vertex_id()), *m_object->cName(), *(*I)->cName());
76#endif // DEBUG
77
78 inherited::update();
79
80 VERIFY3(!selected() || m_object->movement().restrictions().accessible(selected()->ai_location().level_vertex_id()), *m_object->cName(),
81 selected() ? *selected()->cName() : "<no selected item>");
82
83 STOP_PROFILE
84}
85
86void CItemManager::remove_links(CObject* object)
87{

Callers

nothing calls this directly

Calls 7

updateFunction · 0.85
movementMethod · 0.80
beginMethod · 0.45
endMethod · 0.45
accessibleMethod · 0.45
level_vertex_idMethod · 0.45
cNameMethod · 0.45

Tested by

no test coverage detected