Comments translated from French to English.
parent
9b5ca23207
commit
9a0ca2005a
|
@ -41,7 +41,7 @@
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// Constructeur de l'objet.
|
// Object's constructor.
|
||||||
|
|
||||||
CAutoHuston::CAutoHuston(CInstanceManager* iMan, CObject* object)
|
CAutoHuston::CAutoHuston(CInstanceManager* iMan, CObject* object)
|
||||||
: CAuto(iMan, object)
|
: CAuto(iMan, object)
|
||||||
|
@ -78,7 +78,7 @@ CAutoHuston::CAutoHuston(CInstanceManager* iMan, CObject* object)
|
||||||
m_lens[2].off = 0.4f;
|
m_lens[2].off = 0.4f;
|
||||||
m_lens[3].off = 0.4f;
|
m_lens[3].off = 0.4f;
|
||||||
|
|
||||||
// Pi<EFBFBD>ce sous radar.
|
// Part under the radar.
|
||||||
i = 4;
|
i = 4;
|
||||||
m_lens[i].type = PARTISELR;
|
m_lens[i].type = PARTISELR;
|
||||||
m_lens[i].pos = pos+D3DVECTOR(-7.0f, 9.9f, 40.1f);
|
m_lens[i].pos = pos+D3DVECTOR(-7.0f, 9.9f, 40.1f);
|
||||||
|
@ -126,7 +126,7 @@ CAutoHuston::CAutoHuston(CInstanceManager* iMan, CObject* object)
|
||||||
m_lens[i].off = 0.7f;
|
m_lens[i].off = 0.7f;
|
||||||
i ++;
|
i ++;
|
||||||
|
|
||||||
// Pi<EFBFBD>ce avec 3 fen<65>tres.
|
// Part with three windows.
|
||||||
m_lens[i].type = PARTISELR;
|
m_lens[i].type = PARTISELR;
|
||||||
m_lens[i].pos = pos+D3DVECTOR(-7.0f, 9.9f, -19.9f);
|
m_lens[i].pos = pos+D3DVECTOR(-7.0f, 9.9f, -19.9f);
|
||||||
m_lens[i].dim = 1.0f;
|
m_lens[i].dim = 1.0f;
|
||||||
|
@ -185,7 +185,7 @@ CAutoHuston::CAutoHuston(CInstanceManager* iMan, CObject* object)
|
||||||
Init();
|
Init();
|
||||||
}
|
}
|
||||||
|
|
||||||
// Destructeur de l'objet.
|
// Object's destructor.
|
||||||
|
|
||||||
CAutoHuston::~CAutoHuston()
|
CAutoHuston::~CAutoHuston()
|
||||||
{
|
{
|
||||||
|
@ -193,7 +193,7 @@ CAutoHuston::~CAutoHuston()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// D<EFBFBD>truit l'objet.
|
// Destroys the object.
|
||||||
|
|
||||||
void CAutoHuston::DeleteObject(BOOL bAll)
|
void CAutoHuston::DeleteObject(BOOL bAll)
|
||||||
{
|
{
|
||||||
|
@ -201,7 +201,7 @@ void CAutoHuston::DeleteObject(BOOL bAll)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Initialise l'objet.
|
// Initialize the object.
|
||||||
|
|
||||||
void CAutoHuston::Init()
|
void CAutoHuston::Init()
|
||||||
{
|
{
|
||||||
|
@ -212,14 +212,14 @@ void CAutoHuston::Init()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// D<EFBFBD>marre l'objet.
|
// Start the object.
|
||||||
|
|
||||||
void CAutoHuston::Start(int param)
|
void CAutoHuston::Start(int param)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Gestion d'un <20>v<EFBFBD>nement.
|
// Management of an event.
|
||||||
|
|
||||||
BOOL CAutoHuston::EventProcess(const Event &event)
|
BOOL CAutoHuston::EventProcess(const Event &event)
|
||||||
{
|
{
|
||||||
|
@ -233,7 +233,7 @@ BOOL CAutoHuston::EventProcess(const Event &event)
|
||||||
if ( m_engine->RetPause() ) return TRUE;
|
if ( m_engine->RetPause() ) return TRUE;
|
||||||
|
|
||||||
angle = -m_time*1.0f;
|
angle = -m_time*1.0f;
|
||||||
m_object->SetAngleY(1, angle); // fait tourner le radar
|
m_object->SetAngleY(1, angle); // rotates the radar
|
||||||
angle = sinf(m_time*4.0f)*0.3f;
|
angle = sinf(m_time*4.0f)*0.3f;
|
||||||
m_object->SetAngleX(2, angle);
|
m_object->SetAngleX(2, angle);
|
||||||
|
|
||||||
|
@ -241,7 +241,7 @@ BOOL CAutoHuston::EventProcess(const Event &event)
|
||||||
|
|
||||||
m_progress += event.rTime*m_speed;
|
m_progress += event.rTime*m_speed;
|
||||||
|
|
||||||
// Fait clignotter les cl<63>s.
|
// Flashes the keys.
|
||||||
speed = D3DVECTOR(0.0f, 0.0f, 0.0f);
|
speed = D3DVECTOR(0.0f, 0.0f, 0.0f);
|
||||||
for ( i=0 ; i<m_lensTotal ; i++ )
|
for ( i=0 ; i<m_lensTotal ; i++ )
|
||||||
{
|
{
|
||||||
|
@ -268,7 +268,7 @@ BOOL CAutoHuston::EventProcess(const Event &event)
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Stoppe l'automate.
|
// Stops the controller.
|
||||||
|
|
||||||
BOOL CAutoHuston::Abort()
|
BOOL CAutoHuston::Abort()
|
||||||
{
|
{
|
||||||
|
@ -276,7 +276,7 @@ BOOL CAutoHuston::Abort()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Cr<EFBFBD>e toute l'interface lorsque l'objet est s<>lectionn<6E>.
|
// Creates all the interface when the object is selected.
|
||||||
|
|
||||||
BOOL CAutoHuston::CreateInterface(BOOL bSelect)
|
BOOL CAutoHuston::CreateInterface(BOOL bSelect)
|
||||||
{
|
{
|
||||||
|
@ -306,7 +306,7 @@ BOOL CAutoHuston::CreateInterface(BOOL bSelect)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Retourne une erreur li<6C>e <20> l'<27>tat de l'automate.
|
// Returns an error due to state of the automation.
|
||||||
|
|
||||||
Error CAutoHuston::RetError()
|
Error CAutoHuston::RetError()
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue