1
0
forked from 0ad/0ad

Actual death flag and CHandle entity handle retrieval.

This was SVN commit r3303.
This commit is contained in:
pyrolink 2005-12-29 04:57:02 +00:00
parent 79ecda1ecf
commit e968bd91ed

View File

@ -19,6 +19,7 @@ CEntityManager::CEntityManager()
{
m_nextalloc = 0;
m_extant = true;
m_death = false;
// Also load a couple of global entity settings
CConfigValue* cfg = g_ConfigDB.GetValue( CFG_USER, "selection.outline.quality" );
@ -100,6 +101,12 @@ HEntity* CEntityManager::getByHandle( u16 index )
if( !m_entities[index].m_refcount ) return( NULL );
return( new HEntity( index ) );
}
CHandle *CEntityManager::getHandle( int index )
{
if (!m_entities[index].m_refcount )
return NULL;
return &m_entities[index];
}
std::vector<HEntity>* CEntityManager::matches( EntityPredicate predicate, void* userdata )
{