summaryrefslogtreecommitdiffstats
path: root/src/CBot/TestCBot/TestCBot.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/CBot/TestCBot/TestCBot.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/CBot/TestCBot/TestCBot.cpp')
-rw-r--r--src/CBot/TestCBot/TestCBot.cpp29
1 files changed, 21 insertions, 8 deletions
diff --git a/src/CBot/TestCBot/TestCBot.cpp b/src/CBot/TestCBot/TestCBot.cpp
index 7e2aabb..50c1e72 100644
--- a/src/CBot/TestCBot/TestCBot.cpp
+++ b/src/CBot/TestCBot/TestCBot.cpp
@@ -1,5 +1,18 @@
-// TestCBot.cpp : Defines the class behaviors for the application.
-//
+// * 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 .
#include "stdafx.h"
#include "TestCBot.h"
@@ -55,7 +68,7 @@ static char BASED_CODE szFilename[] = "File1";
#include "../ClassFILE.cpp"
-// routine pour mettre à jour l'instance de la classe Bot courante
+// routine pour mettre � jour l'instance de la classe Bot courante
void rMajObject( CBotVar* pThis, void* pUser )
{
if (!pThis->IsElemOfClass("object"))
@@ -76,7 +89,7 @@ void rMajObject( CBotVar* pThis, void* pUser )
// pX = pThis->GivItem( "xx" );
// pX->SetValFloat( (float)22 );
- // crée une instance sur une classe object
+ // cr�e une instance sur une classe object
// CBotVar* pAutre = CBotVar::Create("autre", CBotTypClass, "object");
// pAutre->SetUserPtr( (void*)3 );
// pPt->SetPointer( pAutre );
@@ -88,13 +101,13 @@ void rMajObject( CBotVar* pThis, void* pUser )
BOOL CTestCBotApp::InitInstance()
{
//////////////////////////////////////////////
-// défini les mots clefs supplémentaires
+// d�fini les mots clefs suppl�mentaires
// -------------------------------------------
CBotProgram::Init();
//////////////////////////////////////////////
-// défini les fonctions "show()" et "print()"
+// d�fini les fonctions "show()" et "print()"
// -------------------------------------------
CBotProgram::AddFunction("show", rShow, cShow);
@@ -103,7 +116,7 @@ BOOL CTestCBotApp::InitInstance()
///////////////////////////////////
-// définie la classe globale CPoint
+// d�finie la classe globale CPoint
// --------------------------------
m_pClassPoint = new CBotClass("CPoint", NULL);
@@ -126,7 +139,7 @@ BOOL CTestCBotApp::InitInstance()
// ajoute le constructeur pour cette classe
m_pClassPointIntr->AddFunction("point", rCPoint, cCPoint);
- // défini la classe "object"
+ // d�fini la classe "object"
CBotClass* pClassObject = new CBotClass( "object", NULL ) ;
pClassObject->AddItem( "xx", CBotTypFloat );
pClassObject->AddItem( "position", CBotTypResult( CBotTypIntrinsic, "point" ) );