Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 6, 2015, 10:54:34 PM (9 years ago)
Author:
landauf
Message:

replace '0' by 'nullptr'

Location:
code/branches/cpp11_v2/src/orxonox
Files:
71 edited

Legend:

Unmodified
Added
Removed
  • code/branches/cpp11_v2/src/orxonox/CameraManager.cc

    r10765 r10768  
    6060            return this->cameraList_.front();
    6161        else
    62             return 0;
     62            return nullptr;
    6363    }
    6464
  • code/branches/cpp11_v2/src/orxonox/Level.cc

    r10624 r10768  
    5454        this->registerVariables();
    5555        this->xmlfilename_ = this->getFilename();
    56         this->xmlfile_ = 0;
     56        this->xmlfile_ = nullptr;
    5757    }
    5858
     
    178178            ++i;
    179179        }
    180         return 0;
     180        return nullptr;
    181181    }
    182182
     
    195195            return this->lodInformation_.find(meshName)->second;
    196196
    197         return 0;
     197        return nullptr;
    198198    }
    199199
     
    207207    {
    208208        orxout(internal_info) << "player left level (id: " << player->getClientID() << ", name: " << player->getName() << ')' << endl;
    209         player->switchGametype(0);
     209        player->switchGametype(nullptr);
    210210    }
    211211}
  • code/branches/cpp11_v2/src/orxonox/LevelManager.cc

    r10765 r10768  
    161161            return this->levels_.front();
    162162        else
    163             return 0;
     163            return nullptr;
    164164    }
    165165
  • code/branches/cpp11_v2/src/orxonox/PlayerManager.cc

    r10624 r10768  
    6262
    6363            // create new HumanPlayer instance
    64             HumanPlayer* player = new HumanPlayer(0);
     64            HumanPlayer* player = new HumanPlayer(nullptr);
    6565            player->setClientID(clientID);
    6666
     
    115115                    return (*it);
    116116        }
    117         return 0;
     117        return nullptr;
    118118    }
    119119}
  • code/branches/cpp11_v2/src/orxonox/Radar.cc

    r10624 r10768  
    4949
    5050    Radar::Radar()
    51         : itFocus_(0)
    52         , focus_(0)
     51        : itFocus_(nullptr)
     52        , focus_(nullptr)
    5353        , objectTypeCounter_(0)
    5454    {
     
    106106            return *(this->itFocus_);
    107107        else
    108             return 0;
     108            return nullptr;
    109109    }
    110110
     
    126126        {
    127127            // focus object was deleted, release focus
    128             this->focus_ = 0;
    129             this->itFocus_ = 0;
     128            this->focus_ = nullptr;
     129            this->itFocus_ = nullptr;
    130130        }
    131131
     
    141141        {
    142142            // list is empty
    143             this->itFocus_ = 0;
    144             this->focus_ = 0;
     143            this->itFocus_ = nullptr;
     144            this->focus_ = nullptr;
    145145        }
    146146
     
    156156            float nextDistance = FLT_MAX;
    157157            float minimumDistance = FLT_MAX;
    158             ObjectList<RadarViewable>::iterator itFallback = 0;
     158            ObjectList<RadarViewable>::iterator itFallback = nullptr;
    159159
    160160            for (ObjectList<RadarViewable>::iterator it = ObjectList<RadarViewable>::begin(); it; ++it)
     
    191191    void Radar::releaseFocus()
    192192    {
    193         this->itFocus_ = 0;
    194         this->focus_ = 0;
     193        this->itFocus_ = nullptr;
     194        this->focus_ = nullptr;
    195195    }
    196196
  • code/branches/cpp11_v2/src/orxonox/Scene.cc

    r10765 r10768  
    8484            this->rootSceneNode_ = this->sceneManager_->getRootSceneNode();
    8585
    86             this->radar_ = 0;
     86            this->radar_ = nullptr;
    8787        }
    8888
     
    9292        this->positiveWorldRange_ = Vector3::UNIT_SCALE *  defaultMaxWorldSize;
    9393        this->gravity_ = Vector3::ZERO;
    94         this->physicalWorld_   = 0;
    95         this->solver_          = 0;
    96         this->dispatcher_      = 0;
    97         this->collisionConfig_ = 0;
    98         this->broadphase_      = 0;
     94        this->physicalWorld_   = nullptr;
     95        this->solver_          = nullptr;
     96        this->dispatcher_      = nullptr;
     97        this->collisionConfig_ = nullptr;
     98        this->broadphase_      = nullptr;
    9999
    100100        this->registerVariables();
     
    234234            delete this->collisionConfig_;
    235235            delete this->broadphase_;
    236             this->physicalWorld_   = 0;
    237             this->solver_          = 0;
    238             this->dispatcher_      = 0;
    239             this->collisionConfig_ = 0;
    240             this->broadphase_      = 0;
     236            this->physicalWorld_   = nullptr;
     237            this->solver_          = nullptr;
     238            this->dispatcher_      = nullptr;
     239            this->collisionConfig_ = nullptr;
     240            this->broadphase_      = nullptr;
    241241        }
    242242    }
     
    327327            ++i;
    328328        }
    329         return 0;
     329        return nullptr;
    330330    }
    331331
  • code/branches/cpp11_v2/src/orxonox/Scene.h

    r10624 r10768  
    111111        public:
    112112            inline bool hasPhysics() const
    113                 { return this->physicalWorld_ != 0; }
     113                { return this->physicalWorld_ != nullptr; }
    114114            void setPhysicalWorld(bool wantsPhysics);
    115115
  • code/branches/cpp11_v2/src/orxonox/Test.cc

    r10624 r10768  
    5454    registerMemberNetworkFunction( Test, printBlaBla );
    5555
    56     Test* Test::instance_ = 0;
     56    Test* Test::instance_ = nullptr;
    5757
    5858    Test::Test(Context* context) : BaseObject(context), Synchronisable(context)
    5959    {
    60         assert(instance_==0);
     60        assert(instance_==nullptr);
    6161        instance_=this;
    6262        RegisterObject ( Test );
     
    6464        registerVariables();
    6565        setSyncMode(0x3);
    66         this->pointer_ = 0;
     66        this->pointer_ = nullptr;
    6767    }
    6868
    6969    Test::~Test()
    7070    {
    71         instance_=0;
     71        instance_=nullptr;
    7272    }
    7373
  • code/branches/cpp11_v2/src/orxonox/collisionshapes/CollisionShape.cc

    r10624 r10768  
    5757        RegisterObject(CollisionShape);
    5858
    59         this->parent_ = 0;
     59        this->parent_ = nullptr;
    6060        this->parentID_ = OBJECTID_UNKNOWN;
    61         this->collisionShape_ = 0;
     61        this->collisionShape_ = nullptr;
    6262        this->position_ = Vector3::ZERO;
    6363        this->orientation_ = Quaternion::IDENTITY;
     
    154154    void CollisionShape::notifyDetached()
    155155    {
    156         this->parent_ = 0;
     156        this->parent_ = nullptr;
    157157        this->parentID_ = OBJECTID_UNKNOWN;
    158158    }
  • code/branches/cpp11_v2/src/orxonox/collisionshapes/CompoundCollisionShape.cc

    r10765 r10768  
    197197    void CompoundCollisionShape::updatePublicShape()
    198198    {
    199         btCollisionShape* primitive = 0; // The primitive shape, if there is one.
     199        btCollisionShape* primitive = nullptr; // The primitive shape, if there is one.
    200200        bool bPrimitive = true; // Whether the CompoundCollisionShape has just one non-empty CollisionShape. And that shape also has no transformation.
    201201        bool bEmpty = true; // Whether the CompoundCollisionShape is empty.
     
    221221        {
    222222            // If there was none all along, nothing needs to be changed.
    223             if (this->collisionShape_ == 0)
     223            if (this->collisionShape_ == nullptr)
    224224                return;
    225             this->collisionShape_ = 0;
     225            this->collisionShape_ = nullptr;
    226226        }
    227227        // If the CompoundCollisionShape is just a primitive.
     
    253253            ++i;
    254254        }
    255         return 0;
     255        return nullptr;
    256256    }
    257257
  • code/branches/cpp11_v2/src/orxonox/collisionshapes/CompoundCollisionShape.h

    r9667 r10768  
    7575            void updatePublicShape();
    7676            inline virtual btCollisionShape* createNewShape() const
    77                 { assert(false); return 0; }
     77                { assert(false); return nullptr; }
    7878
    7979            btCompoundShape* compoundShape_;
  • code/branches/cpp11_v2/src/orxonox/collisionshapes/WorldEntityCollisionShape.cc

    r10765 r10768  
    5454        CollisionShape::updateParent();
    5555
    56         assert(this->worldEntityOwner_ != 0);
     56        assert(this->worldEntityOwner_ != nullptr);
    5757        this->worldEntityOwner_->notifyCollisionShapeChanged();
    5858    }
  • code/branches/cpp11_v2/src/orxonox/controllers/ArtificialController.cc

    r10765 r10768  
    177177            {
    178178                this->weaponModes_.clear(); // reset previous weapon information
    179                 WeaponSlot* wSlot = 0;
     179                WeaponSlot* wSlot = nullptr;
    180180                for(int l=0; (wSlot = pawn->getWeaponSlot(l)) ; l++)
    181181                {
    182                     WeaponMode* wMode = 0;
     182                    WeaponMode* wMode = nullptr;
    183183                    for(int i=0; (wMode = wSlot->getWeapon()->getWeaponmode(i)) ; i++)
    184184                    {
     
    249249            return this->waypoints_[index];
    250250        else
    251             return 0;
     251            return nullptr;
    252252    }
    253253
  • code/branches/cpp11_v2/src/orxonox/controllers/Controller.cc

    r9797 r10768  
    4040        RegisterObject(Controller);
    4141
    42         this->player_ = 0;
    43         this->controllableEntity_ = 0;
     42        this->player_ = nullptr;
     43        this->controllableEntity_ = nullptr;
    4444        this->bGodMode_ = false;
    4545        this->team_=-1;
  • code/branches/cpp11_v2/src/orxonox/controllers/DroneController.cc

    r9667 r10768  
    4949        RegisterObject(DroneController);
    5050
    51         this->owner_ = 0;
    52         this->drone_ = 0;
     51        this->owner_ = nullptr;
     52        this->drone_ = nullptr;
    5353        this->isShooting_ = false;
    5454        this->setAccuracy(10);
  • code/branches/cpp11_v2/src/orxonox/controllers/FormationController.cc

    r10765 r10768  
    7272        RegisterObject(FormationController);
    7373
    74         this->target_ = 0;
     74        this->target_ = nullptr;
    7575        this->formationFlight_ = false;
    7676        this->passive_ = false;
    7777        this->maxFormationSize_ = STANDARD_MAX_FORMATION_SIZE;
    78         this->myMaster_ = 0;
     78        this->myMaster_ = nullptr;
    7979        this->freedomCount_ = 0;
    8080
     
    104104                    {
    105105                        orxout(internal_error) << this << " is still master in " << (*it) << endl;
    106                         it->myMaster_ = 0;
     106                        it->myMaster_ = nullptr;
    107107                    }
    108108
     
    142142        for (ObjectList<Pawn>::iterator it = ObjectList<Pawn>::begin(); it; ++it)
    143143        {
    144             Controller* controller = 0;
     144            Controller* controller = nullptr;
    145145
    146146            if (it->getController())
     
    173173        for (ObjectList<Pawn>::iterator it = ObjectList<Pawn>::begin(); it; ++it)
    174174        {
    175             Controller* controller = 0;
     175            Controller* controller = nullptr;
    176176
    177177            if (it->getController())
     
    203203        for (ObjectList<Pawn>::iterator it = ObjectList<Pawn>::begin(); it; ++it)
    204204        {
    205             Controller* controller = 0;
     205            Controller* controller = nullptr;
    206206
    207207            if (it->getController())
     
    230230        for (ObjectList<Pawn>::iterator it = ObjectList<Pawn>::begin(); it; ++it)
    231231        {
    232             Controller* controller = 0;
     232            Controller* controller = nullptr;
    233233
    234234            if (it->getController())
     
    383383        }
    384384
    385         this->myMaster_ = 0;
     385        this->myMaster_ = nullptr;
    386386        this->state_ = FREE;
    387387    }
     
    411411
    412412            //has it an FormationController?
    413             Controller* controller = 0;
     413            Controller* controller = nullptr;
    414414
    415415            if (it->getController())
     
    458458        {
    459459            this->state_ = MASTER;
    460             this->myMaster_ = 0;
     460            this->myMaster_ = nullptr;
    461461        }
    462462    }
     
    518518            newMaster->state_ = MASTER;
    519519            newMaster->slaves_ = this->slaves_;
    520             newMaster->myMaster_ = 0;
     520            newMaster->myMaster_ = nullptr;
    521521
    522522            for(std::vector<FormationController*>::iterator it = newMaster->slaves_.begin(); it != newMaster->slaves_.end(); it++)
     
    547547                newMaster->state_ = MASTER;
    548548                newMaster->slaves_ = this->slaves_;
    549                 newMaster->myMaster_ = 0;
     549                newMaster->myMaster_ = nullptr;
    550550
    551551                for(std::vector<FormationController*>::iterator it = newMaster->slaves_.begin(); it != newMaster->slaves_.end(); it++)
     
    572572        {
    573573            (*it)->state_ = FREE;
    574             (*it)->myMaster_ = 0;
     574            (*it)->myMaster_ = nullptr;
    575575        }
    576576        this->slaves_.clear();
     
    629629
    630630        //search new Master, then take lead
    631         if (this->state_==FREE && this->myMaster_==0)
     631        if (this->state_==FREE && this->myMaster_==nullptr)
    632632        {
    633633          searchNewMaster();
     
    654654                 (*it)->myMaster_=this;
    655655            }
    656             this->myMaster_=0;
     656            this->myMaster_=nullptr;
    657657            this->state_=MASTER;
    658658        }
     
    779779        for (ObjectList<Pawn>::iterator it = ObjectList<Pawn>::begin(); it; ++it)
    780780        {
    781             Controller* controller = 0;
     781            Controller* controller = nullptr;
    782782
    783783            if (it->getController())
     
    943943    void FormationController::forgetTarget()
    944944    {
    945         this->target_ = 0;
     945        this->target_ = nullptr;
    946946        this->bShooting_ = false;
    947947    }
     
    963963        int team2 = entity2->getTeam();
    964964
    965         Controller* controller = 0;
     965        Controller* controller = nullptr;
    966966        if (entity1->getController())
    967967            controller = entity1->getController();
     
    996996        }
    997997
    998         TeamBaseMatchBase* base = 0;
     998        TeamBaseMatchBase* base = nullptr;
    999999        base = orxonox_cast<TeamBaseMatchBase*>(entity1);
    10001000        if (base)
     
    10301030        }
    10311031
    1032         DroneController* droneController = 0;
     1032        DroneController* droneController = nullptr;
    10331033        droneController = orxonox_cast<DroneController*>(entity1->getController());
    10341034        if (droneController && static_cast<ControllableEntity*>(droneController->getOwner()) == entity2)
  • code/branches/cpp11_v2/src/orxonox/controllers/HumanController.cc

    r10765 r10768  
    6565    RegisterUnloadableClass(HumanController);
    6666
    67     HumanController* HumanController::localController_s = 0;
     67    HumanController* HumanController::localController_s = nullptr;
    6868
    6969    HumanController::HumanController(Context* context) : FormationController(context)
     
    8181            HumanController::localController_s->removeFromFormation();
    8282        }
    83         HumanController::localController_s = 0;
     83        HumanController::localController_s = nullptr;
    8484    }
    8585
  • code/branches/cpp11_v2/src/orxonox/controllers/NewHumanController.cc

    r10765 r10768  
    5858    RegisterUnloadableClass(NewHumanController);
    5959
    60     NewHumanController* NewHumanController::localController_s = 0;
     60    NewHumanController* NewHumanController::localController_s = nullptr;
    6161
    6262    NewHumanController::NewHumanController(Context* context)
     
    445445            pawn->setAimPosition( mouseRay.getOrigin() + mouseRay.getDirection() * 3000 );
    446446
    447         if( this->getControllableEntity() && this->getControllableEntity()->getTarget() != 0 )
    448             this->getControllableEntity()->setTarget( 0 );
     447        if( this->getControllableEntity() && this->getControllableEntity()->getTarget() != nullptr )
     448            this->getControllableEntity()->setTarget( nullptr );
    449449
    450450        //return this->controllableEntity_->getWorldPosition() + (this->controllableEntity_->getWorldOrientation() * Vector3::NEGATIVE_UNIT_Z * 2000);
  • code/branches/cpp11_v2/src/orxonox/controllers/WaypointPatrolController.cc

    r9716 r10768  
    101101
    102102        if (shortestsqdistance > (this->alertnessradius_ * this->alertnessradius_))
    103             this->target_ = 0;
     103            this->target_ = nullptr;
    104104    }
    105105}
  • code/branches/cpp11_v2/src/orxonox/gamestates/GSLevel.cc

    r10765 r10768  
    6565    GSLevel::GSLevel(const GameStateInfo& info)
    6666        : GameState(info)
    67         , gameInputState_(0)
    68         , guiMouseOnlyInputState_(0)
    69         , guiKeysOnlyInputState_(0)
    70         , startFile_(0)
     67        , gameInputState_(nullptr)
     68        , guiMouseOnlyInputState_(nullptr)
     69        , guiKeysOnlyInputState_(nullptr)
     70        , startFile_(nullptr)
    7171        , bShowIngameGUI_(false)
    7272    {
     
    143143#endif
    144144
    145             gameInputState_->setHandler(0);
    146             guiMouseOnlyInputState_->setHandler(0);
    147             guiKeysOnlyInputState_->setHandler(0);
     145            gameInputState_->setHandler(nullptr);
     146            guiMouseOnlyInputState_->setHandler(nullptr);
     147            guiKeysOnlyInputState_->setHandler(nullptr);
    148148            InputManager::getInstance().destroyState("game");
    149149            InputManager::getInstance().destroyState("guiKeysOnly");
  • code/branches/cpp11_v2/src/orxonox/gamestates/GSMainMenu.cc

    r10765 r10768  
    132132        InputManager::getInstance().leaveState("MainMenuHackery");
    133133
    134         GraphicsManager::getInstance().setCamera(0);
     134        GraphicsManager::getInstance().setCamera(nullptr);
    135135        GUIManager::getInstance().setBackgroundImage("");
    136136        GUIManager::hideGUI("MainMenu");
     
    140140        ModifyConsoleCommand(__CC_startClient_name    ).deactivate();
    141141        ModifyConsoleCommand(__CC_startDedicated_name ).deactivate();
    142         ModifyConsoleCommand(__CC_setMainMenuSoundPath_name).setObject(0);
     142        ModifyConsoleCommand(__CC_setMainMenuSoundPath_name).setObject(nullptr);
    143143    }
    144144
  • code/branches/cpp11_v2/src/orxonox/gamestates/GSRoot.cc

    r10624 r10768  
    9898    void GSRoot::deactivate()
    9999    {
    100         ModifyConsoleCommand(__CC_setTimeFactor_name).setObject(0);
    101         ModifyConsoleCommand(__CC_getTimeFactor_name).setObject(0);
    102         ModifyConsoleCommand(__CC_setPause_name).setObject(0);
    103         ModifyConsoleCommand(__CC_pause_name).setObject(0);
     100        ModifyConsoleCommand(__CC_setTimeFactor_name).setObject(nullptr);
     101        ModifyConsoleCommand(__CC_getTimeFactor_name).setObject(nullptr);
     102        ModifyConsoleCommand(__CC_setPause_name).setObject(nullptr);
     103        ModifyConsoleCommand(__CC_pause_name).setObject(nullptr);
    104104    }
    105105
  • code/branches/cpp11_v2/src/orxonox/gamestates/GSServer.cc

    r10624 r10768  
    4444    GSServer::GSServer(const GameStateInfo& info)
    4545        : GameState(info)
    46         , server_(0)
     46        , server_(nullptr)
    4747    {
    4848    }
  • code/branches/cpp11_v2/src/orxonox/gametypes/Asteroids.h

    r9667 r10768  
    5050
    5151        protected:
    52             virtual void pawnKilled(Pawn* victim, Pawn* killer = 0);
     52            virtual void pawnKilled(Pawn* victim, Pawn* killer = nullptr);
    5353
    5454        private:
  • code/branches/cpp11_v2/src/orxonox/gametypes/Deathmatch.h

    r9667 r10768  
    4747            virtual bool playerChangedName(PlayerInfo* player);
    4848
    49             virtual void pawnKilled(Pawn* victim, Pawn* killer = 0);
     49            virtual void pawnKilled(Pawn* victim, Pawn* killer = nullptr);
    5050            virtual void playerScored(PlayerInfo* player, int score = 1);
    5151    };
  • code/branches/cpp11_v2/src/orxonox/gametypes/Dynamicmatch.cc

    r10624 r10768  
    685685        }
    686686
    687         return 0;
     687        return nullptr;
    688688    }
    689689
  • code/branches/cpp11_v2/src/orxonox/gametypes/Dynamicmatch.h

    r10624 r10768  
    6464            bool tutorial; //goal: new players receive messages how the new gametype works - later it can be switched off.
    6565
    66             virtual bool allowPawnDamage(Pawn* victim, Pawn* originator = 0); //ok - score function and management of parties
    67             virtual bool allowPawnDeath(Pawn* victim, Pawn* originator = 0); //ok - simple
     66            virtual bool allowPawnDamage(Pawn* victim, Pawn* originator = nullptr); //ok - score function and management of parties
     67            virtual bool allowPawnDeath(Pawn* victim, Pawn* originator = nullptr); //ok - simple
    6868            virtual void start();
    6969            virtual void end(); //Wie geht das mit der Punkteausgabe aendern? Z.B: Persoenliche Nachricht?
  • code/branches/cpp11_v2/src/orxonox/gametypes/Gametype.cc

    r10765 r10768  
    6666
    6767        this->defaultControllableEntity_ = Class(Spectator);
    68         this->scoreboard_ = 0;
     68        this->scoreboard_ = nullptr;
    6969
    7070        this->bAutoStart_ = false;
     
    361361            return fallbackSpawnPoint;
    362362        }
    363         return 0;
     363        return nullptr;
    364364    }
    365365
  • code/branches/cpp11_v2/src/orxonox/gametypes/Gametype.h

    r10624 r10768  
    9696            virtual void playerScored(PlayerInfo* player, int score = 1);
    9797
    98             virtual bool allowPawnHit(Pawn* victim, Pawn* originator = 0);
    99             virtual bool allowPawnDamage(Pawn* victim, Pawn* originator = 0);
    100             virtual bool allowPawnDeath(Pawn* victim, Pawn* originator = 0);
    101 
    102             virtual void pawnKilled(Pawn* victim, Pawn* killer = 0);
     98            virtual bool allowPawnHit(Pawn* victim, Pawn* originator = nullptr);
     99            virtual bool allowPawnDamage(Pawn* victim, Pawn* originator = nullptr);
     100            virtual bool allowPawnDeath(Pawn* victim, Pawn* originator = nullptr);
     101
     102            virtual void pawnKilled(Pawn* victim, Pawn* killer = nullptr);
    103103            virtual void pawnPreSpawn(Pawn* pawn);
    104104            virtual void pawnPostSpawn(Pawn* pawn);
  • code/branches/cpp11_v2/src/orxonox/gametypes/LastManStanding.h

    r9667 r10768  
    6969            void setConfigValues(); //!< Makes values configurable.
    7070
    71             virtual bool allowPawnDamage(Pawn* victim, Pawn* originator = 0); //!< If a player shoot's an opponent, his punishment countdown will be resetted.
    72             virtual bool allowPawnDeath(Pawn* victim, Pawn* originator = 0); //!< Manages each players lives.
     71            virtual bool allowPawnDamage(Pawn* victim, Pawn* originator = nullptr); //!< If a player shoot's an opponent, his punishment countdown will be resetted.
     72            virtual bool allowPawnDeath(Pawn* victim, Pawn* originator = nullptr); //!< Manages each players lives.
    7373
    7474            virtual void end(); //!< Sends an end message.
  • code/branches/cpp11_v2/src/orxonox/gametypes/LastTeamStanding.h

    r9667 r10768  
    7777            virtual bool playerLeft(PlayerInfo* player); //!< Manages all local variables.
    7878
    79             virtual bool allowPawnDeath(Pawn* victim, Pawn* originator = 0); //!< Manages each player's lost lives.
    80             virtual bool allowPawnDamage(Pawn* victim, Pawn* originator = 0); //!< If a player shoot's an opponent, his punishment countdown will be resetted.
     79            virtual bool allowPawnDeath(Pawn* victim, Pawn* originator = nullptr); //!< Manages each player's lost lives.
     80            virtual bool allowPawnDamage(Pawn* victim, Pawn* originator = nullptr); //!< If a player shoot's an opponent, his punishment countdown will be resetted.
    8181            virtual void playerStartsControllingPawn(PlayerInfo* player, Pawn* pawn); //!< Resets punishment time and respawn delay.
    8282            void tick (float dt); //!< used to end the game
  • code/branches/cpp11_v2/src/orxonox/gametypes/Mission.h

    r9729 r10768  
    5858
    5959        protected:
    60             virtual void pawnKilled(Pawn* victim, Pawn* killer = 0);
     60            virtual void pawnKilled(Pawn* victim, Pawn* killer = nullptr);
    6161            bool missionAccomplished_; //<! indicates if player successfully finsihed the mission;
    6262            int lives_; //<! amount of player's lives <-> nr. of retries
  • code/branches/cpp11_v2/src/orxonox/gametypes/TeamBaseMatch.cc

    r9667 r10768  
    264264                return (*it);
    265265        }
    266         return 0;
     266        return nullptr;
    267267    }
    268268
  • code/branches/cpp11_v2/src/orxonox/gametypes/TeamBaseMatch.h

    r9667 r10768  
    4444            virtual ~TeamBaseMatch() {}
    4545
    46             virtual bool allowPawnDeath(Pawn* victim, Pawn* originator = 0);
     46            virtual bool allowPawnDeath(Pawn* victim, Pawn* originator = nullptr);
    4747            virtual bool allowPawnDamage(Pawn* victim, Pawn* originator);
    4848
  • code/branches/cpp11_v2/src/orxonox/gametypes/TeamDeathmatch.h

    r9941 r10768  
    4848            virtual bool playerChangedName(PlayerInfo* player);
    4949
    50             virtual void pawnKilled(Pawn* victim, Pawn* killer = 0);
     50            virtual void pawnKilled(Pawn* victim, Pawn* killer = nullptr);
    5151            virtual void playerScored(PlayerInfo* player, int score = 1);
    5252       protected:
  • code/branches/cpp11_v2/src/orxonox/gametypes/TeamGametype.cc

    r10765 r10768  
    277277        }
    278278
    279         return 0;
     279        return nullptr;
    280280    }
    281281
     
    340340        ControllableEntity* entity = orxonox_cast<ControllableEntity*>(pawn);
    341341
    342         Controller* controller = 0;
     342        Controller* controller = nullptr;
    343343        if (entity->getController())
    344344            controller = entity->getController();
  • code/branches/cpp11_v2/src/orxonox/gametypes/TeamGametype.h

    r9941 r10768  
    5151            virtual void spawnDeadPlayersIfRequested(); //!< Prevents players to respawn.
    5252
    53             virtual bool allowPawnHit(Pawn* victim, Pawn* originator = 0);
    54             virtual bool allowPawnDamage(Pawn* victim, Pawn* originator = 0);
    55             virtual bool allowPawnDeath(Pawn* victim, Pawn* originator = 0);
     53            virtual bool allowPawnHit(Pawn* victim, Pawn* originator = nullptr);
     54            virtual bool allowPawnDamage(Pawn* victim, Pawn* originator = nullptr);
     55            virtual bool allowPawnDeath(Pawn* victim, Pawn* originator = nullptr);
    5656
    5757            virtual void playerStartsControllingPawn(PlayerInfo* player, Pawn* pawn);
  • code/branches/cpp11_v2/src/orxonox/gametypes/UnderAttack.cc

    r9941 r10768  
    4848        this->gameTime_ = 180;
    4949        this->teams_ = 2;
    50         this->destroyer_ = 0;
     50        this->destroyer_ = nullptr;
    5151        this->destroyer_.setCallback(createFunctor(&UnderAttack::killedDestroyer, this));
    5252        this->gameEnded_ = false;
     
    202202    void UnderAttack::setTransporterHealth()
    203203    {
    204         if (this->destroyer_ != 0)
     204        if (this->destroyer_ != nullptr)
    205205        {
    206206            //Calculation: Each attacker deals about 3500 damage. A human attacker deals 1500 damage additionally.
  • code/branches/cpp11_v2/src/orxonox/gametypes/UnderAttack.h

    r9941 r10768  
    4848                { return this->destroyer_; }
    4949
    50             virtual bool allowPawnHit(Pawn* victim, Pawn* originator = 0);
    51             virtual bool allowPawnDamage(Pawn* victim, Pawn* originator = 0);
    52             virtual bool allowPawnDeath(Pawn* victim, Pawn* originator = 0);
     50            virtual bool allowPawnHit(Pawn* victim, Pawn* originator = nullptr);
     51            virtual bool allowPawnDamage(Pawn* victim, Pawn* originator = nullptr);
     52            virtual bool allowPawnDeath(Pawn* victim, Pawn* originator = nullptr);
    5353            virtual void playerEntered(PlayerInfo* player);
    5454
  • code/branches/cpp11_v2/src/orxonox/graphics/Backlight.cc

    r9667 r10768  
    5151        RegisterObject(Backlight);
    5252
    53         this->ribbonTrail_ = 0;
    54         this->ribbonTrailNode_ = 0;
     53        this->ribbonTrail_ = nullptr;
     54        this->ribbonTrailNode_ = nullptr;
    5555
    5656        this->width_ = 0;
  • code/branches/cpp11_v2/src/orxonox/graphics/Light.cc

    r9667 r10768  
    5353        RegisterObject(Light);
    5454
    55         this->light_ = 0;
     55        this->light_ = nullptr;
    5656        this->diffuse_ = ColourValue::White;
    5757        this->specular_ = ColourValue::White;
  • code/branches/cpp11_v2/src/orxonox/graphics/Model.cc

    r10765 r10768  
    134134            Level* level = this->getLevel();
    135135
    136             assert( level != 0 );
     136            assert( level != nullptr );
    137137
    138138            MeshLodInformation* lodInfo = level->getLodInfo(this->meshSrc_);
  • code/branches/cpp11_v2/src/orxonox/graphics/ParticleEmitter.cc

    r9950 r10768  
    5252            ThrowException(AbortLoading, "Can't create ParticleEmitter, no scene or no scene manager given.");
    5353
    54         this->particles_ = 0;
     54        this->particles_ = nullptr;
    5555        this->LOD_ = LODParticle::Normal;
    5656
     
    102102        {
    103103            delete this->particles_;
    104             this->particles_ = 0;
     104            this->particles_ = nullptr;
    105105        }
    106106
  • code/branches/cpp11_v2/src/orxonox/infos/HumanPlayer.cc

    r10624 r10768  
    5353        this->defaultController_ = Class(NewHumanController);
    5454
    55         this->humanHud_ = 0;
    56         this->gametypeHud_ = 0;
     55        this->humanHud_ = nullptr;
     56        this->gametypeHud_ = nullptr;
    5757
    5858        this->setConfigValues();
     
    178178        {
    179179            this->humanHud_->destroy();
    180             this->humanHud_ = 0;
     180            this->humanHud_ = nullptr;
    181181        }
    182182
     
    194194        {
    195195            this->gametypeHud_->destroy();
    196             this->gametypeHud_ = 0;
     196            this->gametypeHud_ = nullptr;
    197197        }
    198198
  • code/branches/cpp11_v2/src/orxonox/infos/PlayerInfo.cc

    r10765 r10768  
    5151        this->bReadyToSpawn_ = false;
    5252        this->bSetUnreadyAfterSpawn_ = true;
    53         this->controller_ = 0;
    54         this->controllableEntity_ = 0;
     53        this->controller_ = nullptr;
     54        this->controllableEntity_ = nullptr;
    5555        this->controllableEntityID_ = OBJECTID_UNKNOWN;
    5656
    57         this->gtinfo_ = 0;
     57        this->gtinfo_ = nullptr;
    5858        this->gtinfoID_ = OBJECTID_UNKNOWN;
    5959        this->updateGametypeInfo(this->getGametype());
     
    7272            {
    7373                this->controller_->destroy();
    74                 this->controller_ = 0;
     74                this->controller_ = nullptr;
    7575            }
    7676
     
    126126    void PlayerInfo::updateGametypeInfo(Gametype* gametype)
    127127    {
    128         this->gtinfo_ = 0;
     128        this->gtinfo_ = nullptr;
    129129        this->gtinfoID_ = OBJECTID_UNKNOWN;
    130130
     
    141141        {
    142142            this->controller_->destroy();
    143             this->controller_ = 0;
     143            this->controller_ = nullptr;
    144144        }
    145145        this->controller_ = this->defaultController_.fabricate(this->getContext());
     
    214214            return;
    215215
    216         this->controllableEntity_->setController(0);
    217         this->controllableEntity_ = 0;
     216        this->controllableEntity_->setController(nullptr);
     217        this->controllableEntity_ = nullptr;
    218218        this->controllableEntityID_ = OBJECTID_UNKNOWN;
    219219
    220220        if (this->controller_)
    221             this->controller_->setControllableEntity(0);
     221            this->controller_->setControllableEntity(nullptr);
    222222
    223223        if ( GameMode::isMaster() )
     
    242242        tmp->setActive(false);
    243243        //this->controllableEntity_->getController()->setControllableEntity(nullptr);
    244         this->controllableEntity_->setController(0);
     244        this->controllableEntity_->setController(nullptr);
    245245    }
    246246
     
    253253            return;
    254254
    255         this->controllableEntity_->setController(0);
     255        this->controllableEntity_->setController(nullptr);
    256256        if(this->isHumanPlayer()) // TODO: Multiplayer?
    257257            this->controllableEntity_->destroyHud(); // HACK-ish
  • code/branches/cpp11_v2/src/orxonox/interfaces/RadarViewable.h

    r10624 r10768  
    6666                if (name == "HIDDEN")
    6767                {
    68                     this->bVisibility_ = 0;
     68                    this->bVisibility_ = false;
    6969                    this->settingsChanged();
    7070                }
  • code/branches/cpp11_v2/src/orxonox/items/Engine.cc

    r10765 r10768  
    5050        RegisterObject(Engine);
    5151
    52         this->ship_ = 0;
     52        this->ship_ = nullptr;
    5353        this->shipID_ = OBJECTID_UNKNOWN;
    5454        this->relativePosition_ = Vector3::ZERO;
     
    136136    void Engine::networkcallback_shipID()
    137137    {
    138         this->ship_ = 0;
     138        this->ship_ = nullptr;
    139139
    140140        if (this->shipID_ != OBJECTID_UNKNOWN)
  • code/branches/cpp11_v2/src/orxonox/items/MultiStateEngine.cc

    r10765 r10768  
    6767        else
    6868        {
    69             this->defEngineSndBoost_ = 0;
    70             this->defEngineSndNormal_ = 0;
    71             this->lua_ = 0;
     69            this->defEngineSndBoost_ = nullptr;
     70            this->defEngineSndNormal_ = nullptr;
     71            this->lua_ = nullptr;
    7272        }
    7373        this->state_ = 0;
  • code/branches/cpp11_v2/src/orxonox/overlays/InGameConsole.cc

    r10624 r10768  
    7575        : shell_(new Shell("InGameConsole", true))
    7676        , bShowCursor_(false)
    77         , consoleOverlay_(0)
    78         , consoleOverlayContainer_(0)
    79         , consoleOverlayNoise_(0)
    80         , consoleOverlayCursor_(0)
    81         , consoleOverlayBorder_(0)
    82         , consoleOverlayTextAreas_(0)
    83         , inputState_(0)
     77        , consoleOverlay_(nullptr)
     78        , consoleOverlayContainer_(nullptr)
     79        , consoleOverlayNoise_(nullptr)
     80        , consoleOverlayCursor_(nullptr)
     81        , consoleOverlayBorder_(nullptr)
     82        , consoleOverlayTextAreas_(nullptr)
     83        , inputState_(nullptr)
    8484    {
    8585        RegisterObject(InGameConsole);
     
    130130                    if (this->consoleOverlayTextAreas_[i])
    131131                        Ogre::OverlayManager::getSingleton().destroyOverlayElement(this->consoleOverlayTextAreas_[i]);
    132                     this->consoleOverlayTextAreas_[i] = 0;
     132                    this->consoleOverlayTextAreas_[i] = nullptr;
    133133                }
    134134
     
    140140        {
    141141            delete[] this->consoleOverlayTextAreas_;
    142             this->consoleOverlayTextAreas_ = 0;
     142            this->consoleOverlayTextAreas_ = nullptr;
    143143        }
    144144
     
    175175            else
    176176            {
    177                 inputState_->setMouseHandler(0);
    178                 inputState_->setJoyStickHandler(0);
     177                inputState_->setMouseHandler(nullptr);
     178                inputState_->setJoyStickHandler(nullptr);
    179179            }
    180180        }
  • code/branches/cpp11_v2/src/orxonox/overlays/OrxonoxOverlay.cc

    r10624 r10768  
    7070        RegisterObject(OrxonoxOverlay);
    7171
    72         this->owner_ = 0;
    73         this->group_ = 0;
     72        this->owner_ = nullptr;
     73        this->group_ = nullptr;
    7474
    7575        if (!GameMode::showsGraphics())
  • code/branches/cpp11_v2/src/orxonox/overlays/OverlayGroup.cc

    r10624 r10768  
    5454        RegisterObject(OverlayGroup);
    5555
    56         this->owner_ = 0;
     56        this->owner_ = nullptr;
    5757
    5858        setScale(Vector2(1.0, 1.0));
     
    139139        }
    140140        else
    141             return 0;
     141            return nullptr;
    142142    }
    143143
  • code/branches/cpp11_v2/src/orxonox/weaponsystem/Munition.cc

    r9667 r10768  
    6565            // For separated magazines we definitively need a given user
    6666            if (!user)
    67                 return 0;
     67                return nullptr;
    6868
    6969            // Use the map to get the magazine assigned to the given user
     
    7979        }
    8080
    81         return 0;
     81        return nullptr;
    8282    }
    8383
     
    236236        // If we don't use separate magazines, set user to 0
    237237        if (!this->bUseSeparateMagazines_)
    238             user = 0;
     238            user = nullptr;
    239239
    240240        // Remove the current magazine for the given user
     
    442442        // If we don't use separate magazines, set user to 0
    443443        if (!this->bUseSeparateMagazines_)
    444             user = 0;
     444            user = nullptr;
    445445
    446446        // Remove the current magazine for the given user
  • code/branches/cpp11_v2/src/orxonox/weaponsystem/Weapon.cc

    r10650 r10768  
    4545        RegisterObject(Weapon);
    4646
    47         this->weaponPack_ = 0;
    48         this->weaponSlot_ = 0;
     47        this->weaponPack_ = nullptr;
     48        this->weaponSlot_ = nullptr;
    4949        this->bReloading_ = false;
    5050        this->reloadingWeaponmode_ = WeaponSystem::WEAPON_MODE_UNASSIGNED;
     
    9292            ++i;
    9393        }
    94         return 0;
     94        return nullptr;
    9595    }
    9696
  • code/branches/cpp11_v2/src/orxonox/weaponsystem/WeaponMode.cc

    r10650 r10768  
    5151        RegisterObject(WeaponMode);
    5252
    53         this->weapon_ = 0;
     53        this->weapon_ = nullptr;
    5454        this->mode_ = WeaponSystem::WEAPON_MODE_UNASSIGNED;
    5555
    56         this->munition_ = 0;
     56        this->munition_ = nullptr;
    5757        this->initialMunition_ = 0;
    5858        this->initialMagazines_ = 0;
     
    232232        }
    233233        else
    234             this->munition_ = 0;
     234            this->munition_ = nullptr;
    235235    }
    236236
  • code/branches/cpp11_v2/src/orxonox/weaponsystem/WeaponPack.cc

    r10650 r10768  
    4444        RegisterObject(WeaponPack);
    4545
    46         this->weaponSystem_ = 0;
     46        this->weaponSystem_ = nullptr;
    4747    }
    4848
     
    107107        assert(it != this->weapons_.end());
    108108        this->weapons_.erase(it);
    109         weapon->setWeaponPack(0);
     109        weapon->setWeaponPack(nullptr);
    110110    }
    111111
     
    121121        }
    122122
    123         return 0;
     123        return nullptr;
    124124    }
    125125
     
    139139            ++i;
    140140        }
    141         return 0;
     141        return nullptr;
    142142    }
    143143
  • code/branches/cpp11_v2/src/orxonox/weaponsystem/WeaponSet.cc

    r10650 r10768  
    4343        RegisterObject(WeaponSet);
    4444
    45         this->weaponSystem_ = 0;
     45        this->weaponSystem_ = nullptr;
    4646        this->desiredFiremode_ = WeaponSystem::FIRE_MODE_UNASSIGNED;
    4747    }
  • code/branches/cpp11_v2/src/orxonox/weaponsystem/WeaponSlot.cc

    r10648 r10768  
    4343        RegisterObject(WeaponSlot);
    4444
    45         this->weaponSystem_ = 0;
    46         this->weapon_ = 0;
     45        this->weaponSystem_ = nullptr;
     46        this->weapon_ = nullptr;
    4747
    4848        this->setSyncMode(ObjectDirection::None);
     
    8888        if (this->weapon_)
    8989        {
    90             this->weapon_->setWeaponSlot(0);
    91             this->weapon_ = 0;
     90            this->weapon_->setWeaponSlot(nullptr);
     91            this->weapon_ = nullptr;
    9292        }
    9393    }
  • code/branches/cpp11_v2/src/orxonox/weaponsystem/WeaponSlot.h

    r10650 r10768  
    7474            */
    7575            inline bool isOccupied() const
    76                 { return (this->weapon_ != 0); }
     76                { return (this->weapon_ != nullptr); }
    7777
    7878            inline void setWeaponSystem(WeaponSystem * weaponSystem)
  • code/branches/cpp11_v2/src/orxonox/weaponsystem/WeaponSystem.cc

    r10650 r10768  
    5252        RegisterObject(WeaponSystem);
    5353
    54         this->pawn_ = 0;
     54        this->pawn_ = nullptr;
    5555    }
    5656
     
    6060        {
    6161            if (this->pawn_)
    62                 this->pawn_->setWeaponSystem(0);
     62                this->pawn_->setWeaponSystem(nullptr);
    6363
    6464            while (!this->weaponSets_.empty())
     
    112112                return (*it);
    113113        }
    114         return 0;
     114        return nullptr;
    115115    }
    116116
     
    159159                return it->second;
    160160        }
    161         return 0;
     161        return nullptr;
    162162    }
    163163
     
    213213        // Remove all weapons from their WeaponSlot
    214214        unsigned int i = 0;
    215         Weapon* weapon = 0;
     215        Weapon* weapon = nullptr;
    216216        while ((weapon = wPack->getWeapon(i++)))
    217217            if (weapon->getWeaponSlot())
     
    237237                return (*it);
    238238        }
    239         return 0;
     239        return nullptr;
    240240    }
    241241
     
    303303    {
    304304        if (!identifier || !identifier->getIdentifier())
    305             return 0;
     305            return nullptr;
    306306
    307307        std::map<Identifier *, Munition *>::iterator it = this->munitions_.find(identifier->getIdentifier());
     
    318318        else
    319319        {
    320             return 0;
     320            return nullptr;
    321321        }
    322322    }
  • code/branches/cpp11_v2/src/orxonox/worldentities/BigExplosion.cc

    r9952 r10768  
    204204    void BigExplosion::initZero()
    205205    {
    206         this->debrisFire1_ = 0;
    207         this->debrisFire2_ = 0;
    208         this->debrisFire3_ = 0;
    209         this->debrisFire4_ = 0;
    210 
    211         this->debrisSmoke1_ = 0;
    212         this->debrisSmoke2_ = 0;
    213         this->debrisSmoke3_ = 0;
    214         this->debrisSmoke4_ = 0;
    215 
    216         this->explosionSmoke_=0;
    217         this->explosionFire_=0;
     206        this->debrisFire1_ = nullptr;
     207        this->debrisFire2_ = nullptr;
     208        this->debrisFire3_ = nullptr;
     209        this->debrisFire4_ = nullptr;
     210
     211        this->debrisSmoke1_ = nullptr;
     212        this->debrisSmoke2_ = nullptr;
     213        this->debrisSmoke3_ = nullptr;
     214        this->debrisSmoke4_ = nullptr;
     215
     216        this->explosionSmoke_=nullptr;
     217        this->explosionFire_=nullptr;
    218218    }
    219219
  • code/branches/cpp11_v2/src/orxonox/worldentities/ControllableEntity.cc

    r10765 r10768  
    6161        this->server_overwrite_ = 0;
    6262        this->client_overwrite_ = 0;
    63         this->player_ = 0;
     63        this->player_ = nullptr;
    6464        this->formerPlayer_ = nullptr;
    6565        this->playerID_ = OBJECTID_UNKNOWN;
    66         this->hud_ = 0;
    67         this->camera_ = 0;
    68         this->xmlcontroller_ = 0;
    69         //this->controller_ = 0;
    70         this->reverseCamera_ = 0;
     66        this->hud_ = nullptr;
     67        this->camera_ = nullptr;
     68        this->xmlcontroller_ = nullptr;
     69        //this->controller_ = nullptr;
     70        this->reverseCamera_ = nullptr;
    7171        this->bDestroyWhenPlayerLeft_ = false;
    7272        this->cameraPositionRootNode_ = this->node_->createChildSceneNode();
    73         this->currentCameraPosition_ = 0;
     73        this->currentCameraPosition_ = nullptr;
    7474        this->bMouseLook_ = false;
    7575        this->mouseLookSpeed_ = 200;
     
    171171            ++i;
    172172        }
    173         return 0;
     173        return nullptr;
    174174    }
    175175
     
    241241            {
    242242                this->camera_->attachToNode(this->cameraPositionRootNode_);
    243                 this->currentCameraPosition_ = 0;
     243                this->currentCameraPosition_ = nullptr;
    244244            }
    245245
     
    321321        if ( !GameMode::isMaster() )
    322322        {
    323             if ( target != 0 )
     323            if ( target != nullptr )
    324324            {
    325325                callMemberNetworkFunction(&ControllableEntity::setTargetInternal, this->getObjectID(), 0, target->getObjectID() );
     
    372372            this->stopLocalHumanControl();
    373373
    374         this->player_ = 0;
     374        this->player_ = nullptr;
    375375        this->playerID_ = OBJECTID_UNKNOWN;
    376376        this->bHasLocalController_ = false;
     
    411411            {
    412412                this->camera_->attachToNode(this->cameraPositionRootNode_);
    413                 this->currentCameraPosition_ = 0;
     413                this->currentCameraPosition_ = nullptr;
    414414            }
    415415        }
     
    447447            this->camera_->detachFromParent();
    448448            this->camera_->destroy();
    449             this->camera_ = 0;
     449            this->camera_ = nullptr;
    450450        }
    451451
     
    453453        {
    454454            this->hud_->destroy();
    455             this->hud_ = 0;
     455            this->hud_ = nullptr;
    456456        }
    457457    }
  • code/branches/cpp11_v2/src/orxonox/worldentities/Drone.cc

    r9667 r10768  
    4343        RegisterObject(Drone);
    4444
    45         this->myController_ = 0;
     45        this->myController_ = nullptr;
    4646
    4747        this->localLinearAcceleration_.setValue(0, 0, 0);
  • code/branches/cpp11_v2/src/orxonox/worldentities/ExplosionChunk.cc

    r9667 r10768  
    6262            {
    6363                orxout(internal_error) << "Couldn't load particle effect in ExplosionChunk: " << ex.what() << endl;
    64                 this->fire_ = 0;
    65                 this->smoke_ = 0;
     64                this->fire_ = nullptr;
     65                this->smoke_ = nullptr;
    6666            }
    6767        }
    6868        else
    6969        {
    70             this->fire_ = 0;
    71             this->smoke_ = 0;
     70            this->fire_ = nullptr;
     71            this->smoke_ = nullptr;
    7272        }
    7373
  • code/branches/cpp11_v2/src/orxonox/worldentities/MovableEntity.cc

    r10216 r10768  
    5050        this->overwrite_orientation_ = Quaternion::IDENTITY;
    5151
    52         this->continuousResynchroTimer_ = 0;
     52        this->continuousResynchroTimer_ = nullptr;
    5353
    5454        this->setPriority(Priority::Low);
     
    8080            {
    8181                float damage = this->collisionDamage_ * (victim->getVelocity() - this->getVelocity()).length();
    82                 victim->hit(0, contactPoint, ownCollisionShape, damage);
     82                victim->hit(nullptr, contactPoint, ownCollisionShape, damage);
    8383            }
    8484        }
  • code/branches/cpp11_v2/src/orxonox/worldentities/SpawnPoint.cc

    r9667 r10768  
    4343        RegisterObject(SpawnPoint);
    4444
    45         this->template_ = 0;
     45        this->template_ = nullptr;
    4646
    4747        if (this->getGametype())
  • code/branches/cpp11_v2/src/orxonox/worldentities/WorldEntity.cc

    r10765 r10768  
    7777        this->node_ = this->getScene()->getRootSceneNode()->createChildSceneNode();
    7878
    79         this->parent_ = 0;
     79        this->parent_ = nullptr;
    8080        this->parentID_ = OBJECTID_UNKNOWN;
    8181        this->bDeleteWithParent_ = true;
     
    9090
    9191        // Default behaviour does not include physics
    92         this->physicalBody_   = 0;
     92        this->physicalBody_   = nullptr;
    9393        this->bPhysicsActive_ = false;
    9494        this->bPhysicsActiveSynchronised_    = false;
     
    498498    void WorldEntity::notifyDetached()
    499499    {
    500         this->parent_ = 0;
     500        this->parent_ = nullptr;
    501501        this->parentID_ = OBJECTID_UNKNOWN;
    502502
     
    525525            ++i;
    526526        }
    527         return 0;
     527        return nullptr;
    528528    }
    529529
     
    856856            deactivatePhysics();
    857857            delete this->physicalBody_;
    858             this->physicalBody_ = 0;
     858            this->physicalBody_ = nullptr;
    859859            this->collisionType_ = None;
    860860            this->collisionTypeSynchronised_ = None;
  • code/branches/cpp11_v2/src/orxonox/worldentities/pawns/ModularSpaceShip.cc

    r10765 r10768  
    5353    RegisterClass(ModularSpaceShip);
    5454
    55     std::map<StaticEntity*, ShipPart*>* ModularSpaceShip::partMap_s = 0;
     55    std::map<StaticEntity*, ShipPart*>* ModularSpaceShip::partMap_s = nullptr;
    5656
    5757    ModularSpaceShip::ModularSpaceShip(Context* context) : SpaceShip(context)
  • code/branches/cpp11_v2/src/orxonox/worldentities/pawns/Pawn.cc

    r10650 r10768  
    7676        this->reloadWaitCountdown_ = 0;
    7777
    78         this->lastHitOriginator_ = 0;
     78        this->lastHitOriginator_ = nullptr;
    7979
    8080        // set damage multiplier to default value 1, meaning nominal damage
     
    9191        }
    9292        else
    93             this->weaponSystem_ = 0;
     93            this->weaponSystem_ = nullptr;
    9494
    9595        this->setRadarObjectColour(ColourValue::Red);
     
    109109        else
    110110        {
    111             this->explosionSound_ = 0;
     111            this->explosionSound_ = nullptr;
    112112        }
    113113    }
     
    345345                    {
    346346                        // delete the AIController // <-- TODO: delete? nothing is deleted here... should we delete the controller?
    347                         slave->setControllableEntity(0);
     347                        slave->setControllableEntity(nullptr);
    348348
    349349                        // set a new master within the formation
     
    509509            return this->weaponSystem_->getWeaponSlot(index);
    510510        else
    511             return 0;
     511            return nullptr;
    512512    }
    513513
     
    523523            return this->weaponSystem_->getWeaponSet(index);
    524524        else
    525             return 0;
     525            return nullptr;
    526526    }
    527527
     
    551551            return this->weaponSystem_->getWeaponPack(index);
    552552        else
    553             return 0;
     553            return nullptr;
    554554    }
    555555
     
    594594                return it->getController();
    595595        }
    596         return 0;
     596        return nullptr;
    597597    }
    598598
  • code/branches/cpp11_v2/src/orxonox/worldentities/pawns/Pawn.h

    r10765 r10768  
    207207            virtual void spawneffect();
    208208
    209             //virtual void damage(float damage, Pawn* originator = 0);
     209            //virtual void damage(float damage, Pawn* originator = nullptr);
    210210            virtual void damage(float damage, float healthdamage = 0.0f, float shielddamage = 0.0f, Pawn* originator = nullptr, const btCollisionShape* cs = nullptr);
    211211
  • code/branches/cpp11_v2/src/orxonox/worldentities/pawns/SpaceShip.cc

    r10765 r10768  
    494494            Camera* camera = this->getCamera();
    495495            //Shaking Camera effect
    496             if (camera != 0)
     496            if (camera != nullptr)
    497497                camera->setOrientation(Vector3::UNIT_X, angle);
    498498
     
    526526        {
    527527            Camera *camera = this->getCamera();
    528             if (camera == 0)
     528            if (camera == nullptr)
    529529            {
    530530                orxout(internal_warning) << "Failed to reset camera!" << endl;
  • code/branches/cpp11_v2/src/orxonox/worldentities/pawns/Spectator.cc

    r10624 r10768  
    5858        this->localVelocity_ = Vector3::ZERO;
    5959        this->setHudTemplate("spectatorhud");
    60         this->greetingFlare_ = 0;
     60        this->greetingFlare_ = nullptr;
    6161
    6262        this->setDestroyWhenPlayerLeft(true);
Note: See TracChangeset for help on using the changeset viewer.