summaryrefslogtreecommitdiffstats
path: root/src/displaytext.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/displaytext.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/displaytext.cpp')
-rw-r--r--src/displaytext.cpp30
1 files changed, 22 insertions, 8 deletions
diff --git a/src/displaytext.cpp b/src/displaytext.cpp
index f9c6312..5e40c00 100644
--- a/src/displaytext.cpp
+++ b/src/displaytext.cpp
@@ -1,4 +1,18 @@
-// displaytext.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
@@ -50,7 +64,7 @@ CDisplayText::CDisplayText(CInstanceManager* iMan)
m_visitGoal[i] = D3DVECTOR(0.0f, 0.0f, 0.0f);
m_visitDist[i] = 0.0f;
m_visitHeight[i] = 0.0f;
- m_time[i] = 0.0f; // rien d'affiché
+ m_time[i] = 0.0f; // rien d'affich�
}
m_bHide = FALSE;
@@ -66,7 +80,7 @@ CDisplayText::~CDisplayText()
}
-// Détruit l'objet.
+// D�truit l'objet.
void CDisplayText::DeleteObject()
{
@@ -74,7 +88,7 @@ void CDisplayText::DeleteObject()
}
-// Gestion d'un événement.
+// Gestion d'un �v�nement.
BOOL CDisplayText::EventProcess(const Event &event)
{
@@ -382,7 +396,7 @@ BOOL CDisplayText::ClearLastText()
if ( pw == 0 ) return FALSE;
pb2 = (CButton*)pw->SearchControl(EVENT_DT_VISIT0);
- if ( pb2 == 0 ) return FALSE; // même pas de première ligne
+ if ( pb2 == 0 ) return FALSE; // m�me pas de premi�re ligne
pg2 = (CGroup*)pw->SearchControl(EVENT_DT_GROUP0);
if ( pg2 == 0 ) return FALSE;
pl2 = (CLabel*)pw->SearchControl(EVENT_DT_LABEL0);
@@ -421,7 +435,7 @@ BOOL CDisplayText::ClearLastText()
}
-// Spécifie le facteur du délai.
+// Sp�cifie le facteur du d�lai.
void CDisplayText::SetDelay(float factor)
{
@@ -471,7 +485,7 @@ float CDisplayText::RetVisitHeight(EventMsg event)
}
-// Retourne la distance de visite idéale pour un objet donné.
+// Retourne la distance de visite id�ale pour un objet donn�.
float CDisplayText::RetIdealDist(CObject* pObj)
{
@@ -490,7 +504,7 @@ float CDisplayText::RetIdealDist(CObject* pObj)
return 60.0f;
}
-// Retourne la hauteur de visite idéale pour un objet donné.
+// Retourne la hauteur de visite id�ale pour un objet donn�.
float CDisplayText::RetIdealHeight(CObject* pObj)
{