- Timestamp:
- Nov 27, 2015, 4:42:14 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/campaignHS15/src/orxonox/controllers/CommonController.cc
r10875 r10877 27 27 */ 28 28 #include "controllers/CommonController.h" 29 #include "core/XMLPort.h"30 29 31 30 //stuff for sameTeam function 31 #include "gametypes/TeamDeathmatch.h" 32 #include "gametypes/Gametype.h" 33 #include "controllers/DroneController.h" 34 #include "gametypes/Dynamicmatch.h" 35 32 36 #include "worldentities/pawns/TeamBaseMatchBase.h" 33 #include "gametypes/TeamDeathmatch.h"34 #include "gametypes/Dynamicmatch.h"35 #include "gametypes/Mission.h"36 #include "gametypes/Gametype.h"37 #include "controllers/WaypointPatrolController.h"38 #include "controllers/NewHumanController.h"39 #include "controllers/DroneController.h"40 #include "util/Math.h"41 37 42 38 namespace orxonox … … 44 40 45 41 RegisterClass( CommonController ); 46 const float SPEED = 0.9f/0.02f;47 const float ROTATEFACTOR = 1.0f/0.02f;48 42 49 50 43 CommonController::CommonController( Context* context ): Controller( context ) 51 44 { 52 this->bFirstTick_ = true;53 54 45 RegisterObject( CommonController ); 55 56 46 } 57 47 CommonController::~CommonController() … … 59 49 60 50 } 61 void CommonController::tick(float dt)62 {63 64 SUPER(CommonController, tick, dt);65 }66 67 68 void CommonController::XMLPort( Element& xmlelement, XMLPort::Mode mode )69 {70 SUPER( CommonController, XMLPort, xmlelement, mode );71 }72 73 //"Virtual" methods74 bool CommonController::setWingman ( CommonController* wingman )75 { return false; }76 bool CommonController::hasWingman()77 { return true; }78 51 79 52 float CommonController::randomInRange( float a, float b )
Note: See TracChangeset
for help on using the changeset viewer.