From 84d1f79fdf02e0010e4b2d118458e8cd8ce0dd71 Mon Sep 17 00:00:00 2001 From: Krzysztof H Date: Fri, 9 Mar 2012 17:08:05 +0100 Subject: Added license info using a small program SrcHead. --- src/autostation.cpp | 40 +++++++++++++++++++++++++++------------- 1 file changed, 27 insertions(+), 13 deletions(-) (limited to 'src/autostation.cpp') diff --git a/src/autostation.cpp b/src/autostation.cpp index 3594eaf..e681748 100644 --- a/src/autostation.cpp +++ b/src/autostation.cpp @@ -1,4 +1,18 @@ -// autostation.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 @@ -48,7 +62,7 @@ CAutoStation::~CAutoStation() } -// Détruit l'objet. +// D�truit l'objet. void CAutoStation::DeleteObject(BOOL bAll) { @@ -77,7 +91,7 @@ void CAutoStation::Init() } -// Gestion d'un événement. +// Gestion d'un �v�nement. BOOL CAutoStation::EventProcess(const Event &event) { @@ -96,7 +110,7 @@ BOOL CAutoStation::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_bLastVirus ) { @@ -148,7 +162,7 @@ BOOL CAutoStation::EventProcess(const Event &event) energy += add; // recharge la pile power->SetEnergy(energy); if ( energy < freq ) freq = energy; - big -= add/4.0f; // décharge la grosse pile + big -= add/4.0f; // d�charge la grosse pile } power = vehicule->RetFret(); @@ -161,11 +175,11 @@ BOOL CAutoStation::EventProcess(const Event &event) energy += add; // recharge la pile power->SetEnergy(energy); if ( energy < freq ) freq = energy; - big -= add/4.0f; // décharge la grosse pile + big -= add/4.0f; // d�charge la grosse pile } } } - used -= big; // énergie utilisée + used -= big; // �nergie utilis�e if ( freq < 1.0f ) // charge en cours ? { @@ -231,13 +245,13 @@ BOOL CAutoStation::EventProcess(const Event &event) if ( big < 0.0f ) big = 0.0f; if ( big > 1.0f ) big = 1.0f; - m_object->SetEnergy(big); // màj la grosse pile + m_object->SetEnergy(big); // m�j la grosse pile return TRUE; } -// Cherche le véhicule placé sur la station. +// Cherche le v�hicule plac� sur la station. CObject* CAutoStation::SearchVehicle() { @@ -292,7 +306,7 @@ CObject* CAutoStation::SearchVehicle() } -// Retourne une erreur liée à l'état de l'automate. +// Retourne une erreur li�e � l'�tat de l'automate. Error CAutoStation::RetError() { @@ -310,7 +324,7 @@ Error CAutoStation::RetError() } -// Crée toute l'interface lorsque l'objet est sélectionné. +// Cr�e toute l'interface lorsque l'objet est s�lectionn�. BOOL CAutoStation::CreateInterface(BOOL bSelect) { @@ -345,8 +359,8 @@ BOOL CAutoStation::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 CAutoStation::UpdateInterface(float rTime) { -- cgit v1.2.3-1-g7c22