Changeset 10420 for code/branches/core7/src/orxonox/items
- Timestamp:
- May 3, 2015, 3:02:05 PM (10 years ago)
- Location:
- code/branches/core7/src/orxonox/items
- Files:
-
- 2 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 -
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
Note: See TracChangeset
for help on using the changeset viewer.