- Timestamp:
- May 28, 2012, 12:00:53 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/orxonox/controllers/ArtificialController.cc
r9016 r9252 24 24 * Co-authors: 25 25 * Dominik Solenicki 26 * 26 * 27 27 */ 28 28 29 29 #include "ArtificialController.h" 30 30 #include "core/CoreIncludes.h" 31 #include "core/XMLPort.h" 31 32 #include "core/command/ConsoleCommand.h" 32 33 #include "worldentities/pawns/Pawn.h" … … 46 47 ArtificialController::ArtificialController(BaseObject* creator) : FormationController(creator) 47 48 { 49 RegisterObject(ArtificialController); 50 48 51 this->bSetupWorked = false; 49 52 this->botlevel_ = 0.5f; … … 64 67 } 65 68 69 void ArtificialController::XMLPort(Element& xmlelement, XMLPort::Mode mode) 70 { 71 SUPER(ArtificialController, XMLPort, xmlelement, mode); 72 73 XMLPortParam(ArtificialController, "accuracy", setAccuracy, getAccuracy, xmlelement, mode).defaultValues(100.0f); 74 XMLPortObject(ArtificialController, WorldEntity, "waypoints", addWaypoint, getWaypoint, xmlelement, mode); 75 } 66 76 67 77 /** … … 276 286 this->updatePointsOfInterest("PickupSpawner", 20.0f); // take pickup en passant if there is a default waypoint 277 287 } 278 288 279 289 }
Note: See TracChangeset
for help on using the changeset viewer.