Changeset 11166 for code/branches/sagerjFS16/src/orxonox/worldentities
- Timestamp:
- Apr 14, 2016, 4:02:00 PM (9 years ago)
- Location:
- code/branches/sagerjFS16/src/orxonox/worldentities
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/sagerjFS16/src/orxonox/worldentities/ControllableEntity.cc
r11164 r11166 303 303 if(GameMode::isMaster()) 304 304 { 305 orxout() << "f CE IF" << firemode << endl;305 orxout() << "fire ce if " << firemode << endl; 306 306 this->fired(firemode); 307 307 } 308 308 else 309 309 { 310 orxout() << "f CE EL" << firemode << endl;310 orxout() << "fire ce else " << firemode << endl; 311 311 callMemberNetworkFunction(&ControllableEntity::fire, this->getObjectID(), 0, firemode); 312 312 } … … 317 317 if(GameMode::isMaster()) 318 318 { 319 orxout() << "r CE IF" << firemode << endl;319 orxout() << "release ce if " << firemode << endl; 320 320 this->released(firemode); 321 321 } 322 322 else 323 323 { 324 orxout() << "r CE EL" << firemode << endl;324 orxout() << "release ce else " << firemode << endl; 325 325 callMemberNetworkFunction(&ControllableEntity::fire, this->getObjectID(), 0, firemode); 326 326 } -
code/branches/sagerjFS16/src/orxonox/worldentities/pawns/Pawn.cc
r11099 r11166 430 430 void Pawn::fired(unsigned int firemode) 431 431 { 432 orxout() << "fired pawn " << firemode << endl; 432 433 if (this->weaponSystem_) 433 434 this->weaponSystem_->fire(firemode); 435 } 436 437 void Pawn::released(unsigned int firemode) 438 { 439 orxout() << "released pawn " << firemode << endl; 440 if (this->weaponSystem_) 441 this->weaponSystem_->release(firemode); 434 442 } 435 443 -
code/branches/sagerjFS16/src/orxonox/worldentities/pawns/Pawn.h
r11071 r11166 158 158 159 159 virtual void fired(unsigned int firemode) override; 160 virtual void released(unsigned int firemode) override; 160 161 virtual void postSpawn(); 161 162
Note: See TracChangeset
for help on using the changeset viewer.