summaryrefslogtreecommitdiffstats
path: root/src/autoresearch.cpp
diff options
context:
space:
mode:
authorProgramerus <alcadeias95@gmail.com>2012-03-15 19:58:58 +0100
committerProgramerus <alcadeias95@gmail.com>2012-03-15 19:58:58 +0100
commita1a17c3a190e89d7e971d2841396d021845c183d (patch)
tree5a5867a2fc63ff1546f0624de4ec7021e5650204 /src/autoresearch.cpp
parentcfba346523b5d0fc64a53c63edad3568d5c2deed (diff)
downloadcolobot-a1a17c3a190e89d7e971d2841396d021845c183d.tar.gz
colobot-a1a17c3a190e89d7e971d2841396d021845c183d.tar.bz2
colobot-a1a17c3a190e89d7e971d2841396d021845c183d.zip
Comments translated from French to English.
Diffstat (limited to 'src/autoresearch.cpp')
-rw-r--r--src/autoresearch.cpp50
1 files changed, 25 insertions, 25 deletions
diff --git a/src/autoresearch.cpp b/src/autoresearch.cpp
index b5c50ad..5fdccd0 100644
--- a/src/autoresearch.cpp
+++ b/src/autoresearch.cpp
@@ -46,11 +46,11 @@
-#define SEARCH_TIME 30.0f // dur�e d'une recherche
+#define SEARCH_TIME 30.0f // duration of a research
-// Constructeur de l'objet.
+// Object's constructor.
CAutoResearch::CAutoResearch(CInstanceManager* iMan, CObject* object)
: CAuto(iMan, object)
@@ -68,7 +68,7 @@ CAutoResearch::CAutoResearch(CInstanceManager* iMan, CObject* object)
Init();
}
-// Destructeur de l'objet.
+// Object's destructor.
CAutoResearch::~CAutoResearch()
{
@@ -76,7 +76,7 @@ CAutoResearch::~CAutoResearch()
}
-// D�truit l'objet.
+// Destroys the object.
void CAutoResearch::DeleteObject(BOOL bAll)
{
@@ -92,7 +92,7 @@ void CAutoResearch::DeleteObject(BOOL bAll)
}
-// Initialise l'objet.
+// Initialize the object.
void CAutoResearch::Init()
{
@@ -107,7 +107,7 @@ void CAutoResearch::Init()
}
-// Gestion d'un �v�nement.
+// Management of an event.
BOOL CAutoResearch::EventProcess(const Event &event)
{
@@ -126,7 +126,7 @@ BOOL CAutoResearch::EventProcess(const Event &event)
if ( m_object->RetSelect() ) CreateInterface(TRUE);
}
- if ( m_object->RetSelect() && // centre s�lectionn� ?
+ if ( m_object->RetSelect() && // center selected?
(event.event == EVENT_OBJECT_RTANK ||
event.event == EVENT_OBJECT_RFLY ||
event.event == EVENT_OBJECT_RTHUMP ||
@@ -191,7 +191,7 @@ BOOL CAutoResearch::EventProcess(const Event &event)
m_progress += event.rTime*m_speed;
m_timeVirus -= event.rTime;
- if ( m_object->RetVirusMode() ) // contamin� par un virus ?
+ if ( m_object->RetVirusMode() ) // contaminated by a virus?
{
if ( m_timeVirus <= 0.0f )
{
@@ -204,24 +204,24 @@ BOOL CAutoResearch::EventProcess(const Event &event)
EventProgress(event.rTime);
angle = m_time*0.1f;
- m_object->SetAngleY(1, angle); // tourne l'antenne
+ m_object->SetAngleY(1, angle); // rotates the antenna
angle = (30.0f+sinf(m_time*0.3f)*20.0f)*PI/180.0f;
- m_object->SetAngleZ(2, angle); // oriente l'antenne
+ m_object->SetAngleZ(2, angle); // directs the antenna
if ( m_phase == ALP_WAIT )
{
- FireStopUpdate(m_progress, FALSE); // �teint
+ FireStopUpdate(m_progress, FALSE); // extinguished
return TRUE;
}
if ( m_phase == ALP_SEARCH )
{
- FireStopUpdate(m_progress, TRUE); // clignotte
+ FireStopUpdate(m_progress, TRUE); // flashes
if ( m_progress < 1.0f )
{
power = m_object->RetPower();
- if ( power == 0 ) // plus de pile ?
+ if ( power == 0 ) // more battery?
{
SetBusy(FALSE);
UpdateInterface();
@@ -251,7 +251,7 @@ BOOL CAutoResearch::EventProcess(const Event &event)
}
else
{
- SetResearch(m_research); // recherche effectu�e
+ SetResearch(m_research); // research done
m_displayText->DisplayError(INFO_RESEARCH, m_object);
message = ERR_OK;
@@ -281,7 +281,7 @@ BOOL CAutoResearch::EventProcess(const Event &event)
}
-// Retourne une erreur li�e � l'�tat de l'automate.
+// Returns an error due the state of the automation.
Error CAutoResearch::RetError()
{
@@ -315,7 +315,7 @@ Error CAutoResearch::RetError()
}
-// Cr�e toute l'interface lorsque l'objet est s�lectionn�.
+// Creates all the interface when the object is selected.
BOOL CAutoResearch::CreateInterface(BOOL bSelect)
{
@@ -386,7 +386,7 @@ BOOL CAutoResearch::CreateInterface(BOOL bSelect)
return TRUE;
}
-// Met � jour l'�tat de tous les boutons de l'interface.
+// Updates the status of all interface buttons.
void CAutoResearch::UpdateInterface()
{
@@ -427,8 +427,8 @@ void CAutoResearch::UpdateInterface()
VisibleInterface(pw, EVENT_OBJECT_RATOMIC, !m_bBusy);
}
-// Met � jour l'�tat de tous les boutons de l'interface,
-// suite au temps qui s'�coule ...
+// Updates the state of all buttons on the interface,
+// following the time that elapses ...
void CAutoResearch::UpdateInterface(float rTime)
{
@@ -460,7 +460,7 @@ void CAutoResearch::UpdateInterface(float rTime)
}
}
-// Indique les recherches d�j� effectu�es pour un bouton.
+// Research shows already performed button.
void CAutoResearch::OkayButton(CWindow *pw, EventMsg event)
{
@@ -473,7 +473,7 @@ void CAutoResearch::OkayButton(CWindow *pw, EventMsg event)
}
-// Teste si une recherche a d�j� �t� effectu�e.
+// Test whether a search has already been done.
BOOL CAutoResearch::TestResearch(EventMsg event)
{
@@ -489,7 +489,7 @@ BOOL CAutoResearch::TestResearch(EventMsg event)
return FALSE;
}
-// Indique une recherche comme effectu�e.
+// Indicates a search as made.
void CAutoResearch::SetResearch(EventMsg event)
{
@@ -512,7 +512,7 @@ void CAutoResearch::SetResearch(EventMsg event)
}
-// Met � jour les feux de stop.
+// Updates the stop lights.
void CAutoResearch::FireStopUpdate(float progress, BOOL bLightOn)
{
@@ -577,7 +577,7 @@ void CAutoResearch::FireStopUpdate(float progress, BOOL bLightOn)
}
-// Sauve tous les param�tres de l'automate.
+// Saves all parameters of the controller.
BOOL CAutoResearch::Write(char *line)
{
@@ -605,7 +605,7 @@ BOOL CAutoResearch::Write(char *line)
return TRUE;
}
-// Restitue tous les param�tres de l'automate.
+// Restores all parameters of the controller.
BOOL CAutoResearch::Read(char *line)
{