Comments translated from French to English.

dev-ui
Programerus 2012-03-13 18:49:07 +01:00
parent 5d678324b8
commit fb54e124fa
1 changed files with 17 additions and 17 deletions

View File

@ -47,7 +47,7 @@
// Constructeur de l'objet. // Object's constructor.
CAutoDestroyer::CAutoDestroyer(CInstanceManager* iMan, CObject* object) CAutoDestroyer::CAutoDestroyer(CInstanceManager* iMan, CObject* object)
: CAuto(iMan, object) : CAuto(iMan, object)
@ -55,10 +55,10 @@ CAutoDestroyer::CAutoDestroyer(CInstanceManager* iMan, CObject* object)
CAuto::CAuto(iMan, object); CAuto::CAuto(iMan, object);
Init(); Init();
m_phase = ADEP_WAIT; // en pause jusqu'au premier Init() m_phase = ADEP_WAIT; // paused until the first Init ()
} }
// Destructeur de l'objet. // Destructive of the object.
CAutoDestroyer::~CAutoDestroyer() CAutoDestroyer::~CAutoDestroyer()
{ {
@ -66,7 +66,7 @@ CAutoDestroyer::~CAutoDestroyer()
} }
// D<EFBFBD>truit l'objet. // Destroys the object.
void CAutoDestroyer::DeleteObject(BOOL bAll) void CAutoDestroyer::DeleteObject(BOOL bAll)
{ {
@ -74,7 +74,7 @@ void CAutoDestroyer::DeleteObject(BOOL bAll)
} }
// Initialise l'objet. // Initialize the object.
void CAutoDestroyer::Init() void CAutoDestroyer::Init()
{ {
@ -90,7 +90,7 @@ void CAutoDestroyer::Init()
} }
// Gestion d'un <20>v<EFBFBD>nement. // Management of an event.
BOOL CAutoDestroyer::EventProcess(const Event &event) BOOL CAutoDestroyer::EventProcess(const Event &event)
{ {
@ -107,7 +107,7 @@ BOOL CAutoDestroyer::EventProcess(const Event &event)
m_progress += event.rTime*m_speed; m_progress += event.rTime*m_speed;
m_timeVirus -= event.rTime; m_timeVirus -= event.rTime;
if ( m_object->RetVirusMode() ) // contamin<EFBFBD> par un virus ? if ( m_object->RetVirusMode() ) // contaminated by a virus?
{ {
if ( m_timeVirus <= 0.0f ) if ( m_timeVirus <= 0.0f )
{ {
@ -123,18 +123,18 @@ BOOL CAutoDestroyer::EventProcess(const Event &event)
scrap = SearchPlastic(); scrap = SearchPlastic();
if ( scrap == 0 ) if ( scrap == 0 )
{ {
m_phase = ADEP_WAIT; // attend encore ... m_phase = ADEP_WAIT; // still waiting ...
m_progress = 0.0f; m_progress = 0.0f;
m_speed = 1.0f/0.5f; m_speed = 1.0f/0.5f;
} }
else else
{ {
scrap->SetLock(TRUE); // d<EFBFBD>chet plus utilisable scrap->SetLock(TRUE); // usable waste
//? scrap->SetTruck(m_object); // d<EFBFBD>chet plus utilisable //? scrap->SetTruck(m_object); // usable waste
if ( SearchVehicle() ) if ( SearchVehicle() )
{ {
m_phase = ADEP_WAIT; // attend encore ... m_phase = ADEP_WAIT; // still waiting ...
m_progress = 0.0f; m_progress = 0.0f;
m_speed = 1.0f/0.5f; m_speed = 1.0f/0.5f;
} }
@ -218,7 +218,7 @@ BOOL CAutoDestroyer::EventProcess(const Event &event)
} }
// Cr<EFBFBD>e toute l'interface lorsque l'objet est s<>lectionn<6E>. // Creates all the interface when the object is selected.
BOOL CAutoDestroyer::CreateInterface(BOOL bSelect) BOOL CAutoDestroyer::CreateInterface(BOOL bSelect)
{ {
@ -248,7 +248,7 @@ BOOL CAutoDestroyer::CreateInterface(BOOL bSelect)
} }
// Cherche le d<>chet plac<61> sous le destructeur. // Seeks plate waste in the destroyer.
CObject* CAutoDestroyer::SearchPlastic() CObject* CAutoDestroyer::SearchPlastic()
{ {
@ -277,7 +277,7 @@ CObject* CAutoDestroyer::SearchPlastic()
return 0; return 0;
} }
// Cherche si un v<>hicule est trop proche. // Seeks if one vehicle is too close.
BOOL CAutoDestroyer::SearchVehicle() BOOL CAutoDestroyer::SearchVehicle()
{ {
@ -339,7 +339,7 @@ BOOL CAutoDestroyer::SearchVehicle()
} }
// Retourne une erreur li<6C>e <20> l'<27>tat de l'automate. // Returns an error due the state of the automation.
Error CAutoDestroyer::RetError() Error CAutoDestroyer::RetError()
{ {
@ -352,7 +352,7 @@ Error CAutoDestroyer::RetError()
} }
// Sauve tous les param<61>tres de l'automate. // Saves all parameters of the controller.
BOOL CAutoDestroyer::Write(char *line) BOOL CAutoDestroyer::Write(char *line)
{ {
@ -377,7 +377,7 @@ BOOL CAutoDestroyer::Write(char *line)
return TRUE; return TRUE;
} }
// Restitue tous les param<61>tres de l'automate. // Restores all parameters of the controller.
BOOL CAutoDestroyer::Read(char *line) BOOL CAutoDestroyer::Read(char *line)
{ {