Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 27, 2015, 4:42:14 PM (8 years ago)
Author:
gania
Message:

CommonController now has static methods only. Replace with a namespace?

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/campaignHS15/src/orxonox/controllers/CommonController.cc

    r10875 r10877  
    2727 */
    2828#include "controllers/CommonController.h"
    29 #include "core/XMLPort.h"
    3029
    3130//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
    3236#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"
    4137
    4238namespace orxonox
     
    4440
    4541    RegisterClass( CommonController );
    46     const float SPEED = 0.9f/0.02f;
    47     const float ROTATEFACTOR = 1.0f/0.02f;
    4842
    49  
    5043    CommonController::CommonController( Context* context ): Controller( context )
    5144    {
    52         this->bFirstTick_ = true;
    53        
    5445        RegisterObject( CommonController );
    55 
    5646    }
    5747    CommonController::~CommonController()
     
    5949       
    6050    }
    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" methods
    74     bool CommonController::setWingman ( CommonController* wingman )
    75     { return false; }
    76     bool CommonController::hasWingman()
    77     { return true; }
    7851
    7952    float CommonController::randomInRange( float a, float b )
Note: See TracChangeset for help on using the changeset viewer.