| 56 | } |
| 57 | |
| 58 | const CHitObject* CHitMemoryManager::hit(const CEntityAlive* object) const |
| 59 | { |
| 60 | VERIFY(m_hits); |
| 61 | HITS::const_iterator I = std::find_if(m_hits->begin(), m_hits->end(), CHitObjectPredicate(object)); |
| 62 | if (m_hits->end() != I) |
| 63 | return (&*I); |
| 64 | |
| 65 | return (0); |
| 66 | } |
| 67 | |
| 68 | void CHitMemoryManager::add(const CEntityAlive* entity_alive) { add(0, Fvector().set(0, 0, 1), entity_alive, 0); } |
| 69 |
no test coverage detected