mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-06-22 07:06:21 +00:00
Added entity heal capabilities/
This was SVN commit r3127.
This commit is contained in:
@@ -505,7 +505,16 @@ bool CEntity::processGatherNoPathing( CEntityOrder* current, size_t timestep_mil
|
||||
if( !m_actor ) return( false );
|
||||
return( processContactActionNoPathing( current, timestep_millis, "gather", &evt, &m_gather ) );
|
||||
}
|
||||
|
||||
bool CEntity::processHeal( CEntityOrder* current, size_t timestep_millis )
|
||||
{
|
||||
return( processContactAction( current, timestep_millis, CEntityOrder::ORDER_HEAL_NOPATHING, &m_heal ) );
|
||||
}
|
||||
bool CEntity::processHealNoPathing( CEntityOrder* current, size_t timestep_millis )
|
||||
{
|
||||
CEventHeal evt( current->m_data[0].entity );
|
||||
if( !m_actor ) return( false );
|
||||
return( processContactActionNoPathing( current, timestep_millis, "heal", &evt, &m_heal ) );
|
||||
}
|
||||
bool CEntity::processGoto( CEntityOrder* current, size_t UNUSED(timestep_millis) )
|
||||
{
|
||||
// float timestep=timestep_millis/1000.0f;
|
||||
|
||||
Reference in New Issue
Block a user