summaryrefslogtreecommitdiffstats
path: root/src/mainshort.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/mainshort.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/mainshort.cpp')
-rw-r--r--src/mainshort.cpp36
1 files changed, 25 insertions, 11 deletions
diff --git a/src/mainshort.cpp b/src/mainshort.cpp
index 15affa3..48ab6d7 100644
--- a/src/mainshort.cpp
+++ b/src/mainshort.cpp
@@ -1,4 +1,18 @@
-// mainshort.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
@@ -52,7 +66,7 @@ void CMainShort::SetMode(BOOL bBuilding)
-// Remise à zéro de tous les raccourcis.
+// Remise � z�ro de tous les raccourcis.
void CMainShort::FlushShortcuts()
{
@@ -88,7 +102,7 @@ static EventMsg table_sc_em[20] =
EVENT_OBJECT_SHORTCUT19,
};
-// Crée l'interface des raccourcis aux unités.
+// Cr�e l'interface des raccourcis aux unit�s.
BOOL CMainShort::CreateShortcuts()
{
@@ -117,14 +131,14 @@ BOOL CMainShort::CreateShortcuts()
pos.y = (480.0f-32.0f)/480.0f;
if ( m_main->RetMovieLock() &&
- !m_main->RetEditLock() ) // bloqué pendant film ?
+ !m_main->RetEditLock() ) // bloqu� pendant film ?
{
m_interface->CreateShortcut(pos, dim, 7, EVENT_OBJECT_MOVIELOCK);
return TRUE;
}
if ( !m_main->RetFreePhoto() &&
(m_main->RetEditLock() ||
- m_engine->RetPause()) ) // bloqué pendant édition ?
+ m_engine->RetPause()) ) // bloqu� pendant �dition ?
{
m_interface->CreateShortcut(pos, dim, 6, EVENT_OBJECT_EDITLOCK);
return TRUE;
@@ -220,7 +234,7 @@ BOOL CMainShort::CreateShortcuts()
return TRUE;
}
-// Met à jour l'interface des raccourcis aux unités.
+// Met � jour l'interface des raccourcis aux unit�s.
BOOL CMainShort::UpdateShortcuts()
{
@@ -241,7 +255,7 @@ BOOL CMainShort::UpdateShortcuts()
return TRUE;
}
-// Sélectionne un objet à travers un raccourci.
+// S�lectionne un objet � travers un raccourci.
void CMainShort::SelectShortcut(EventMsg event)
{
@@ -253,7 +267,7 @@ void CMainShort::SelectShortcut(EventMsg event)
{
if ( i != 0 && m_shortcuts[i] == 0 ) continue;
- if ( i == 0 ) // bâtiments <-> véhicules ?
+ if ( i == 0 ) // b�timents <-> v�hicules ?
{
m_bBuilding = !m_bBuilding;
CreateShortcuts();
@@ -268,7 +282,7 @@ void CMainShort::SelectShortcut(EventMsg event)
}
-// Sélectionne l'objet suivant.
+// S�lectionne l'objet suivant.
void CMainShort::SelectNext()
{
@@ -301,7 +315,7 @@ void CMainShort::SelectNext()
}
-// Détecte l'objet survolé par la souris.
+// D�tecte l'objet survol� par la souris.
CObject* CMainShort::DetectShort(FPOINT pos)
{
@@ -331,7 +345,7 @@ CObject* CMainShort::DetectShort(FPOINT pos)
return 0;
}
-// Signale l'objet survolé par la souris.
+// Signale l'objet survol� par la souris.
void CMainShort::SetHilite(CObject* pObj)
{