mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-07-14 03:35:48 +00:00
Added entity heal capabilities/
This was SVN commit r3127.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user