Changeset 10420 for code/branches/core7/src/orxonox/items/ShipPart.cc
- Timestamp:
- May 3, 2015, 3:02:05 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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
Note: See TracChangeset
for help on using the changeset viewer.