Comments translated from French to English.

dev-ui
Programerus 2012-03-15 20:33:43 +01:00
parent 329f70abb6
commit 2400ca1de0
1 changed files with 20 additions and 20 deletions

View File

@ -44,7 +44,7 @@
// Constructeur de l'objet. // Object's constructor.
CAutoStation::CAutoStation(CInstanceManager* iMan, CObject* object) CAutoStation::CAutoStation(CInstanceManager* iMan, CObject* object)
: CAuto(iMan, object) : CAuto(iMan, object)
@ -54,7 +54,7 @@ CAutoStation::CAutoStation(CInstanceManager* iMan, CObject* object)
Init(); Init();
} }
// Destructeur de l'objet. // Object's destructor.
CAutoStation::~CAutoStation() CAutoStation::~CAutoStation()
{ {
@ -62,7 +62,7 @@ CAutoStation::~CAutoStation()
} }
// D<EFBFBD>truit l'objet. // Destroys the object.
void CAutoStation::DeleteObject(BOOL bAll) void CAutoStation::DeleteObject(BOOL bAll)
{ {
@ -76,7 +76,7 @@ void CAutoStation::DeleteObject(BOOL bAll)
} }
// Initialise l'objet. // Initialize the object.
void CAutoStation::Init() void CAutoStation::Init()
{ {
@ -91,7 +91,7 @@ void CAutoStation::Init()
} }
// Gestion d'un <20>v<EFBFBD>nement. // Management of an event.
BOOL CAutoStation::EventProcess(const Event &event) BOOL CAutoStation::EventProcess(const Event &event)
{ {
@ -110,7 +110,7 @@ BOOL CAutoStation::EventProcess(const Event &event)
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_bLastVirus ) if ( !m_bLastVirus )
{ {
@ -142,7 +142,7 @@ BOOL CAutoStation::EventProcess(const Event &event)
res = m_terrain->RetResource(m_object->RetPosition(0)); res = m_terrain->RetResource(m_object->RetPosition(0));
if ( res == TR_POWER ) if ( res == TR_POWER )
{ {
big += event.rTime*0.01f; // recharge la grosse pile big += event.rTime*0.01f; // recharges the large battery
} }
used = big; used = big;
@ -159,10 +159,10 @@ BOOL CAutoStation::EventProcess(const Event &event)
add = event.rTime*0.2f; add = event.rTime*0.2f;
if ( add > big*4.0f ) add = big*4.0f; if ( add > big*4.0f ) add = big*4.0f;
if ( add > 1.0f-energy ) add = 1.0f-energy; if ( add > 1.0f-energy ) add = 1.0f-energy;
energy += add; // recharge la pile energy += add; // Charging the battery
power->SetEnergy(energy); power->SetEnergy(energy);
if ( energy < freq ) freq = energy; if ( energy < freq ) freq = energy;
big -= add/4.0f; // d<EFBFBD>charge la grosse pile big -= add/4.0f; // discharge the large battery
} }
power = vehicule->RetFret(); power = vehicule->RetFret();
@ -172,16 +172,16 @@ BOOL CAutoStation::EventProcess(const Event &event)
add = event.rTime*0.2f; add = event.rTime*0.2f;
if ( add > big*4.0f ) add = big*4.0f; if ( add > big*4.0f ) add = big*4.0f;
if ( add > 1.0f-energy ) add = 1.0f-energy; if ( add > 1.0f-energy ) add = 1.0f-energy;
energy += add; // recharge la pile energy += add; // Charging the battery
power->SetEnergy(energy); power->SetEnergy(energy);
if ( energy < freq ) freq = energy; if ( energy < freq ) freq = energy;
big -= add/4.0f; // d<EFBFBD>charge la grosse pile big -= add/4.0f; // discharge the large battery
} }
} }
} }
used -= big; // <EFBFBD>nergie utilis<69>e used -= big; // energy used
if ( freq < 1.0f ) // charge en cours ? if ( freq < 1.0f ) // charging in progress?
{ {
freq = 1.0f+3.0f*freq; freq = 1.0f+3.0f*freq;
if ( m_soundChannel == -1 ) if ( m_soundChannel == -1 )
@ -206,7 +206,7 @@ BOOL CAutoStation::EventProcess(const Event &event)
m_lastParticule = m_time; m_lastParticule = m_time;
mat = m_object->RetWorldMatrix(0); mat = m_object->RetWorldMatrix(0);
pos = D3DVECTOR(-15.0f, 7.0f, 0.0f); // position batterie pos = D3DVECTOR(-15.0f, 7.0f, 0.0f); // battery position
pos = Transform(*mat, pos); pos = Transform(*mat, pos);
speed.x = (Rand()-0.5f)*20.0f; speed.x = (Rand()-0.5f)*20.0f;
speed.y = (Rand()-0.5f)*20.0f; speed.y = (Rand()-0.5f)*20.0f;
@ -245,13 +245,13 @@ BOOL CAutoStation::EventProcess(const Event &event)
if ( big < 0.0f ) big = 0.0f; if ( big < 0.0f ) big = 0.0f;
if ( big > 1.0f ) big = 1.0f; if ( big > 1.0f ) big = 1.0f;
m_object->SetEnergy(big); // m<EFBFBD>j la grosse pile m_object->SetEnergy(big); // Shift the large battery
return TRUE; return TRUE;
} }
// Cherche le v<>hicule plac<61> sur la station. // Seeking the vehicle on the station.
CObject* CAutoStation::SearchVehicle() CObject* CAutoStation::SearchVehicle()
{ {
@ -306,7 +306,7 @@ CObject* CAutoStation::SearchVehicle()
} }
// Retourne une erreur li<6C>e <20> l'<27>tat de l'automate. // Returns an error due the state of the automation.
Error CAutoStation::RetError() Error CAutoStation::RetError()
{ {
@ -324,7 +324,7 @@ Error CAutoStation::RetError()
} }
// Cr<EFBFBD>e toute l'interface lorsque l'objet est s<>lectionn<6E>. // Crée toute l'interface lorsque l'objet est sélectionné .
BOOL CAutoStation::CreateInterface(BOOL bSelect) BOOL CAutoStation::CreateInterface(BOOL bSelect)
{ {
@ -359,8 +359,8 @@ BOOL CAutoStation::CreateInterface(BOOL bSelect)
return TRUE; return TRUE;
} }
// Met <20> jour l'<27>tat de tous les boutons de l'interface, // Updates the state of all buttons on the interface,
// suite au temps qui s'<27>coule ... // following the time that elapses ...
void CAutoStation::UpdateInterface(float rTime) void CAutoStation::UpdateInterface(float rTime)
{ {