Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 8, 2015, 1:02:25 PM (10 years ago)
Author:
gania
Message:

separated MasterController from my hierarchy

File:
1 edited

Legend:

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

    r10955 r10958  
    3535
    3636    //Leaders share the fact that they have Wingmans
    37     MasterController::MasterController(Context* context) : FightingController(context)
     37    MasterController::MasterController(Context* context) : Controller(context)
    3838    {
    3939        RegisterObject(MasterController);
     
    120120                }
    121121                //orxout (internal_error) << "Executing action of Controller # " << this->indexOfCurrentController_ << endl;
    122                 this->controllers_.at(this->indexOfCurrentController_)->action();
     122                this->controllers_.at(this->indexOfCurrentController_)->action();   
     123                //bCopyOrientation makes ship oscillate like crazy if set to true all the time.s
     124                this->controllers_.at(this->indexOfCurrentController_)->bCopyOrientation_ = this->ticks_ % 3 == 0;
    123125
    124126                ++this->numberOfTicksPassedSinceLastActionCall_;
Note: See TracChangeset for help on using the changeset viewer.