Changeset 10420 for code/branches/core7/src
- Timestamp:
- May 3, 2015, 3:02:05 PM (10 years ago)
- Location:
- code/branches/core7/src/orxonox
- Files:
-
- 4 deleted
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/core7/src/orxonox/CMakeLists.txt
r10216 r10420 29 29 Main.cc 30 30 MoodManager.cc 31 PawnManager.cc32 31 PlayerManager.cc 33 ShipPartManager.cc34 32 Radar.cc 35 33 # Test.cc -
code/branches/core7/src/orxonox/OrxonoxPrereqs.h
r10281 r10420 73 73 class LevelInfoItem; 74 74 class LevelManager; 75 class PawnManager;76 75 class PlayerManager; 77 76 class Radar; -
code/branches/core7/src/orxonox/collisionshapes/CollisionShape.cc
r10417 r10420 78 78 { 79 79 if (this->getScene() && this->getScene()->isUpdatingPhysics()) 80 orxout(internal_error) << "Don't destroy collision shapes while the physics is updated! This will lead to crashes " << endl;80 orxout(internal_error) << "Don't destroy collision shapes while the physics is updated! This will lead to crashes. Try to use destroyLater() instead" << endl; 81 81 82 82 if (this->parent_) -
code/branches/core7/src/orxonox/items/ShipPart.cc
r10414 r10420 53 53 { 54 54 RegisterObject(ShipPart); 55 this->alive_ = true;56 55 this->eventExecution_ = true; 57 56 this->healthMem_ = 100; … … 90 89 void ShipPart::death() 91 90 { 92 //if (!(this->isAlive()))93 //return;94 95 91 this->explode(); 96 this->setAlive(false);97 92 98 93 if(eventExecution_) … … 104 99 } 105 100 } 101 102 this->destroyLater(); 106 103 } 107 104 … … 203 200 { 204 201 this->health_ = health; 205 }206 207 void ShipPart::setAlive(bool var)208 {209 this->alive_ = var;210 orxout() << "ShipPart " << this->getName() << " alive_: " << this->alive_ << endl;211 202 } 212 203 -
code/branches/core7/src/orxonox/items/ShipPart.h
r10262 r10420 72 72 { return this->parent_; } 73 73 74 void setAlive(bool var);75 inline bool isAlive()76 { return this->alive_; }77 78 74 inline void setEventExecution(bool var) 79 75 { this->eventExecution_ = var; } … … 121 117 std::vector<PartDestructionEvent*> eventList_; // The list of all PartDestructionEvent assigned to this ShipPart. 122 118 123 bool alive_;124 119 bool eventExecution_; 125 120 -
code/branches/core7/src/orxonox/worldentities/pawns/Pawn.cc
r10216 r10420 326 326 if (this->getGametype() && this->getGametype()->allowPawnDeath(this, this->lastHitOriginator_)) 327 327 { 328 // Set bAlive_ to false and wait for PawnManagerto do the destruction328 // Set bAlive_ to false and wait for destroyLater() to do the destruction 329 329 this->bAlive_ = false; 330 this->destroyLater(); 330 331 331 332 this->setDestroyWhenPlayerLeft(false);
Note: See TracChangeset
for help on using the changeset viewer.