Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 21, 2009, 1:18:36 PM (15 years ago)
Author:
rgrieder
Message:

Found some non empty new lines.

Location:
code/branches/presentation2/src/orxonox
Files:
32 edited

Legend:

Unmodified
Added
Removed
  • code/branches/presentation2/src/orxonox/MoodManager.cc

    r6370 r6387  
    6464        ModifyConfigValue(mood_, set, mood);
    6565    }
    66    
     66
    6767    //! Gets the current mood
    6868    const std::string& MoodManager::getMood()
  • code/branches/presentation2/src/orxonox/PlayerManager.cc

    r6182 r6387  
    9090        }
    9191    }
    92    
     92
    9393    void PlayerManager::disconnectAllClients()
    9494    {
  • code/branches/presentation2/src/orxonox/Scene.h

    r6372 r6387  
    7878            inline Radar* getRadar()
    7979                { return this->radar_; }
    80            
     80
    8181            inline virtual uint32_t getSceneID() const { return this->getObjectID(); }
    8282
  • code/branches/presentation2/src/orxonox/Test.h

    r6123 r6387  
    7575      void checkS3();
    7676      void checkS4();
    77      
     77
    7878      void printPointer();
    7979
     
    9595      TYPE s3;
    9696      TYPE s4;
    97      
     97
    9898      Test* pointer_;
    9999
  • code/branches/presentation2/src/orxonox/controllers/ArtificialController.cc

    r6164 r6387  
    4646        this->bHasTargetPosition_ = false;
    4747        this->targetPosition_ = Vector3::ZERO;
    48        
     48
    4949        this->target_.setCallback(createFunctor(&ArtificialController::targetDied, this));
    5050    }
     
    143143        this->targetPosition_ = getPredictedPosition(this->getControllableEntity()->getPosition(), hardcoded_projectile_speed, this->target_->getPosition(), this->target_->getVelocity());
    144144        this->bHasTargetPosition_ = (this->targetPosition_ != Vector3::ZERO);
    145        
     145
    146146        Pawn* pawn = dynamic_cast<Pawn*>(this->getControllableEntity());
    147147        if (pawn)
  • code/branches/presentation2/src/orxonox/controllers/ArtificialController.h

    r5929 r6387  
    4242            ArtificialController(BaseObject* creator);
    4343            virtual ~ArtificialController();
    44            
     44
    4545            void abandonTarget(Pawn* target);
    4646
  • code/branches/presentation2/src/orxonox/controllers/Controller.h

    r6356 r6387  
    5151
    5252            virtual inline void hit(Pawn* originator, btManifoldPoint& contactpoint, float damage) {};
    53            
     53
    5454            void setGodMode( bool mode ){ this->bGodMode_ = mode; }
    5555            bool getGodMode(){ return this->bGodMode_; }
  • code/branches/presentation2/src/orxonox/controllers/NewHumanController.cc

    r6377 r6387  
    140140                arrowsOverlay1_->setPosition(Vector2(0.5, 0.5));
    141141                arrowsOverlay1_->hide();
    142    
     142
    143143                arrowsOverlay2_ = new OrxonoxOverlay(this);
    144144                arrowsOverlay2_->setBackgroundMaterial("Orxonox/DirectionArrows2");
     
    147147                arrowsOverlay2_->setPosition(Vector2(0.5, 0.5));
    148148                arrowsOverlay2_->hide();
    149    
     149
    150150                arrowsOverlay3_ = new OrxonoxOverlay(this);
    151151                arrowsOverlay3_->setBackgroundMaterial("Orxonox/DirectionArrows3");
     
    154154                arrowsOverlay3_->setPosition(Vector2(0.5, 0.5));
    155155                arrowsOverlay3_->hide();
    156    
     156
    157157                arrowsOverlay4_ = new OrxonoxOverlay(this);
    158158                arrowsOverlay4_->setBackgroundMaterial("Orxonox/DirectionArrows4");
     
    502502        {
    503503            hideArrows();
    504    
     504
    505505            float distance = sqrt(pow(static_cast<float>(this->currentYaw_)/2*-1,2) + pow(static_cast<float>(this->currentPitch_)/2*-1,2));
    506    
     506
    507507            if (distance > 0.04 && distance <= 0.59 * arrowsSize_ / 2.0 )
    508508            {
  • code/branches/presentation2/src/orxonox/gamestates/GSGraphics.cc

    r6150 r6387  
    6464    void GSGraphics::activate()
    6565    {
    66        
     66
    6767    }
    6868
  • code/branches/presentation2/src/orxonox/gamestates/GSLevel.cc

    r6150 r6387  
    9090            // level is loaded: we can start capturing the input
    9191            InputManager::getInstance().enterState("game");
    92            
     92
    9393            // connect the HumanPlayer to the game
    9494            PlayerManager::getInstance().clientConnected(0);
     
    105105            InputManager::getInstance().leaveState("game");
    106106        }
    107        
     107
    108108        // disconnect all HumanPlayers
    109109        PlayerManager::getInstance().disconnectAllClients();
     
    135135        for (ObjectList<BaseObject>::iterator it = ObjectList<BaseObject>::begin(); it != ObjectList<BaseObject>::end(); ++it)
    136136            this->staticObjects_.insert(*it);
    137        
     137
    138138        // call the loader
    139139        COUT(0) << "Loading level..." << std::endl;
  • code/branches/presentation2/src/orxonox/gamestates/GSMainMenu.cc

    r6378 r6387  
    9696        CommandExecutor::addConsoleCommandShortcut(createConsoleCommand(createFunctor(&GSMainMenu::startDedicated), "startDedicated"));
    9797        CommandExecutor::addConsoleCommandShortcut(createConsoleCommand(createFunctor(&GSMainMenu::startMainMenu), "startMainMenu"));
    98        
     98
    9999        // create command to change sound path
    100100        CommandExecutor::addConsoleCommandShortcut(createConsoleCommand(createFunctor(&GSMainMenu::setMainMenuSoundPath, this), "setMMSoundPath"));
  • code/branches/presentation2/src/orxonox/gamestates/GSRoot.cc

    r6378 r6387  
    5555        NetworkFunctionBase::destroyAllNetworkFunctions();
    5656    }
    57    
     57
    5858    void GSRoot::printObjects()
    5959    {
  • code/branches/presentation2/src/orxonox/gametypes/Gametype.cc

    r5929 r6387  
    5151    {
    5252        RegisterObject(Gametype);
    53        
     53
    5454        this->gtinfo_ = new GametypeInfo(creator);
    5555
     
    7979        else
    8080            this->scoreboard_ = 0;
    81        
     81
    8282        /* HACK HACK HACK */
    8383        this->hackAddBots_ = createConsoleCommand( createFunctor(&Gametype::addBots, this), "hackAddBots");
     
    8787        /* HACK HACK HACK */
    8888    }
    89    
     89
    9090    Gametype::~Gametype()
    9191    {
  • code/branches/presentation2/src/orxonox/gametypes/Gametype.h

    r5929 r6387  
    184184            // Config Values
    185185            std::string scoreboardTemplate_;
    186            
     186
    187187            /* HACK HACK HACK */
    188188            ConsoleCommand* hackAddBots_;
  • code/branches/presentation2/src/orxonox/infos/PlayerInfo.cc

    r6192 r6387  
    171171        this->changedControllableEntity();
    172172    }
    173    
     173
    174174    void PlayerInfo::startTemporaryControl(ControllableEntity* entity)
    175175    {
    176176        if (!entity)
    177177            return;
    178        
     178
    179179//         assert( this->temporaryControllableEntity_==0 );
    180180
     
    195195        if ( this->oldControllableEntity_ )
    196196            this->stopTemporaryControl();
    197        
     197
    198198        ControllableEntity* entity = this->controllableEntity_;
    199199
     
    213213        this->changedControllableEntity();
    214214    }
    215    
     215
    216216    void PlayerInfo::stopTemporaryControl()
    217217    {
     
    231231        if ( GameMode::isMaster() )
    232232            entity->removePlayer();
    233        
    234         this->changedControllableEntity();
    235     }
    236    
     233
     234        this->changedControllableEntity();
     235    }
     236
    237237    void PlayerInfo::networkcallback_changedcontrollableentityID()
    238238    {
  • code/branches/presentation2/src/orxonox/interfaces/Rewardable.h

    r5781 r6387  
    4343    @brief
    4444        Rewardable is an Interface, that can be implemented by any object to enable it to be given as reward to a player through QuestEffects. (With the AddReward effect.)
    45        
     45
    4646        It just needs to inherit form Rewardable, and implement the reward() method.
    4747    @author
  • code/branches/presentation2/src/orxonox/items/MultiStateEngine.h

    r6329 r6387  
    6464            void addEffectContainer(EffectContainer* effect);
    6565            EffectContainer* getEffectContainer(unsigned int index) const;
    66            
     66
    6767            void setDefEngSndNormal(const std::string& engineSound);
    6868            const std::string& getDefEngSndNormal();
  • code/branches/presentation2/src/orxonox/overlays/OrxonoxOverlay.cc

    r6310 r6387  
    171171    {
    172172        SUPER( OrxonoxOverlay, changedVisibility );
    173        
     173
    174174        if (!this->overlay_)
    175175            return;
  • code/branches/presentation2/src/orxonox/overlays/OverlayGroup.cc

    r6054 r6387  
    144144    {
    145145        SUPER( OverlayGroup, changedVisibility );
    146        
     146
    147147        for (std::set< SmartPtr<OrxonoxOverlay> >::iterator it = hudElements_.begin(); it != hudElements_.end(); ++it)
    148148            (*it)->changedVisibility(); //inform all Child Overlays that our visibility has changed
  • code/branches/presentation2/src/orxonox/pickup/ModifierPickup.h

    r5929 r6387  
    129129
    130130        void timerCallback(Pawn* pawn);     //!< Method called when the timer runs out.
    131        
     131
    132132    private:
    133133        float getAdditiveModifier(ModifierType::Value type) const;               //!< Get the additive modifier for a given ModifierType.
  • code/branches/presentation2/src/orxonox/pickup/UsableItem.cc

    r5781 r6387  
    2626 *
    2727 */
    28        
     28
    2929/**
    3030    @file
  • code/branches/presentation2/src/orxonox/sound/AmbientSound.cc

    r6382 r6387  
    6161        }
    6262    }
    63    
     63
    6464    void AmbientSound::registerVariables()
    6565    {
     
    101101            SoundManager::getInstance().pauseAmbientSound(this);
    102102    }
    103    
     103
    104104    float AmbientSound::getRealVolume()
    105105    {
  • code/branches/presentation2/src/orxonox/sound/BaseSound.cc

    r6383 r6387  
    150150        this->updateVolume();
    151151    }
    152    
     152
    153153    void BaseSound::updateVolume()
    154154    {
     
    252252        }
    253253    }
    254    
     254
    255255    void BaseSound::stateChanged()
    256256    {
  • code/branches/presentation2/src/orxonox/sound/SoundManager.cc

    r6383 r6387  
    134134        else
    135135            COUT(2) << "Sound Warning: MIME Type retrieval failed: " << alutGetErrorString(alutGetError()) << std::endl;
    136        
     136
    137137        this->mute_[SoundType::All]     = 1.0f;
    138138        this->mute_[SoundType::Music]   = 1.0f;
     
    431431    void SoundManager::processCrossFading(float dt)
    432432    {
    433        
     433
    434434        // Hacky solution to the fade delay while loading a level.
    435435        if(dt > 0.2)
     
    437437            return;
    438438        }
    439        
     439
    440440        // FADE IN
    441441        for (std::list<SmartPtr<AmbientSound> >::iterator it= this->fadeInList_.begin(); it != this->fadeInList_.end(); )
  • code/branches/presentation2/src/orxonox/sound/SoundManager.h

    r6383 r6387  
    7575        void preUpdate(const Clock& time);
    7676        void setConfigValues();
    77        
     77
    7878        // tolua_begin
    7979        static SoundManager& getInstance() { return Singleton<SoundManager>::getInstance(); }
  • code/branches/presentation2/src/orxonox/sound/WorldSound.cc

    r6382 r6387  
    5151        this->registerVariables();
    5252    }
    53    
     53
    5454    void WorldSound::registerVariables()
    5555    {
  • code/branches/presentation2/src/orxonox/weaponsystem/WeaponMode.cc

    r6381 r6387  
    6767
    6868        this->damage_ = 0;
    69        
     69
    7070        this->muzzleOffset_ = Vector3::ZERO;
    7171        this->muzzlePosition_ = Vector3::ZERO;
     
    141141                this->defSndWpnFire_->play();
    142142            }
    143            
     143
    144144            this->fire();
    145145
  • code/branches/presentation2/src/orxonox/worldentities/ControllableEntity.cc

    r6325 r6387  
    238238            this->cameraPositionRootNode_->roll(Radian(value.y * this->mouseLookSpeed_), Ogre::Node::TS_LOCAL);
    239239    }
    240    
     240
    241241    void ControllableEntity::fire(unsigned int firemode)
    242242    {
     
    250250        }
    251251    }
    252    
     252
    253253    void ControllableEntity::setTarget( WorldEntity* target )
    254254    {
     
    266266        }
    267267    }
    268    
     268
    269269    void ControllableEntity::setTargetInternal( uint32_t targetID )
    270270    {
  • code/branches/presentation2/src/orxonox/worldentities/ControllableEntity.h

    r6325 r6387  
    145145            inline void setController(Controller* val)
    146146                { this->controller_ = val; }
    147            
     147
    148148            virtual void setTarget( WorldEntity* target );
    149149            virtual WorldEntity* getTarget()
  • code/branches/presentation2/src/orxonox/worldentities/StaticEntity.cc

    r5781 r6387  
    4242    {
    4343        RegisterObject(StaticEntity);
    44        
     44
    4545        this->setPriority(Priority::VeryLow);
    4646
  • code/branches/presentation2/src/orxonox/worldentities/pawns/Pawn.cc

    r6356 r6387  
    6868
    6969        this->spawnparticleduration_ = 3.0f;
    70        
     70
    7171        this->aimPosition_ = Vector3::ZERO;
    7272
  • code/branches/presentation2/src/orxonox/worldentities/pawns/Pawn.h

    r6295 r6387  
    116116
    117117            virtual void startLocalHumanControl();
    118            
     118
    119119            void setAimPosition( Vector3 position )
    120120                { this->aimPosition_ = position; }
     
    153153            inline void setWeaponSystem(WeaponSystem* weaponsystem)
    154154                { this->weaponSystem_ = weaponsystem; }
    155            
     155
    156156            Vector3 aimPosition_;
    157157    };
Note: See TracChangeset for help on using the changeset viewer.