diff options
Diffstat (limited to 'src/autonest.cpp')
-rw-r--r-- | src/autonest.cpp | 30 |
1 files changed, 22 insertions, 8 deletions
diff --git a/src/autonest.cpp b/src/autonest.cpp index 1885ce8..6c436eb 100644 --- a/src/autonest.cpp +++ b/src/autonest.cpp @@ -1,4 +1,18 @@ -// autonest.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
@@ -43,7 +57,7 @@ CAutoNest::~CAutoNest() }
-// Détruit l'objet.
+// D�truit l'objet.
void CAutoNest::DeleteObject(BOOL bAll)
{
@@ -82,7 +96,7 @@ void CAutoNest::Init() }
-// Gestion d'un événement.
+// Gestion d'un �v�nement.
BOOL CAutoNest::EventProcess(const Event &event)
{
@@ -167,14 +181,14 @@ BOOL CAutoNest::SearchFree(D3DVECTOR pos) {
distance = Length(sPos, pos);
distance -= sRadius;
- if ( distance < 2.0f ) return FALSE; // emplacement occupé
+ if ( distance < 2.0f ) return FALSE; // emplacement occup�
}
}
return TRUE; // emplacement libre
}
-// Crée un objet transportable.
+// Cr�e un objet transportable.
void CAutoNest::CreateFret(D3DVECTOR pos, float angle, ObjectType type)
{
@@ -221,7 +235,7 @@ CObject* CAutoNest::SearchFret() }
-// Retourne une erreur liée à l'état de l'automate.
+// Retourne une erreur li�e � l'�tat de l'automate.
Error CAutoNest::RetError()
{
@@ -229,7 +243,7 @@ Error CAutoNest::RetError() }
-// Sauve tous les paramètres de l'automate.
+// Sauve tous les param�tres de l'automate.
BOOL CAutoNest::Write(char *line)
{
@@ -255,7 +269,7 @@ BOOL CAutoNest::Write(char *line) return TRUE;
}
-// Restitue tous les paramètres de l'automate.
+// Restitue tous les param�tres de l'automate.
BOOL CAutoNest::Read(char *line)
{
|