Update of /cvsroot/epfl/tggame
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23138
Modified Files:
aicontroller.cc
Log Message:
oups.... ca va mieux sans les messages de Debug...
Index: aicontroller.cc
===================================================================
RCS file: /cvsroot/epfl/tggame/aicontroller.cc,v
retrieving revision 1.23
retrieving revision 1.24
diff -C2 -d -r1.23 -r1.24
*** aicontroller.cc 8 Dec 2004 13:19:40 -0000 1.23
--- aicontroller.cc 8 Dec 2004 14:01:58 -0000 1.24
***************
*** 1,3 ****
! #define AI_DEBUG 4
#include "aicontroller.h"
--- 1,3 ----
! #define AI_DEBUG 0
#include "aicontroller.h"
***************
*** 12,16 ****
bool initialised = false;
int rot=0;
! int iAngle = 5;
int iState=0;
--- 12,16 ----
bool initialised = false;
int rot=0;
! short int iAngle = 5;
int iState=0;
***************
*** 73,77 ****
//iLife -= 5;
! pPawn->SetRotation(Quaternion(Util::Random()*360, Vector3::UNIT_Y));
#if AI_DEBUG >=3
cout << "OUCH" << std::endl;
--- 73,77 ----
//iLife -= 5;
! pPawn->SetRotation(Quaternion(rot=Util::Random()*360, Vector3::UNIT_Y));
#if AI_DEBUG >=3
cout << "OUCH" << std::endl;
***************
*** 140,145 ****
pPawn->SetRotation(Quaternion(rot+=iAngle, Vector3::UNIT_Y));
! #if AI_DEBUG >= 5
! cout << "Changement de direction... " << iAngle << std::endl;
#endif
} else {
--- 140,145 ----
pPawn->SetRotation(Quaternion(rot+=iAngle, Vector3::UNIT_Y));
! #if AI_DEBUG >= 4
! cout << "cd " << iAngle << std::endl;
#endif
} else {
***************
*** 153,157 ****
// sinon, on va augmenter la vitesse (pas de vitesse limite dans le moteur pour le moment
// a priori, donc je limite moi-meme....
! if(fMoveSpeed < 448) {
#if AI_DEBUG >= 5
cout << "augmentation de la vitesse" << std::endl;
--- 153,157 ----
// sinon, on va augmenter la vitesse (pas de vitesse limite dans le moteur pour le moment
// a priori, donc je limite moi-meme....
! if(fMoveSpeed < 446) {
#if AI_DEBUG >= 5
cout << "augmentation de la vitesse" << std::endl;
***************
*** 161,168 ****
}
- #if AI_DEBUG >= 5
- cout << c.EndPoint << " / " << (2*vVelocity+pPawn->GetPosition())<< std::endl;
- #endif
-
// ca, ca sert a rien pour le moment, mais c'est sensé servir plus tard
// (biensur, je retournerai autre chose..)
--- 161,164 ----
|