summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorProgramerus <alcadeias95@gmail.com>2012-04-10 20:49:15 +0300
committerProgramerus <alcadeias95@gmail.com>2012-04-10 20:49:15 +0300
commite82a8c52bd02e25470d0ec953efa0486c2096369 (patch)
tree5ff348fe9c68b652a93bb3c26e2582e703c11e22 /src
parent41974696596622c1a4b56c4cf267b57d6fc2aa5d (diff)
downloadcolobot-e82a8c52bd02e25470d0ec953efa0486c2096369.tar.gz
colobot-e82a8c52bd02e25470d0ec953efa0486c2096369.tar.bz2
colobot-e82a8c52bd02e25470d0ec953efa0486c2096369.zip
Comments translated from French to English.
Diffstat (limited to 'src')
-rw-r--r--src/taskspiderexplo.cpp26
1 files changed, 14 insertions, 12 deletions
diff --git a/src/taskspiderexplo.cpp b/src/taskspiderexplo.cpp
index b456273..251de6c 100644
--- a/src/taskspiderexplo.cpp
+++ b/src/taskspiderexplo.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/.// taskspiderexplo.cpp
+// * along with this program. If not, see http://www.gnu.org/licenses/.
+
+// taskspiderexplo.cpp
#define STRICT
#define D3D_OVERLOADS
@@ -38,7 +40,7 @@
-// Constructeur de l'objet.
+// Object's constructor.
CTaskSpiderExplo::CTaskSpiderExplo(CInstanceManager* iMan, CObject* object)
: CTask(iMan, object)
@@ -49,21 +51,21 @@ CTaskSpiderExplo::CTaskSpiderExplo(CInstanceManager* iMan, CObject* object)
m_bError = FALSE;
}
-// Destructeur de l'objet.
+// Object's destructor.
CTaskSpiderExplo::~CTaskSpiderExplo()
{
}
-// Gestion d'un événement.
+// Management of an event.
BOOL CTaskSpiderExplo::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_bError = TRUE;
@@ -76,21 +78,21 @@ BOOL CTaskSpiderExplo::EventProcess(const Event &event)
}
-// Assigne le but à atteindre.
+// Assigns the goal was achieved.
Error CTaskSpiderExplo::Start()
{
- m_motion->SetAction(MSS_EXPLO, 1.0f); // l'abdomen gonfle
+ m_motion->SetAction(MSS_EXPLO, 1.0f); // swells abdominal
m_time = 0.0f;
- 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 = FALSE;
return ERR_OK;
}
-// Indique si l'action est terminée.
+// Indicates whether the action is finished.
Error CTaskSpiderExplo::IsEnded()
{
@@ -107,13 +109,13 @@ Error CTaskSpiderExplo::IsEnded()
if ( m_time < 1.0f ) return ERR_CONTINUE;
pyro = new CPyro(m_iMan);
- pyro->Create(PT_SPIDER, m_object); // l'araignée explose (suicide)
+ pyro->Create(PT_SPIDER, m_object); // the spider explodes (suicide)
Abort();
return ERR_STOP;
}
-// Termine brutalement l'action en cours.
+// Suddenly ends the current action.
BOOL CTaskSpiderExplo::Abort()
{