summaryrefslogtreecommitdiffstats
path: root/src/autoconvert.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/autoconvert.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/autoconvert.cpp')
-rw-r--r--src/autoconvert.cpp44
1 files changed, 29 insertions, 15 deletions
diff --git a/src/autoconvert.cpp b/src/autoconvert.cpp
index 7a11ac3..a3c2e5b 100644
--- a/src/autoconvert.cpp
+++ b/src/autoconvert.cpp
@@ -1,4 +1,18 @@
-// autoconvert.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
@@ -52,7 +66,7 @@ CAutoConvert::~CAutoConvert()
}
-// Détruit l'objet.
+// D�truit l'objet.
void CAutoConvert::DeleteObject(BOOL bAll)
{
@@ -63,7 +77,7 @@ void CAutoConvert::DeleteObject(BOOL bAll)
fret = SearchStone(OBJECT_STONE);
if ( fret != 0 )
{
- fret->DeleteObject(); // détruit la pierre
+ fret->DeleteObject(); // d�truit la pierre
delete fret;
}
}
@@ -94,7 +108,7 @@ void CAutoConvert::Init()
}
-// Gestion d'un événement.
+// Gestion d'un �v�nement.
BOOL CAutoConvert::EventProcess(const Event &event)
{
@@ -111,7 +125,7 @@ BOOL CAutoConvert::EventProcess(const Event &event)
m_progress += event.rTime*m_speed;
m_timeVirus -= event.rTime;
- if ( m_object->RetVirusMode() ) // contaminé par un virus ?
+ if ( m_object->RetVirusMode() ) // contamin� par un virus ?
{
if ( m_timeVirus <= 0.0f )
{
@@ -136,7 +150,7 @@ BOOL CAutoConvert::EventProcess(const Event &event)
{
if ( m_progress >= 1.0f )
{
- fret = SearchStone(OBJECT_STONE); // pierre à transformer ?
+ fret = SearchStone(OBJECT_STONE); // pierre � transformer ?
if ( fret == 0 || SearchVehicle() )
{
m_phase = ACP_WAIT; // attend encore ...
@@ -197,7 +211,7 @@ BOOL CAutoConvert::EventProcess(const Event &event)
{
if ( m_progress < 0.5f )
{
- angle = powf((m_progress*2.0f)*5.0f, 2.0f); // accélère
+ angle = powf((m_progress*2.0f)*5.0f, 2.0f); // acc�l�re
}
else
{
@@ -236,11 +250,11 @@ BOOL CAutoConvert::EventProcess(const Event &event)
if ( fret != 0 )
{
m_bResetDelete = ( fret->RetResetCap() != RESET_NONE );
- fret->DeleteObject(); // détruit la pierre
+ fret->DeleteObject(); // d�truit la pierre
delete fret;
}
- CreateMetal(); // c'est du métal
+ CreateMetal(); // c'est du m�tal
m_sound->Play(SOUND_OPEN, m_object->RetPosition(0), 1.0f, 1.5f);
m_phase = ACP_OPEN;
@@ -290,7 +304,7 @@ BOOL CAutoConvert::EventProcess(const Event &event)
return TRUE;
}
-// Retourne une erreur liée à l'état de l'automate.
+// Retourne une erreur li�e � l'�tat de l'automate.
Error CAutoConvert::RetError()
{
@@ -331,7 +345,7 @@ BOOL CAutoConvert::Abort()
}
-// Crée toute l'interface lorsque l'objet est sélectionné.
+// Cr�e toute l'interface lorsque l'objet est s�lectionn�.
BOOL CAutoConvert::CreateInterface(BOOL bSelect)
{
@@ -361,7 +375,7 @@ BOOL CAutoConvert::CreateInterface(BOOL bSelect)
}
-// Sauve tous les paramètres de l'automate.
+// Sauve tous les param�tres de l'automate.
BOOL CAutoConvert::Write(char *line)
{
@@ -387,7 +401,7 @@ BOOL CAutoConvert::Write(char *line)
return TRUE;
}
-// Restitue tous les paramètres de l'automate.
+// Restitue tous les param�tres de l'automate.
BOOL CAutoConvert::Read(char *line)
{
@@ -435,7 +449,7 @@ CObject* CAutoConvert::SearchStone(ObjectType type)
return 0;
}
-// Cherche si un véhicule est trop proche.
+// Cherche si un v�hicule est trop proche.
BOOL CAutoConvert::SearchVehicle()
{
@@ -503,7 +517,7 @@ BOOL CAutoConvert::SearchVehicle()
return FALSE;
}
-// Crée un objet métal.
+// Cr�e un objet m�tal.
void CAutoConvert::CreateMetal()
{