diff options
author | Programerus <alcadeias95@gmail.com> | 2012-04-06 22:09:00 +0300 |
---|---|---|
committer | Programerus <alcadeias95@gmail.com> | 2012-04-06 22:09:00 +0300 |
commit | 9c03ff837fea4dc856cef66dab2f160c3f74ddb0 (patch) | |
tree | 67311b276c09c0ae38e94df043fbb14b42259910 | |
parent | 6071aea68ca427598c91fc89274baec1aac392f1 (diff) | |
download | colobot-9c03ff837fea4dc856cef66dab2f160c3f74ddb0.tar.gz colobot-9c03ff837fea4dc856cef66dab2f160c3f74ddb0.tar.bz2 colobot-9c03ff837fea4dc856cef66dab2f160c3f74ddb0.zip |
Comments translated from French to English.
-rw-r--r-- | src/planet.cpp | 26 |
1 files changed, 14 insertions, 12 deletions
diff --git a/src/planet.cpp b/src/planet.cpp index 8e3098a..c5b037a 100644 --- a/src/planet.cpp +++ b/src/planet.cpp @@ -12,7 +12,9 @@ // * 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 http://www.gnu.org/licenses/.// planet.cpp
+// * along with this program. If not, see http://www.gnu.org/licenses/.
+
+// planet.cpp
#define STRICT
#define D3D_OVERLOADS
@@ -33,7 +35,7 @@ -// Constructeur du terrain.
+// Constructor of the terrain.
CPlanet::CPlanet(CInstanceManager* iMan, CD3DEngine* engine)
{
@@ -45,14 +47,14 @@ CPlanet::CPlanet(CInstanceManager* iMan, CD3DEngine* engine) }
-// Destructeur du terrain.
+// Destructor of the terrain.
CPlanet::~CPlanet()
{
}
-// Supprime toutes les planètes.
+// Removes all the planets.
void CPlanet::Flush()
{
@@ -72,7 +74,7 @@ void CPlanet::Flush() }
-// Gestion d'un événement.
+// Management of an event.
BOOL CPlanet::EventProcess(const Event &event)
{
@@ -83,7 +85,7 @@ BOOL CPlanet::EventProcess(const Event &event) return TRUE;
}
-// Fait évoluer les planètes.
+// Makes the planets evolve.
BOOL CPlanet::EventFrame(const Event &event)
{
@@ -111,7 +113,7 @@ BOOL CPlanet::EventFrame(const Event &event) }
-// Charge toutes les textures pour les planètes.
+// Load all the textures for the planets.
void CPlanet::LoadTexture()
{
@@ -128,7 +130,7 @@ void CPlanet::LoadTexture() }
}
-// Dessine toutes les planètes.
+// Draws all the planets.
void CPlanet::Draw()
{
@@ -143,7 +145,7 @@ void CPlanet::Draw() eyeDirH = m_engine->RetEyeDirH();
eyeDirV = m_engine->RetEyeDirV();
- n = D3DVECTOR(0.0f, 0.0f, -1.0f); // normale
+ n = D3DVECTOR(0.0f, 0.0f, -1.0f); // normal
dp = 0.5f/256.0f;
for ( i=0 ; i<MAXPLANET ; i++ )
@@ -188,7 +190,7 @@ void CPlanet::Draw() }
-// Crée une nouvelle planète.
+// Creates a new planet.
BOOL CPlanet::Create(int mode, FPOINT start, float dim, float speed,
float dir, char *name, FPOINT uv1, FPOINT uv2)
@@ -222,7 +224,7 @@ BOOL CPlanet::Create(int mode, FPOINT start, float dim, float speed, return FALSE;
}
-// Indique s'il existe au moins une planète.
+// Indicates if there is at least one planet.
BOOL CPlanet::PlanetExist()
{
@@ -230,7 +232,7 @@ BOOL CPlanet::PlanetExist() }
-// Choix du mode.
+// Choice of mode.
void CPlanet::SetMode(int mode)
{
|