- Timestamp:
- Nov 1, 2008, 11:17:22 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/orxonox/objects/worldentities/pawns/Pawn.cc
r2087 r2098 35 35 #include "objects/infos/PlayerInfo.h" 36 36 #include "objects/gametypes/Gametype.h" 37 #include "objects/WeaponSystem.h" 37 38 38 39 namespace orxonox … … 51 52 52 53 this->lastHitOriginator_ = 0; 54 this->weaponSystem_ = 0; 55 56 /* 57 //WeaponSystem 58 weaponSystem_ = new WeaponSystem(); 59 WeaponSet * weaponSet1 = new WeaponSet(1); 60 this->weaponSystem_->attachWeaponSet(weaponSet1); 61 this->weaponSystem_->getWeaponSetPointer(0)->getWeaponSlotPointer(0)->setAmmoType(true); 62 */ 53 63 54 64 this->registerVariables(); … … 127 137 } 128 138 139 void Pawn::fire() 140 { 141 if (this->weaponSystem_) 142 this->weaponSystem_->fire(); 143 } 144 129 145 void Pawn::postSpawn() 130 146 {
Note: See TracChangeset
for help on using the changeset viewer.