1
0
forked from mirrors/0ad

Added entity heal capabilities/

This was SVN commit r3127.
This commit is contained in:
pyrolink
2005-11-13 06:42:12 +00:00
parent f27cab84f8
commit 9cf709ff5a
6 changed files with 35 additions and 3 deletions
+9
View File
@@ -49,6 +49,9 @@ CEntity::CEntity( CBaseEntity* base, CVector3D position, float orientation )
AddProperty( L"actions.gather.range", &( m_gather.m_MaxRange ) );
AddProperty( L"actions.gather.rangemin", &( m_gather.m_MinRange ) );
AddProperty( L"actions.gather.speed", &( m_gather.m_Speed ) );
AddProperty( L"actions.heal.range", &( m_heal.m_MaxRange ) );
AddProperty( L"actions.heal.rangemin", &( m_heal.m_MinRange ) );
AddProperty( L"actions.heal.speed", &( m_hea;.m_Speed ) );
AddProperty( L"position", &m_graphics_position, false, (NotifyFn)&CEntity::teleport );
AddProperty( L"orientation", &m_graphics_orientation, false, (NotifyFn)&CEntity::reorient );
AddProperty( L"player", &m_player );
@@ -328,6 +331,12 @@ void CEntity::update( size_t timestep )
case CEntityOrder::ORDER_GATHER_NOPATHING:
if( processGatherNoPathing( current, timestep ) ) break;
return;
case CEntityOrder::ORDER_HEAL:
if( processHeal( current, timestep ) ) break;
return;
case CEntityOrder::ORDER_HEAL_NOTPATHING:
if( processHealNoPathing( current, timestamp ) ) break;
return;
case CEntityOrder::ORDER_GOTO:
if( processGoto( current, timestep ) ) break;
return;