First set of Core Classes changes! w00t :P

This was SVN commit r823.
This commit is contained in:
olsner
2004-07-27 21:00:53 +00:00
parent 8ae3658f84
commit 415662c4cd
21 changed files with 545 additions and 278 deletions
+9 -3
View File
@@ -11,8 +11,10 @@
extern CTerrain g_Terrain;
bool CEntity::processGotoNoPathing( CEntityOrder* current, float timestep )
bool CEntity::processGotoNoPathing( CEntityOrder* current, size_t timestep_millis )
{
float timestep=timestep_millis/1000.0f;
CVector2D delta;
delta.x = (float)current->m_data[0].location.x - m_position.X;
delta.y = (float)current->m_data[0].location.y - m_position.Z;
@@ -213,8 +215,10 @@ bool CEntity::processGotoNoPathing( CEntityOrder* current, float timestep )
return( false );
}
bool CEntity::processGoto( CEntityOrder* current, float timestep )
bool CEntity::processGoto( CEntityOrder* current, size_t timestep_millis )
{
float timestep=timestep_millis/1000.0f;
CVector2D pos( m_position.X, m_position.Z );
CVector2D path_to = current->m_data[0].location;
m_orderQueue.pop_front();
@@ -235,8 +239,10 @@ bool CEntity::processGoto( CEntityOrder* current, float timestep )
return( true );
}
bool CEntity::processPatrol( CEntityOrder* current, float timestep )
bool CEntity::processPatrol( CEntityOrder* current, size_t timestep_millis )
{
float timestep=timestep_millis/1000.0f;
CEntityOrder this_segment;
CEntityOrder repeat_patrol;