summaryrefslogtreecommitdiffstats
path: root/src/autoportico.cpp
diff options
context:
space:
mode:
authorKrzysztof H <krzys_h@interia.pl>2012-03-09 17:08:05 +0100
committerKrzysztof H <krzys_h@interia.pl>2012-03-09 17:08:05 +0100
commit84d1f79fdf02e0010e4b2d118458e8cd8ce0dd71 (patch)
tree842825145ada8e6f53d1de9f100383cc028d2b46 /src/autoportico.cpp
parenta4c804b49ec872b71bd5a0167c3ad45704a3cc30 (diff)
downloadcolobot-84d1f79fdf02e0010e4b2d118458e8cd8ce0dd71.tar.gz
colobot-84d1f79fdf02e0010e4b2d118458e8cd8ce0dd71.tar.bz2
colobot-84d1f79fdf02e0010e4b2d118458e8cd8ce0dd71.zip
Added license info using a small program SrcHead.
Diffstat (limited to 'src/autoportico.cpp')
-rw-r--r--src/autoportico.cpp34
1 files changed, 24 insertions, 10 deletions
diff --git a/src/autoportico.cpp b/src/autoportico.cpp
index 12dcbca..cad56cf 100644
--- a/src/autoportico.cpp
+++ b/src/autoportico.cpp
@@ -1,4 +1,18 @@
-// autoportico.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
@@ -29,7 +43,7 @@
-#define PARAM_DEPOSE 2 // run=2 -> dépose le vaisseau
+#define PARAM_DEPOSE 2 // run=2 -> d�pose le vaisseau
#define PORTICO_POSa 75.0f
#define PORTICO_POSb 65.0f
@@ -77,7 +91,7 @@ CAutoPortico::~CAutoPortico()
}
-// Détruit l'objet.
+// D�truit l'objet.
void CAutoPortico::DeleteObject(BOOL bAll)
{
@@ -109,7 +123,7 @@ void CAutoPortico::Init()
}
-// Démarre l'objet.
+// D�marre l'objet.
void CAutoPortico::Start(int param)
{
@@ -117,7 +131,7 @@ void CAutoPortico::Start(int param)
pos = m_object->RetPosition(0);
m_finalPos = pos;
- pos.z += PORTICO_TIME_MOVE*5.0f; // recule au départ
+ pos.z += PORTICO_TIME_MOVE*5.0f; // recule au d�part
m_object->SetPosition(0, pos);
m_finalPos.z += PORTICO_TIME_OPEN*5.3f;
@@ -137,7 +151,7 @@ void CAutoPortico::Start(int param)
}
-// Gestion d'un événement.
+// Gestion d'un �v�nement.
BOOL CAutoPortico::EventProcess(const Event &event)
{
@@ -151,7 +165,7 @@ BOOL CAutoPortico::EventProcess(const Event &event)
if ( m_phase == APOP_START )
{
- if ( m_param == PARAM_DEPOSE ) // dépose le vaisseau ?
+ if ( m_param == PARAM_DEPOSE ) // d�pose le vaisseau ?
{
m_startPos = m_object->RetPosition(0);
@@ -164,7 +178,7 @@ BOOL CAutoPortico::EventProcess(const Event &event)
m_progress = 0.0f;
m_speed = 1.0f/PORTICO_TIME_MOVE;
- m_main->SetMovieLock(TRUE); // bloque tout jusqu'à la fin de l'atterrissage
+ m_main->SetMovieLock(TRUE); // bloque tout jusqu'� la fin de l'atterrissage
m_camera->SetType(CAMERA_SCRIPT);
@@ -392,7 +406,7 @@ BOOL CAutoPortico::Abort()
}
-// Retourne une erreur liée à l'état de l'automate.
+// Retourne une erreur li�e � l'�tat de l'automate.
Error CAutoPortico::RetError()
{
@@ -400,7 +414,7 @@ Error CAutoPortico::RetError()
}
-// Met à jour le mapping de la texture des chenilles.
+// Met � jour le mapping de la texture des chenilles.
void CAutoPortico::UpdateTrackMapping(float left, float right)
{