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/taskterraform.cpp | 30 ++++++++++++++++++++++-------- 1 file changed, 22 insertions(+), 8 deletions(-) (limited to 'src/taskterraform.cpp') diff --git a/src/taskterraform.cpp b/src/taskterraform.cpp index 835da53..54437dd 100644 --- a/src/taskterraform.cpp +++ b/src/taskterraform.cpp @@ -1,4 +1,18 @@ -// taskterraform.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 @@ -28,7 +42,7 @@ #include "taskterraform.h" -#define ENERGY_TERRA 0.40f // énergie consommée par coup +#define ENERGY_TERRA 0.40f // �nergie consomm�e par coup #define ACTION_RADIUS 400.0f @@ -50,7 +64,7 @@ CTaskTerraform::~CTaskTerraform() } -// Gestion d'un événement. +// Gestion d'un �v�nement. BOOL CTaskTerraform::EventProcess(const Event &event) { @@ -64,7 +78,7 @@ BOOL CTaskTerraform::EventProcess(const Event &event) if ( event.event != EVENT_FRAME ) return TRUE; if ( m_bError ) return FALSE; - m_progress += event.rTime*m_speed; // ça avance + m_progress += event.rTime*m_speed; // �a avance m_time += event.rTime; if ( m_phase == TTP_CHARGE ) @@ -192,7 +206,7 @@ BOOL CTaskTerraform::EventProcess(const Event &event) } -// Assigne le but à atteindre. +// Assigne le but � atteindre. Error CTaskTerraform::Start() { @@ -203,7 +217,7 @@ Error CTaskTerraform::Start() ObjectType type; - m_bError = TRUE; // opération impossible + m_bError = TRUE; // op�ration impossible if ( !m_physics->RetLand() ) return ERR_TERRA_VEH; type = m_object->RetType(); @@ -238,7 +252,7 @@ Error CTaskTerraform::Start() return ERR_OK; } -// Indique si l'action est terminée. +// Indique si l'action est termin�e. Error CTaskTerraform::IsEnded() { @@ -351,7 +365,7 @@ BOOL CTaskTerraform::Abort() } -// Retourne toutes les fourmis et les araignées proches. +// Retourne toutes les fourmis et les araign�es proches. BOOL CTaskTerraform::Terraform() { -- cgit v1.2.3-1-g7c22