- Timestamp:
- May 21, 2010, 10:25:27 AM (15 years ago)
- Location:
- code/branches/presentation3
- Files:
-
- 2 edited
- 2 copied
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentation3
- Property svn:mergeinfo changed
/code/branches/rocket (added) merged: 6778-6781,6783-6785,6803,6809-6811,6813-6818,6827,6834,6863,6878,6900,6902-6905,6943,6948-6950
- Property svn:mergeinfo changed
-
code/branches/presentation3/src/modules/weapons/projectiles/CMakeLists.txt
r6417 r6951 5 5 LightningGunProjectile.cc 6 6 Rocket.cc 7 SimpleRocket.cc 7 8 ) -
code/branches/presentation3/src/modules/weapons/projectiles/SimpleRocket.cc
r6950 r6951 59 59 this->bDestroy_ = false; 60 60 this->lifetime_ = 100; 61 COUT(0)<< "simplerocket constructed\n";61 COUT(4) << "simplerocket constructed\n"; 62 62 63 63 … … 91 91 92 92 } 93 void SimpleRocket::tick(float dt) 93 94 void SimpleRocket::tick(float dt) 94 95 { 95 96 SUPER(SimpleRocket, tick, dt); … … 102 103 this->destroy(); 103 104 104 105 } 105 106 106 107 /**s … … 110 111 SimpleRocket::~SimpleRocket() 111 112 { 112 if (this->isInitialized()) { 113 this->getController()->destroy(); 114 COUT(0)<< "simplerocket destroyed\n"; 115 } 116 } 113 if (this->isInitialized()) 114 { 115 this->getController()->destroy(); 116 COUT(4)<< "simplerocket destroyed\n"; 117 } 118 } 117 119 118 120 /** … … 165 167 166 168 float dmg = this->damage_; 167 if (this->owner_)168 dmg = this->owner_->getPickups().processModifiers(ModifierType::Damage, dmg, false);169 // if (this->owner_) 170 // dmg = this->owner_->getPickups().processModifiers(ModifierType::Damage, dmg, false); 169 171 170 172 Pawn* victim = orxonox_cast<Pawn*>(otherObject); … … 182 184 } 183 185 } 184 void SimpleRocket::setDestroy() { 185 this->bDestroy_=true; 186 COUT(0)<<"trying to destroy"; 187 } 186 187 void SimpleRocket::setDestroy() 188 { 189 this->bDestroy_=true; 190 CCOUT(4)<<"trying to destroy"; 191 } 188 192 189 193 void SimpleRocket::fired(unsigned int firemode)
Note: See TracChangeset
for help on using the changeset viewer.