Changeset 11174 for code/branches/sagerjFS16/src/orxonox/worldentities
- Timestamp:
- Apr 21, 2016, 4:47:39 PM (9 years ago)
- Location:
- code/branches/sagerjFS16/src/orxonox/worldentities
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/sagerjFS16/src/orxonox/worldentities/ControllableEntity.cc
r11170 r11174 299 299 } 300 300 301 void ControllableEntity:: fire(unsigned int firemode)301 void ControllableEntity::push(unsigned int firemode) 302 302 { 303 303 if(GameMode::isMaster()) 304 304 { 305 this-> fired(firemode);305 this->pushed(firemode); 306 306 } 307 307 else -
code/branches/sagerjFS16/src/orxonox/worldentities/ControllableEntity.h
r11164 r11174 96 96 { this->rotateRoll(Vector2(value, 0)); } 97 97 98 void fire(unsigned int firemode);98 void push(unsigned int firemode); 99 99 void release(unsigned int firemode); 100 virtual void fired(unsigned int firemode) {}100 virtual void pushed(unsigned int firemode) {} 101 101 virtual void released(unsigned int firemode) {} 102 102 virtual void reload() {} -
code/branches/sagerjFS16/src/orxonox/worldentities/pawns/Pawn.cc
r11170 r11174 428 428 */ 429 429 430 void Pawn:: fired(unsigned int firemode)431 { 432 if (this->weaponSystem_) 433 this->weaponSystem_-> fire(firemode);430 void Pawn::pushed(unsigned int firemode) 431 { 432 if (this->weaponSystem_) 433 this->weaponSystem_->push(firemode); 434 434 } 435 435 -
code/branches/sagerjFS16/src/orxonox/worldentities/pawns/Pawn.h
r11166 r11174 157 157 virtual void kill(); 158 158 159 virtual void fired(unsigned int firemode) override;159 virtual void pushed(unsigned int firemode) override; 160 160 virtual void released(unsigned int firemode) override; 161 161 virtual void postSpawn();
Note: See TracChangeset
for help on using the changeset viewer.