summaryrefslogtreecommitdiffstats
path: root/src/target.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/target.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/target.cpp')
-rw-r--r--src/target.cpp32
1 files changed, 23 insertions, 9 deletions
diff --git a/src/target.cpp b/src/target.cpp
index b0b64c2..5d153bc 100644
--- a/src/target.cpp
+++ b/src/target.cpp
@@ -1,4 +1,18 @@
-// target.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
@@ -36,7 +50,7 @@ CTarget::~CTarget()
}
-// Crée un nouveau bouton.
+// Cr�e un nouveau bouton.
BOOL CTarget::Create(FPOINT pos, FPOINT dim, int icon, EventMsg eventMsg)
{
@@ -48,7 +62,7 @@ BOOL CTarget::Create(FPOINT pos, FPOINT dim, int icon, EventMsg eventMsg)
}
-// Gestion d'un événement.
+// Gestion d'un �v�nement.
BOOL CTarget::EventProcess(const Event &event)
{
@@ -150,10 +164,10 @@ void CTarget::Draw()
BOOL CTarget::GetTooltip(FPOINT pos, char* name)
{
#if 0
- if ( (m_state&STATE_VISIBLE) && Detect(pos) ) // dans la fenêtre ?
+ if ( (m_state&STATE_VISIBLE) && Detect(pos) ) // dans la fen�tre ?
{
strcpy(name, m_tooltip);
- return TRUE; // ne détecte pas les objets dessous !
+ return TRUE; // ne d�tecte pas les objets dessous !
}
return FALSE;
@@ -162,14 +176,14 @@ BOOL CTarget::GetTooltip(FPOINT pos, char* name)
if ( (m_state & STATE_VISIBLE) == 0 ) return FALSE;
- if ( (m_state&STATE_VISIBLE) && Detect(pos) ) // dans la fenêtre ?
+ if ( (m_state&STATE_VISIBLE) && Detect(pos) ) // dans la fen�tre ?
{
//? pObj = DetectFriendObject(pos);
//? if ( pObj == 0 )
if ( !m_main->RetFriendAim() )
{
strcpy(name, m_tooltip);
- return TRUE; // ne détecte pas les objets dessous !
+ return TRUE; // ne d�tecte pas les objets dessous !
}
}
@@ -178,7 +192,7 @@ BOOL CTarget::GetTooltip(FPOINT pos, char* name)
}
-// Détecte l'objet visé par la souris.
+// D�tecte l'objet vis� par la souris.
CObject* CTarget::DetectFriendObject(FPOINT pos)
{
@@ -249,7 +263,7 @@ CObject* CTarget::DetectFriendObject(FPOINT pos)
}
else if ( (type == OBJECT_POWER ||
type == OBJECT_ATOMIC ) &&
- pObj->RetTruck() != 0 ) // pile utilisée ?
+ pObj->RetTruck() != 0 ) // pile utilis�e ?
{
pTarget = pObj->RetTruck();
if ( pTarget->RetType() == OBJECT_MOBILEtg )