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/target.cpp | 32 +++++++++++++++++++++++--------- 1 file changed, 23 insertions(+), 9 deletions(-) (limited to 'src/target.cpp') 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 ) -- cgit v1.2.3-1-g7c22