summaryrefslogtreecommitdiffstats
path: root/src/autotower.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/autotower.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/autotower.cpp')
-rw-r--r--src/autotower.cpp46
1 files changed, 30 insertions, 16 deletions
diff --git a/src/autotower.cpp b/src/autotower.cpp
index 68a6e9e..d966bf1 100644
--- a/src/autotower.cpp
+++ b/src/autotower.cpp
@@ -1,4 +1,18 @@
-// autotower.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
@@ -32,8 +46,8 @@
-#define TOWER_SCOPE 200.0f // portée du rayon
-#define ENERGY_FIRE 0.125f // énergie consommée par tir
+#define TOWER_SCOPE 200.0f // port�e du rayon
+#define ENERGY_FIRE 0.125f // �nergie consomm�e par tir
// Constructeur de l'objet.
@@ -64,7 +78,7 @@ CAutoTower::~CAutoTower()
}
-// Détruit l'objet.
+// D�truit l'objet.
void CAutoTower::DeleteObject(BOOL bAll)
{
@@ -88,7 +102,7 @@ void CAutoTower::Init()
}
-// Gestion d'un événement.
+// Gestion d'un �v�nement.
BOOL CAutoTower::EventProcess(const Event &event)
{
@@ -104,7 +118,7 @@ BOOL CAutoTower::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 )
{
@@ -153,7 +167,7 @@ BOOL CAutoTower::EventProcess(const Event &event)
if ( m_phase == ATP_SEARCH )
{
- FireStopUpdate(m_progress, FALSE); // éteint
+ FireStopUpdate(m_progress, FALSE); // �teint
if ( m_progress < 1.0f )
{
quick = 1.0f;
@@ -317,7 +331,7 @@ CObject* CAutoTower::SearchTarget(D3DVECTOR &impact)
}
-// Retourne une erreur liée à l'état de l'automate.
+// Retourne une erreur li�e � l'�tat de l'automate.
Error CAutoTower::RetError()
{
@@ -337,14 +351,14 @@ Error CAutoTower::RetError()
{
if ( power->RetEnergy() < ENERGY_FIRE )
{
- return ERR_TOWER_ENERGY; // plus assez d'énergie
+ return ERR_TOWER_ENERGY; // plus assez d'�nergie
}
}
return ERR_OK;
}
-// Met à jour les feux de stop.
+// Met � jour les feux de stop.
void CAutoTower::FireStopUpdate(float progress, BOOL bLightOn)
{
@@ -361,7 +375,7 @@ void CAutoTower::FireStopUpdate(float progress, BOOL bLightOn)
0.0f, -4.5f,
};
- if ( !bLightOn ) // éteint ?
+ if ( !bLightOn ) // �teint ?
{
for ( i=0 ; i<4 ; i++ )
{
@@ -407,7 +421,7 @@ void CAutoTower::FireStopUpdate(float progress, BOOL bLightOn)
}
-// Crée toute l'interface lorsque l'objet est sélectionné.
+// Cr�e toute l'interface lorsque l'objet est s�lectionn�.
BOOL CAutoTower::CreateInterface(BOOL bSelect)
{
@@ -448,8 +462,8 @@ BOOL CAutoTower::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 CAutoTower::UpdateInterface(float rTime)
{
@@ -482,7 +496,7 @@ void CAutoTower::UpdateInterface(float rTime)
}
-// Sauve tous les paramètres de l'automate.
+// Sauve tous les param�tres de l'automate.
BOOL CAutoTower::Write(char *line)
{
@@ -522,7 +536,7 @@ BOOL CAutoTower::Write(char *line)
return TRUE;
}
-// Restitue tous les paramètres de l'automate.
+// Restitue tous les param�tres de l'automate.
BOOL CAutoTower::Read(char *line)
{