[Orxonox-commit 3147] r7840 - code/branches/ai/src/orxonox/controllers
jo at orxonox.net
jo at orxonox.net
Mon Jan 31 21:30:14 CET 2011
Author: jo
Date: 2011-01-31 21:30:13 +0100 (Mon, 31 Jan 2011)
New Revision: 7840
Modified:
code/branches/ai/src/orxonox/controllers/AIController.cc
code/branches/ai/src/orxonox/controllers/ArtificialController.cc
Log:
Creating a console command.
Modified: code/branches/ai/src/orxonox/controllers/AIController.cc
===================================================================
--- code/branches/ai/src/orxonox/controllers/AIController.cc 2011-01-31 19:00:08 UTC (rev 7839)
+++ code/branches/ai/src/orxonox/controllers/AIController.cc 2011-01-31 20:30:13 UTC (rev 7840)
@@ -25,7 +25,7 @@
* Dominik Solenicki
*
*/
-
+//TODO: intended behaviour: when a bot has a target_ it shouldn't move away.
#include "AIController.h"
#include "util/Math.h"
Modified: code/branches/ai/src/orxonox/controllers/ArtificialController.cc
===================================================================
--- code/branches/ai/src/orxonox/controllers/ArtificialController.cc 2011-01-31 19:00:08 UTC (rev 7839)
+++ code/branches/ai/src/orxonox/controllers/ArtificialController.cc 2011-01-31 20:30:13 UTC (rev 7840)
@@ -50,7 +50,8 @@
SetConsoleCommand("ArtificialController", "masteraction", &ArtificialController::masteraction);
SetConsoleCommand("ArtificialController", "followme", &ArtificialController::followme);
SetConsoleCommand("ArtificialController", "passivebehaviour", &ArtificialController::passivebehaviour);
- SetConsoleCommand("ArtificialController", "formationsize", &ArtificialController::formationsize);
+ SetConsoleCommand("ArtificialController", "botlevel", &ArtificialController::setBotLevel);
+
static const unsigned int STANDARD_MAX_FORMATION_SIZE = 7;
static const int RADIUS_TO_SEARCH_FOR_MASTERS = 5000;
@@ -85,7 +86,7 @@
this->target_.setCallback(createFunctor(&ArtificialController::targetDied, this));
this->bSetupWorked = false;
this->numberOfWeapons = 0;
- this->botlevel_ = 1.0f;
+ this->botlevel_ = 10.0f;
}
ArtificialController::~ArtificialController()
More information about the Orxonox-commit
mailing list