summaryrefslogtreecommitdiffstats
path: root/src/autoinfo.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/autoinfo.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/autoinfo.cpp')
-rw-r--r--src/autoinfo.cpp40
1 files changed, 27 insertions, 13 deletions
diff --git a/src/autoinfo.cpp b/src/autoinfo.cpp
index f6de5a6..c048a31 100644
--- a/src/autoinfo.cpp
+++ b/src/autoinfo.cpp
@@ -1,4 +1,18 @@
-// autoinfo.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
@@ -49,7 +63,7 @@ CAutoInfo::~CAutoInfo()
}
-// Détruit l'objet.
+// D�truit l'objet.
void CAutoInfo::DeleteObject(BOOL bAll)
{
@@ -70,7 +84,7 @@ void CAutoInfo::Init()
}
-// Démarre une émission.
+// D�marre une �mission.
void CAutoInfo::Start(int param)
{
@@ -128,7 +142,7 @@ void CAutoInfo::Start(int param)
}
-// Gestion d'un événement.
+// Gestion d'un �v�nement.
BOOL CAutoInfo::EventProcess(const Event &event)
{
@@ -144,7 +158,7 @@ BOOL CAutoInfo::EventProcess(const Event &event)
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 )
{
@@ -345,7 +359,7 @@ BOOL CAutoInfo::EventProcess(const Event &event)
}
-// Retourne une erreur liée à l'état de l'automate.
+// Retourne une erreur li�e � l'�tat de l'automate.
Error CAutoInfo::RetError()
{
@@ -358,7 +372,7 @@ Error CAutoInfo::RetError()
}
-// Crée toute l'interface lorsque l'objet est sélectionné.
+// Cr�e toute l'interface lorsque l'objet est s�lectionn�.
BOOL CAutoInfo::CreateInterface(BOOL bSelect)
{
@@ -396,8 +410,8 @@ BOOL CAutoInfo::CreateInterface(BOOL bSelect)
return TRUE;
}
-// Met à jour l'état de tous les boutons de l'interface,
-// suite au temps qui s'écoule ...
+// Met � jour l'�tat de tous les boutons de l'interface,
+// suite au temps qui s'�coule ...
void CAutoInfo::UpdateInterface(float rTime)
{
@@ -405,7 +419,7 @@ void CAutoInfo::UpdateInterface(float rTime)
}
-// Met à jour le contenu de la liste.
+// Met � jour le contenu de la liste.
void CAutoInfo::UpdateList()
{
@@ -442,7 +456,7 @@ void CAutoInfo::UpdateList()
m_object->SetInfoUpdate(FALSE);
}
-// Met à jour le contenu contaminé de la liste.
+// Met � jour le contenu contamin� de la liste.
void CAutoInfo::UpdateListVirus()
{
@@ -478,7 +492,7 @@ void CAutoInfo::UpdateListVirus()
}
-// Sauve tous les paramètres de l'automate.
+// Sauve tous les param�tres de l'automate.
BOOL CAutoInfo::Write(char *line)
{
@@ -503,7 +517,7 @@ BOOL CAutoInfo::Write(char *line)
return TRUE;
}
-// Restitue tous les paramètres de l'automate.
+// Restitue tous les param�tres de l'automate.
BOOL CAutoInfo::Read(char *line)
{