Changeset 10768 for code/branches/cpp11_v2/src/orxonox/worldentities/pawns
- Timestamp:
- Nov 6, 2015, 10:54:34 PM (9 years ago)
- Location:
- code/branches/cpp11_v2/src/orxonox/worldentities/pawns
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/cpp11_v2/src/orxonox/worldentities/pawns/ModularSpaceShip.cc
r10765 r10768 53 53 RegisterClass(ModularSpaceShip); 54 54 55 std::map<StaticEntity*, ShipPart*>* ModularSpaceShip::partMap_s = 0;55 std::map<StaticEntity*, ShipPart*>* ModularSpaceShip::partMap_s = nullptr; 56 56 57 57 ModularSpaceShip::ModularSpaceShip(Context* context) : SpaceShip(context) -
code/branches/cpp11_v2/src/orxonox/worldentities/pawns/Pawn.cc
r10650 r10768 76 76 this->reloadWaitCountdown_ = 0; 77 77 78 this->lastHitOriginator_ = 0;78 this->lastHitOriginator_ = nullptr; 79 79 80 80 // set damage multiplier to default value 1, meaning nominal damage … … 91 91 } 92 92 else 93 this->weaponSystem_ = 0;93 this->weaponSystem_ = nullptr; 94 94 95 95 this->setRadarObjectColour(ColourValue::Red); … … 109 109 else 110 110 { 111 this->explosionSound_ = 0;111 this->explosionSound_ = nullptr; 112 112 } 113 113 } … … 345 345 { 346 346 // delete the AIController // <-- TODO: delete? nothing is deleted here... should we delete the controller? 347 slave->setControllableEntity( 0);347 slave->setControllableEntity(nullptr); 348 348 349 349 // set a new master within the formation … … 509 509 return this->weaponSystem_->getWeaponSlot(index); 510 510 else 511 return 0;511 return nullptr; 512 512 } 513 513 … … 523 523 return this->weaponSystem_->getWeaponSet(index); 524 524 else 525 return 0;525 return nullptr; 526 526 } 527 527 … … 551 551 return this->weaponSystem_->getWeaponPack(index); 552 552 else 553 return 0;553 return nullptr; 554 554 } 555 555 … … 594 594 return it->getController(); 595 595 } 596 return 0;596 return nullptr; 597 597 } 598 598 -
code/branches/cpp11_v2/src/orxonox/worldentities/pawns/Pawn.h
r10765 r10768 207 207 virtual void spawneffect(); 208 208 209 //virtual void damage(float damage, Pawn* originator = 0);209 //virtual void damage(float damage, Pawn* originator = nullptr); 210 210 virtual void damage(float damage, float healthdamage = 0.0f, float shielddamage = 0.0f, Pawn* originator = nullptr, const btCollisionShape* cs = nullptr); 211 211 -
code/branches/cpp11_v2/src/orxonox/worldentities/pawns/SpaceShip.cc
r10765 r10768 494 494 Camera* camera = this->getCamera(); 495 495 //Shaking Camera effect 496 if (camera != 0)496 if (camera != nullptr) 497 497 camera->setOrientation(Vector3::UNIT_X, angle); 498 498 … … 526 526 { 527 527 Camera *camera = this->getCamera(); 528 if (camera == 0)528 if (camera == nullptr) 529 529 { 530 530 orxout(internal_warning) << "Failed to reset camera!" << endl; -
code/branches/cpp11_v2/src/orxonox/worldentities/pawns/Spectator.cc
r10624 r10768 58 58 this->localVelocity_ = Vector3::ZERO; 59 59 this->setHudTemplate("spectatorhud"); 60 this->greetingFlare_ = 0;60 this->greetingFlare_ = nullptr; 61 61 62 62 this->setDestroyWhenPlayerLeft(true);
Note: See TracChangeset
for help on using the changeset viewer.