Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 9, 2010, 9:32:58 PM (14 years ago)
Author:
rgrieder
Message:

Removed excess white space at the end of lines.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/presentation3/src/orxonox/controllers/ArtificialController.cc

    r7107 r7127  
    9191        {
    9292            this->removeFromFormation();
    93            
     93
    9494            for (ObjectList<ArtificialController>::iterator it = ObjectList<ArtificialController>::begin(); it; ++it)
    9595            {
     
    101101                        it->myMaster_ = 0;
    102102                    }
    103                    
     103
    104104                    while (true)
    105105                    {
     
    139139        {
    140140            Controller* controller = 0;
    141            
     141
    142142            if (it->getController())
    143143                controller = it->getController();
    144144            else if (it->getXMLController())
    145145                controller = it->getXMLController();
    146                
     146
    147147            if (!controller)
    148148                continue;
     
    162162
    163163    /**
    164         @brief Get all masters to do a "specific master action" 
     164        @brief Get all masters to do a "specific master action"
    165165        @param action which action to perform (integer, so it can be called with a console command (tmp solution))
    166166    */
     
    170170        {
    171171            Controller* controller = 0;
    172            
     172
    173173            if (it->getController())
    174174                controller = it->getController();
    175175            else if (it->getXMLController())
    176176                controller = it->getXMLController();
    177                
     177
    178178            if (!controller)
    179179                continue;
     
    204204        {
    205205            Controller* controller = 0;
    206            
     206
    207207            if (it->getController())
    208208                controller = it->getController();
    209209            else if (it->getXMLController())
    210210                controller = it->getXMLController();
    211                
     211
    212212            if (!controller)
    213213                continue;
     
    252252        {
    253253            Controller* controller = 0;
    254            
     254
    255255            if (it->getController())
    256256                controller = it->getController();
    257257            else if (it->getXMLController())
    258258                controller = it->getXMLController();
    259                
     259
    260260            if (!controller)
    261261                continue;
     
    280280        {
    281281            Controller* controller = 0;
    282            
     282
    283283            if (it->getController())
    284284                controller = it->getController();
    285285            else if (it->getXMLController())
    286286                controller = it->getXMLController();
    287                
     287
    288288            if (!controller)
    289289                continue;
     
    303303    void ArtificialController::changedControllableEntity()
    304304    {
    305         if (!this->getControllableEntity()) 
     305        if (!this->getControllableEntity())
    306306            this->removeFromFormation();
    307307    }
     
    400400                this->myMaster_->slaves_.erase(it);
    401401        }
    402        
     402
    403403        this->myMaster_ = 0;
    404404        this->state_ = FREE;
     
    423423            //has it an ArtificialController?
    424424            Controller* controller = 0;
    425            
     425
    426426            if (it->getController())
    427427                controller = it->getController();
    428428            else if (it->getXMLController())
    429429                controller = it->getXMLController();
    430                
     430
    431431            if (!controller)
    432432                continue;
     
    476476        @brief Commands the slaves of a master into a formation. Sufficiently fast not to be called within tick. Initiated by a master.
    477477    */
    478     void ArtificialController::commandSlaves() 
     478    void ArtificialController::commandSlaves()
    479479    {
    480480        if(this->state_ != MASTER) return;
     
    489489            this->slaves_.front()->setTargetPosition(dest);
    490490        }
    491         else 
     491        else
    492492        {
    493493            dest += 1.0f*orient*WorldEntity::BACK;
     
    592592    bool ArtificialController::forcedFree()
    593593    {
    594         if(this->freedomCount_ > 0) 
     594        if(this->freedomCount_ > 0)
    595595        {
    596596            this->freedomCount_--;
     
    606606        if(this->state_ != MASTER) return;
    607607
    608         if (specificMasterActionHoldCount_ == 0) 
     608        if (specificMasterActionHoldCount_ == 0)
    609609         {
    610610            this->specificMasterAction_ = NONE;
     
    677677        if (!always)
    678678            this->specificMasterActionHoldCount_ = secondsToFollow;
    679         else 
     679        else
    680680            this->specificMasterActionHoldCount_ = INT_MAX; //for now...
    681681
     
    698698
    699699            currentHumanController = orxonox_cast<NewHumanController*>(it->getController());
    700             if(currentHumanController) 
     700            if(currentHumanController)
    701701            {
    702702                if (!ArtificialController::sameTeam(this->getControllableEntity(), *it, this->getGametype())) continue;
Note: See TracChangeset for help on using the changeset viewer.