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/taskshield.cpp | 38 ++++++++++++++++++++++++++------------ 1 file changed, 26 insertions(+), 12 deletions(-) (limited to 'src/taskshield.cpp') diff --git a/src/taskshield.cpp b/src/taskshield.cpp index 3ae44c8..f12c046 100644 --- a/src/taskshield.cpp +++ b/src/taskshield.cpp @@ -1,4 +1,18 @@ -// taskshield.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 @@ -24,7 +38,7 @@ #include "taskshield.h" -#define ENERGY_TIME 20.0f // durée maximale si pile pleine +#define ENERGY_TIME 20.0f // dur�e maximale si pile pleine @@ -48,7 +62,7 @@ CTaskShield::~CTaskShield() } -// Gestion d'un événement. +// Gestion d'un �v�nement. BOOL CTaskShield::EventProcess(const Event &event) { @@ -64,13 +78,13 @@ BOOL CTaskShield::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; m_delay -= event.rTime; mat = m_object->RetWorldMatrix(0); pos = D3DVECTOR(7.0f, 15.0f, 0.0f); - pos = Transform(*mat, pos); // position sphère + pos = Transform(*mat, pos); // position sph�re m_shieldPos = pos; if ( m_rankSphere != -1 ) @@ -219,8 +233,8 @@ BOOL CTaskShield::EventProcess(const Event &event) } -// Déploie le bouclier. -// Le délai n'est utile qu'avec TSM_UP ! +// D�ploie le bouclier. +// Le d�lai n'est utile qu'avec TSM_UP ! Error CTaskShield::Start(TaskShieldMode mode, float delay) { @@ -247,7 +261,7 @@ Error CTaskShield::Start(TaskShieldMode mode, float delay) type = m_object->RetType(); if ( type != OBJECT_MOBILErs ) return ERR_SHIELD_VEH; - m_bError = TRUE; // opération impossible + m_bError = TRUE; // op�ration impossible if ( !m_physics->RetLand() ) return ERR_SHIELD_VEH; power = m_object->RetPower(); @@ -257,7 +271,7 @@ Error CTaskShield::Start(TaskShieldMode mode, float delay) mat = m_object->RetWorldMatrix(0); pos = D3DVECTOR(7.0f, 15.0f, 0.0f); - pos = Transform(*mat, pos); // position sphère + pos = Transform(*mat, pos); // position sph�re m_shieldPos = pos; m_sound->Play(SOUND_PSHHH2, m_shieldPos, 1.0f, 0.7f); @@ -323,7 +337,7 @@ Error CTaskShield::Stop() return ERR_OK; } -// Indique si l'action est terminée. +// Indique si l'action est termin�e. Error CTaskShield::IsEnded() { @@ -474,7 +488,7 @@ BOOL CTaskShield::Abort() } -// Crée la lumière pour accompagner un effet pyrotechnique. +// Cr�e la lumi�re pour accompagner un effet pyrotechnique. BOOL CTaskShield::CreateLight(D3DVECTOR pos) { @@ -511,7 +525,7 @@ BOOL CTaskShield::CreateLight(D3DVECTOR pos) } -// Répare le bouclier des objets dans la sphère du bouclier. +// R�pare le bouclier des objets dans la sph�re du bouclier. void CTaskShield::IncreaseShield() { -- cgit v1.2.3-1-g7c22