| 65 | } |
| 66 | |
| 67 | void 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 | |
| 86 | void CItemManager::remove_links(CObject* object) |
| 87 | { |
nothing calls this directly
no test coverage detected