summaryrefslogtreecommitdiffstats
path: root/src/motionworm.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/motionworm.cpp')
-rw-r--r--src/motionworm.cpp32
1 files changed, 16 insertions, 16 deletions
diff --git a/src/motionworm.cpp b/src/motionworm.cpp
index 93b3bc9..1db4f25 100644
--- a/src/motionworm.cpp
+++ b/src/motionworm.cpp
@@ -1,4 +1,4 @@
-// * This file is part of the COLOBOT source code
+// * This file is part of the COLOBOT source code
// * Copyright (C) 2001-2008, Daniel ROUX & EPSITEC SA, www.epsitec.ch
// *
// * This program is free software: you can redistribute it and/or modify
@@ -12,7 +12,7 @@
// * 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/.
+// * along with this program. If not, see http://www.gnu.org/licenses/.// motionworm.cpp
#define STRICT
#define D3D_OVERLOADS
@@ -41,7 +41,7 @@
-#define START_TIME 1000.0f // d�but du temps relatif
+#define START_TIME 1000.0f // début du temps relatif
#define TIME_UPDOWN 2.0f // temps pour up/down
#define DOWN_ALTITUDE 3.0f // distance sous terre
#define WORM_PART 7 // nb de parties d'un ver
@@ -86,7 +86,7 @@ void CMotionWorm::DeleteObject(BOOL bAll)
}
-// Cr�e un v�hicule roulant quelconque pos� sur le sol.
+// Crée un véhicule roulant quelconque posé sur le sol.
BOOL CMotionWorm::Create(D3DVECTOR pos, float angle, ObjectType type,
float power)
@@ -101,23 +101,23 @@ BOOL CMotionWorm::Create(D3DVECTOR pos, float angle, ObjectType type,
m_object->SetType(type);
- // Cr�e la base principale.
+ // Crée la base principale.
rank = m_engine->CreateObject();
m_engine->SetObjectType(rank, TYPEVEHICULE); // c'est un objet mobile
m_object->SetObjectRank(0, rank);
- pModFile->ReadModel("objects\\worm0.mod"); // n'existe pas expr�s !
+ pModFile->ReadModel("objects\\worm0.mod"); // n'existe pas exprès !
pModFile->CreateEngineObject(rank);
m_object->SetPosition(0, pos);
m_object->SetAngleY(0, angle);
- // Un v�hicule doit avoir obligatoirement une sph�re de
+ // Un véhicule doit avoir obligatoirement une sphère de
// collision avec un centre (0;y;0) (voir GetCrashSphere).
m_object->CreateCrashSphere(D3DVECTOR(0.0f, 0.0f, 0.0f), 4.0f, SOUND_BOUM, 0.20f);
m_object->SetGlobalSphere(D3DVECTOR(0.0f, 0.0f, 0.0f), 5.0f);
px = 1.0f+WORM_PART/2;
- // Cr�e la t�te.
+ // Crée la tête.
rank = m_engine->CreateObject();
m_engine->SetObjectType(rank, TYPEDESCENDANT);
m_object->SetObjectRank(1, rank);
@@ -127,7 +127,7 @@ BOOL CMotionWorm::Create(D3DVECTOR pos, float angle, ObjectType type,
m_object->SetPosition(1, D3DVECTOR(px, 0.0f, 0.0f));
px -= 1.0f;
- // Cr�e le corps.
+ // Crée le corps.
for ( i=0 ; i<WORM_PART ; i++ )
{
rank = m_engine->CreateObject();
@@ -140,7 +140,7 @@ BOOL CMotionWorm::Create(D3DVECTOR pos, float angle, ObjectType type,
px -= 1.0f;
}
- // Cr�e la queue.
+ // Crée la queue.
rank = m_engine->CreateObject();
m_engine->SetObjectType(rank, TYPEDESCENDANT);
m_object->SetObjectRank(2+WORM_PART, rank);
@@ -163,7 +163,7 @@ BOOL CMotionWorm::Create(D3DVECTOR pos, float angle, ObjectType type,
return TRUE;
}
-// Cr�e la physique de l'objet.
+// Crée la physique de l'objet.
void CMotionWorm::CreatePhysics()
{
@@ -198,7 +198,7 @@ void CMotionWorm::CreatePhysics()
-// Sp�cifie un param�tre sp�cial.
+// Spécifie un paramètre spécial.
BOOL CMotionWorm::SetParam(int rank, float value)
{
@@ -226,7 +226,7 @@ float CMotionWorm::RetParam(int rank)
-// Gestion d'un �v�nement.
+// Gestion d'un événement.
BOOL CMotionWorm::EventProcess(const Event &event)
{
@@ -244,7 +244,7 @@ BOOL CMotionWorm::EventProcess(const Event &event)
return TRUE;
}
-// Gestion d'un �v�nement.
+// Gestion d'un événement.
BOOL CMotionWorm::EventFrame(const Event &event)
{
@@ -279,7 +279,7 @@ BOOL CMotionWorm::EventFrame(const Event &event)
else if ( phase < TIME_UPDOWN+m_timeDown ) // avance sous terre ?
{
h = -DOWN_ALTITUDE;
- under ++; // un morceau enti�rement sous terre de plus
+ under ++; // un morceau entièrement sous terre de plus
}
else if ( phase < TIME_UPDOWN+m_timeDown+TIME_UPDOWN ) // monte ?
{
@@ -289,7 +289,7 @@ BOOL CMotionWorm::EventFrame(const Event &event)
{
h = 0.0f;
}
- if ( m_object->RetBurn() ) // br�le ?
+ if ( m_object->RetBurn() ) // brûle ?
{
h = 0.0f; // reste sur terre
}