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/taskreset.cpp | 30 ++++++++++++++++++++++-------- 1 file changed, 22 insertions(+), 8 deletions(-) (limited to 'src/taskreset.cpp') diff --git a/src/taskreset.cpp b/src/taskreset.cpp index 0d4aa28..ee6e797 100644 --- a/src/taskreset.cpp +++ b/src/taskreset.cpp @@ -1,4 +1,18 @@ -// taskreset.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 @@ -46,7 +60,7 @@ CTaskReset::~CTaskReset() } -// Gestion d'un événement. +// Gestion d'un �v�nement. BOOL CTaskReset::EventProcess(const Event &event) { @@ -64,7 +78,7 @@ BOOL CTaskReset::EventProcess(const Event &event) if ( m_phase == TRSP_ZOUT ) { angle = m_iAngle; - angle += powf(m_progress*5.0f, 2.0f); // accélère + angle += powf(m_progress*5.0f, 2.0f); // acc�l�re m_object->SetAngleY(0, angle); m_object->SetZoom(0, 1.0f-m_progress); @@ -159,8 +173,8 @@ BOOL CTaskReset::EventProcess(const Event &event) } -// Assigne le but à atteindre. -// Un angle positif effectue un virage à droite. +// Assigne le but � atteindre. +// Un angle positif effectue un virage � droite. Error CTaskReset::Start(D3DVECTOR goal, D3DVECTOR angle) { @@ -188,7 +202,7 @@ Error CTaskReset::Start(D3DVECTOR goal, D3DVECTOR angle) m_goal = goal; m_angle = angle; - if ( SearchVehicle() ) // emplacement de départ occupé ? + if ( SearchVehicle() ) // emplacement de d�part occup� ? { m_bError = TRUE; return ERR_RESET_NEAR; @@ -210,7 +224,7 @@ Error CTaskReset::Start(D3DVECTOR goal, D3DVECTOR angle) return ERR_OK; } -// Indique si l'action est terminée. +// Indique si l'action est termin�e. Error CTaskReset::IsEnded() { @@ -265,7 +279,7 @@ Error CTaskReset::IsEnded() } -// Cherche si un véhicule est trop proche. +// Cherche si un v�hicule est trop proche. BOOL CTaskReset::SearchVehicle() { -- cgit v1.2.3-1-g7c22