Changeset 9006 for code/branches
- Timestamp:
- Dec 20, 2011, 12:03:21 AM (13 years ago)
- Location:
- code/branches/presentation2011
- Files:
-
- 1 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentation2011/data/levels/asteroidField.oxw
r8981 r9006 3 3 description = "Test of the asteroidField generator." 4 4 screenshot = "asteroidFieldTest.png" 5 tags = " "5 tags = "test, showcase" 6 6 /> 7 7 -
code/branches/presentation2011/src/orxonox/controllers/ArtificialController.cc
r8992 r9006 29 29 #include "ArtificialController.h" 30 30 #include "core/CoreIncludes.h" 31 #include "core/command/ConsoleCommand.h" 31 32 #include "worldentities/pawns/Pawn.h" 32 33 #include "worldentities/pawns/SpaceShip.h" … … 41 42 namespace orxonox 42 43 { 44 SetConsoleCommand("ArtificialController", "setbotlevel", &ArtificialController::setAllBotLevel); 43 45 44 46 ArtificialController::ArtificialController(BaseObject* creator) : FormationController(creator) … … 113 115 } 114 116 115 //****************************************************************************************** NEW116 117 /** 117 118 @brief DoFire is called when a bot should shoot and decides which weapon is used and whether the bot shoots at all. -
code/branches/presentation2011/src/orxonox/controllers/ArtificialController.h
r8992 r9006 33 33 #include "controllers/FormationController.h" 34 34 35 35 36 namespace orxonox 36 37 { … … 44 45 45 46 virtual void changedControllableEntity(); 46 //************************************************************************* NEW 47 47 48 virtual void doFire(); 48 49 void setBotLevel(float level=1.0f); … … 69 70 bool isCloseAtTarget(float distance) const; 70 71 bool isLookingAtTarget(float angle) const; 71 //************************************************************************* NEW 72 72 73 float botlevel_; //<! Makes the level of a bot configurable. 73 74 enum Mode {DEFAULT, ROCKET, DEFENCE, MOVING};//TODO; implement DEFENCE, MOVING modes -
code/branches/presentation2011/src/orxonox/controllers/FormationController.cc
r9005 r9006 86 86 this->bShooting_ = false; 87 87 this->bHasTargetPosition_ = false; 88 88 this->bHasTargetOrientation_=false; 89 89 this->speedCounter_ = 0.2f; 90 90 this->targetPosition_ = Vector3::ZERO;
Note: See TracChangeset
for help on using the changeset viewer.