summaryrefslogtreecommitdiffstats
path: root/src/motion.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/motion.cpp')
-rw-r--r--src/motion.cpp34
1 files changed, 24 insertions, 10 deletions
diff --git a/src/motion.cpp b/src/motion.cpp
index 5553f69..2b33c10 100644
--- a/src/motion.cpp
+++ b/src/motion.cpp
@@ -1,4 +1,18 @@
-// motion.cpp
+// * 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
+// * it under the terms of the GNU General Public License as published by
+// * the Free Software Foundation, either version 3 of the License, or
+// * (at your option) any later version.
+// *
+// * This program is distributed in the hope that it will be useful,
+// * but WITHOUT ANY WARRANTY; without even the implied warranty of
+// * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// * 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 .
#define STRICT
#define D3D_OVERLOADS
@@ -83,14 +97,14 @@ void CMotion::SetBrain(CBrain* brain)
}
-// Crée.
+// Cr�e.
BOOL CMotion::Create(D3DVECTOR pos, float angle, ObjectType type, float power)
{
return TRUE;
}
-// Gestion d'un événement.
+// Gestion d'un �v�nement.
BOOL CMotion::EventProcess(const Event &event)
{
@@ -136,11 +150,11 @@ BOOL CMotion::EventProcess(const Event &event)
return TRUE;
}
-// (*) Evite le bug des fourmis retournées par le thumper et dont
-// l'abdomen grossi à l'infini !
+// (*) Evite le bug des fourmis retourn�es par le thumper et dont
+// l'abdomen grossi � l'infini !
-// Démarre une action.
+// D�marre une action.
Error CMotion::SetAction(int action, float time)
{
@@ -158,7 +172,7 @@ int CMotion::RetAction()
}
-// Spécifie un paramètre spécial.
+// Sp�cifie un param�tre sp�cial.
BOOL CMotion::SetParam(int rank, float value)
{
@@ -171,7 +185,7 @@ float CMotion::RetParam(int rank)
}
-// Sauve tous les paramètres de l'objet.
+// Sauve tous les param�tres de l'objet.
BOOL CMotion::Write(char *line)
{
@@ -191,7 +205,7 @@ BOOL CMotion::Write(char *line)
return FALSE;
}
-// Restitue tous les paramètres de l'objet.
+// Restitue tous les param�tres de l'objet.
BOOL CMotion::Read(char *line)
{
@@ -203,7 +217,7 @@ BOOL CMotion::Read(char *line)
}
-// Donne la vibration linéaire.
+// Donne la vibration lin�aire.
void CMotion::SetLinVibration(D3DVECTOR dir)
{