From 84d1f79fdf02e0010e4b2d118458e8cd8ce0dd71 Mon Sep 17 00:00:00 2001 From: Krzysztof H Date: Fri, 9 Mar 2012 17:08:05 +0100 Subject: Added license info using a small program SrcHead. --- src/CBot/TestCBot/TestCBot.cpp | 29 +++++++++++++++++++++-------- 1 file changed, 21 insertions(+), 8 deletions(-) (limited to 'src/CBot/TestCBot/TestCBot.cpp') 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" ) ); -- cgit v1.2.3-1-g7c22