summaryrefslogtreecommitdiffstats
path: root/src/taskpen.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/taskpen.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/taskpen.cpp')
-rw-r--r--src/taskpen.cpp30
1 files changed, 22 insertions, 8 deletions
diff --git a/src/taskpen.cpp b/src/taskpen.cpp
index 49f2faf..c7ee59d 100644
--- a/src/taskpen.cpp
+++ b/src/taskpen.cpp
@@ -1,4 +1,18 @@
-// taskpen.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
@@ -42,7 +56,7 @@ CTaskPen::~CTaskPen()
}
-// Gestion d'un événement.
+// Gestion d'un �v�nement.
BOOL CTaskPen::EventProcess(const Event &event)
{
@@ -60,7 +74,7 @@ BOOL CTaskPen::EventProcess(const Event &event)
}
else
{
- m_progress += event.rTime*(1.0f/m_delay); // ça avance
+ m_progress += event.rTime*(1.0f/m_delay); // �a avance
if ( m_progress > 1.0f ) m_progress = 1.0f;
}
@@ -128,7 +142,7 @@ BOOL CTaskPen::EventProcess(const Event &event)
}
-// Assigne le but à atteindre.
+// Assigne le but � atteindre.
Error CTaskPen::Start(BOOL bDown, int color)
{
@@ -137,7 +151,7 @@ Error CTaskPen::Start(BOOL bDown, int color)
ObjectType type;
int i;
- m_bError = TRUE; // opération impossible
+ m_bError = TRUE; // op�ration impossible
type = m_object->RetType();
if ( type != OBJECT_MOBILEdr ) return ERR_FIRE_VEH;
@@ -190,7 +204,7 @@ Error CTaskPen::Start(BOOL bDown, int color)
return ERR_OK;
}
-// Indique si l'action est terminée.
+// Indique si l'action est termin�e.
Error CTaskPen::IsEnded()
{
@@ -251,7 +265,7 @@ void CTaskPen::SoundManip(float time, float amplitude, float frequency)
}
-// Conversion d'un angle en numéro de crayon.
+// Conversion d'un angle en num�ro de crayon.
int CTaskPen::AngleToRank(float angle)
{
@@ -268,7 +282,7 @@ float CTaskPen::ColorToAngle(int color)
return -45.0f*PI/180.0f*ColorToRank(color);
}
-// Conversion d'une couleur en numéro de crayon (0..7).
+// Conversion d'une couleur en num�ro de crayon (0..7).
int CTaskPen::ColorToRank(int color)
{