summaryrefslogtreecommitdiffstats
path: root/src/taskgoto.h
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/taskgoto.h
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/taskgoto.h')
-rw-r--r--src/taskgoto.h48
1 files changed, 31 insertions, 17 deletions
diff --git a/src/taskgoto.h b/src/taskgoto.h
index 094cd6b..220c941 100644
--- a/src/taskgoto.h
+++ b/src/taskgoto.h
@@ -1,4 +1,18 @@
-// taskgoto.h
+// * 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 .
#ifndef _TASKGOTO_H_
#define _TASKGOTO_H_
@@ -18,14 +32,14 @@ class CObject;
enum TaskGotoGoal
{
- TGG_DEFAULT = -1, // mode par défaut
- TGG_STOP = 0, // va à destination en s'arrêtant avec précision
- TGG_EXPRESS = 1, // va à destination sans s'arrêter
+ TGG_DEFAULT = -1, // mode par d�faut
+ TGG_STOP = 0, // va � destination en s'arr�tant avec pr�cision
+ TGG_EXPRESS = 1, // va � destination sans s'arr�ter
};
enum TaskGotoCrash
{
- TGC_DEFAULT = -1, // mode par défaut
+ TGC_DEFAULT = -1, // mode par d�faut
TGC_HALT = 0, // stoppe si collision
TGC_RIGHTLEFT = 1, // droite-gauche
TGC_LEFTRIGHT = 2, // gauche-droite
@@ -41,16 +55,16 @@ enum TaskGotoPhase
TGP_LAND = 2, // atterri
TGP_TURN = 3, // tourne pour finir
TGP_MOVE = 4, // avance pour finir
- TGP_CRWAIT = 5, // attend après collision
- TGP_CRTURN = 6, // tourne à droite après collision
- TGP_CRADVANCE = 7, // avance à droite après collision
- TGP_CLWAIT = 8, // attend après collision
- TGP_CLTURN = 9, // tourne à gauche après collision
- TGP_CLADVANCE = 10, // avance à gauche après collision
+ TGP_CRWAIT = 5, // attend apr�s collision
+ TGP_CRTURN = 6, // tourne � droite apr�s collision
+ TGP_CRADVANCE = 7, // avance � droite apr�s collision
+ TGP_CLWAIT = 8, // attend apr�s collision
+ TGP_CLTURN = 9, // tourne � gauche apr�s collision
+ TGP_CLADVANCE = 10, // avance � gauche apr�s collision
TGP_BEAMLEAK = 11, // beam: leak (fuite)
TGP_BEAMSEARCH = 12, // beam: search
- TGP_BEAMWCOLD = 13, // beam: attend refroidissement réacteur
- TGP_BEAMUP = 14, // beam: décolle
+ TGP_BEAMWCOLD = 13, // beam: attend refroidissement r�acteur
+ TGP_BEAMUP = 14, // beam: d�colle
TGP_BEAMGOTO = 15, // beam: goto dot list
TGP_BEAMDOWN = 16, // beam: atterri
};
@@ -120,7 +134,7 @@ protected:
int m_bmSize; // largeur ou hauteur du tableau
int m_bmOffset; // m_bmSize/2
- int m_bmLine; // incrément ligne m_bmSize/8
+ int m_bmLine; // incr�ment ligne m_bmSize/8
unsigned char* m_bmArray; // tableau de bits
int m_bmMinX, m_bmMinY;
int m_bmMaxX, m_bmMaxY;
@@ -130,14 +144,14 @@ protected:
char m_bmIter[MAXPOINTS+2];
int m_bmIterCounter;
CObject* m_bmFretObject;
- float m_bmFinalMove; // distance finale à avancer
- float m_bmFinalDist; // distance effective à avancer
+ float m_bmFinalMove; // distance finale � avancer
+ float m_bmFinalDist; // distance effective � avancer
D3DVECTOR m_bmFinalPos; // position initiale avant avance
float m_bmTimeLimit;
int m_bmStep;
D3DVECTOR m_bmWatchDogPos;
float m_bmWatchDogTime;
- D3DVECTOR m_leakPos; // position initiale à fuire
+ D3DVECTOR m_leakPos; // position initiale � fuire
float m_leakDelay;
float m_leakTime;
BOOL m_bLeakRecede;