summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorProgramerus <alcadeias95@gmail.com>2012-04-11 00:20:26 +0300
committerProgramerus <alcadeias95@gmail.com>2012-04-11 00:20:26 +0300
commit38d01af159d0566695118ab56cbae3adf31621e1 (patch)
tree1d4bf47ba724070ac248d71c6ea22889ccdd6b8f
parente6ba3f08dce088d42c423288f89a791bb7072d79 (diff)
downloadcolobot-38d01af159d0566695118ab56cbae3adf31621e1.tar.gz
colobot-38d01af159d0566695118ab56cbae3adf31621e1.tar.bz2
colobot-38d01af159d0566695118ab56cbae3adf31621e1.zip
Comments translated from French to English.
-rw-r--r--src/taskturn.cpp26
1 files changed, 14 insertions, 12 deletions
diff --git a/src/taskturn.cpp b/src/taskturn.cpp
index 008b20b..eccc4af 100644
--- a/src/taskturn.cpp
+++ b/src/taskturn.cpp
@@ -12,7 +12,9 @@
// * GNU General Public License for more details.
// *
// * You should have received a copy of the GNU General Public License
-// * along with this program. If not, see http://www.gnu.org/licenses/.// taskturn.cpp
+// * along with this program. If not, see http://www.gnu.org/licenses/.
+
+// taskturn.cpp
#define STRICT
#define D3D_OVERLOADS
@@ -37,7 +39,7 @@
-// Constructeur de l'objet.
+// Object's constructor.
CTaskTurn::CTaskTurn(CInstanceManager* iMan, CObject* object)
: CTask(iMan, object)
@@ -45,25 +47,25 @@ CTaskTurn::CTaskTurn(CInstanceManager* iMan, CObject* object)
CTask::CTask(iMan, object);
}
-// Destructeur de l'objet.
+// Object's destructor.
CTaskTurn::~CTaskTurn()
{
}
-// Gestion d'un événement.
+// Management of an event.
BOOL CTaskTurn::EventProcess(const Event &event)
{
if ( m_engine->RetPause() ) return TRUE;
if ( event.event != EVENT_FRAME ) return TRUE;
- // Objet momentanément immobile (fourmi sur le dos) ?
+ // Momentarily stationary object (ant on the back)?
if ( m_object->RetFixed() )
{
- m_physics->SetMotorSpeedX(0.0f); // stoppe l'avance
- m_physics->SetMotorSpeedZ(0.0f); // stoppe la rotation
+ m_physics->SetMotorSpeedX(0.0f); // stops the advance
+ m_physics->SetMotorSpeedZ(0.0f); // stops the rotation
m_bError = TRUE;
return TRUE;
}
@@ -72,8 +74,8 @@ BOOL CTaskTurn::EventProcess(const Event &event)
}
-// Assigne le but à atteindre.
-// Un angle positif effectue un virage à droite.
+// Assigns the goal was achieved.
+// A positive angle is turning right.
Error CTaskTurn::Start(float angle)
{
@@ -83,13 +85,13 @@ Error CTaskTurn::Start(float angle)
if ( angle < 0.0f )
{
m_angle = angle+m_physics->RetCirStopLength();
- m_physics->SetMotorSpeedZ(-1.0f); // tourne à gauche
+ m_physics->SetMotorSpeedZ(-1.0f); // turns left
m_bLeft = TRUE;
}
else
{
m_angle = angle-m_physics->RetCirStopLength();
- m_physics->SetMotorSpeedZ(1.0f); // tourne à droite
+ m_physics->SetMotorSpeedZ(1.0f); // turns right
m_bLeft = FALSE;
}
m_physics->SetMotorSpeedX(0.0f);
@@ -99,7 +101,7 @@ Error CTaskTurn::Start(float angle)
return ERR_OK;
}
-// Indique si l'action est terminée.
+// Indicates whether the action is finished.
Error CTaskTurn::IsEnded()
{