Changeset 11164 for code/branches/sagerjFS16/src/orxonox/worldentities
- Timestamp:
- Apr 14, 2016, 1:11:00 PM (9 years ago)
- Location:
- code/branches/sagerjFS16/src/orxonox/worldentities
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/sagerjFS16/src/orxonox/worldentities/ControllableEntity.cc
r11071 r11164 303 303 if(GameMode::isMaster()) 304 304 { 305 orxout() << "f CE IF " << firemode << endl; 305 306 this->fired(firemode); 306 307 } 307 308 else 308 309 { 310 orxout() << "f CE EL " << firemode << endl; 311 callMemberNetworkFunction(&ControllableEntity::fire, this->getObjectID(), 0, firemode); 312 } 313 } 314 315 void ControllableEntity::release(unsigned int firemode) 316 { 317 if(GameMode::isMaster()) 318 { 319 orxout() << "r CE IF " << firemode << endl; 320 this->released(firemode); 321 } 322 else 323 { 324 orxout() << "r CE EL " << firemode << endl; 309 325 callMemberNetworkFunction(&ControllableEntity::fire, this->getObjectID(), 0, firemode); 310 326 } -
code/branches/sagerjFS16/src/orxonox/worldentities/ControllableEntity.h
r11071 r11164 97 97 98 98 void fire(unsigned int firemode); 99 void release(unsigned int firemode); 99 100 virtual void fired(unsigned int firemode) {} 101 virtual void released(unsigned int firemode) {} 100 102 virtual void reload() {} 101 103
Note: See TracChangeset
for help on using the changeset viewer.