summaryrefslogtreecommitdiffstats
path: root/src/water.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/water.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/water.cpp')
-rw-r--r--src/water.cpp40
1 files changed, 27 insertions, 13 deletions
diff --git a/src/water.cpp b/src/water.cpp
index f3e4dc8..8efeb6a 100644
--- a/src/water.cpp
+++ b/src/water.cpp
@@ -1,4 +1,18 @@
-// water.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
@@ -134,7 +148,7 @@ BOOL CWater::EventProcess(const Event &event)
return TRUE;
}
-// Fait évoluer l'eau.
+// Fait �voluer l'eau.
BOOL CWater::EventFrame(const Event &event)
{
@@ -151,7 +165,7 @@ BOOL CWater::EventFrame(const Event &event)
return TRUE;
}
-// Fait évoluer les jets de vapeur sur la lave.
+// Fait �voluer les jets de vapeur sur la lave.
void CWater::LavaFrame(float rTime)
{
@@ -228,7 +242,7 @@ void CWater::VaporFlush()
}
}
-// Crée un nouveau jet de vapeur.
+// Cr�e un nouveau jet de vapeur.
BOOL CWater::VaporCreate(ParticuleType type, D3DVECTOR pos, float delay)
{
@@ -264,7 +278,7 @@ BOOL CWater::VaporCreate(ParticuleType type, D3DVECTOR pos, float delay)
return FALSE;
}
-// Fait évoluer un jet de vapeur,
+// Fait �voluer un jet de vapeur,
void CWater::VaporFrame(int i, float rTime)
{
@@ -337,7 +351,7 @@ void CWater::VaporFrame(int i, float rTime)
// Ajuste la position et la normale, pour imiter des reflets
-// sur une étendue d'eau au repos.
+// sur une �tendue d'eau au repos.
void CWater::AdjustLevel(D3DVECTOR &pos, D3DVECTOR &norm,
FPOINT &uv1, FPOINT &uv2)
@@ -382,8 +396,8 @@ void CWater::AdjustLevel(D3DVECTOR &pos, D3DVECTOR &norm,
#endif
}
-// Dessine la surface arrière de l'eau.
-// Cette surface empèche de voir le ciel (background) sous l'eau !
+// Dessine la surface arri�re de l'eau.
+// Cette surface emp�che de voir le ciel (background) sous l'eau !
void CWater::DrawBack()
{
@@ -586,7 +600,7 @@ void CWater::DrawSurf()
}
-// Indique s'il y a de l'eau à une position donnée.
+// Indique s'il y a de l'eau � une position donn�e.
BOOL CWater::RetWater(int x, int y)
{
@@ -614,7 +628,7 @@ BOOL CWater::RetWater(int x, int y)
return FALSE;
}
-// Met à jour les positions par-rapport au terrain.
+// Met � jour les positions par-rapport au terrain.
BOOL CWater::CreateLine(int x, int y, int len)
{
@@ -635,7 +649,7 @@ BOOL CWater::CreateLine(int x, int y, int len)
return ( m_lineUsed < MAXWATERLINE );
}
-// Crée toutes les étendues d'eau.
+// Cr�e toutes les �tendues d'eau.
BOOL CWater::Create(WaterType type1, WaterType type2, const char *filename,
D3DCOLORVALUE diffuse, D3DCOLORVALUE ambient,
@@ -734,7 +748,7 @@ float CWater::RetLevel()
return m_level;
}
-// Retourne le niveau actuel de l'eau pour un objet donné.
+// Retourne le niveau actuel de l'eau pour un objet donn�.
float CWater::RetLevel(CObject* object)
{
@@ -796,7 +810,7 @@ BOOL CWater::RetLava()
}
-// Ajuste l'oeil de la caméra, pour ne pas être entre deux eaux.
+// Ajuste l'oeil de la cam�ra, pour ne pas �tre entre deux eaux.
void CWater::AdjustEye(D3DVECTOR &eye)
{