Changeset 2098 for code/trunk/src/orxonox/objects/worldentities/pawns
- Timestamp:
- Nov 1, 2008, 11:17:22 PM (16 years ago)
- Location:
- code/trunk/src/orxonox/objects/worldentities/pawns
- Files:
-
- 2 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 { -
code/trunk/src/orxonox/objects/worldentities/pawns/Pawn.h
r2087 r2098 74 74 virtual void kill(); 75 75 76 virtual void fire(); 77 76 78 virtual void postSpawn(); 77 79 … … 87 89 88 90 Pawn* lastHitOriginator_; 91 92 WeaponSystem* weaponSystem_; 89 93 }; 90 94 }
Note: See TracChangeset
for help on using the changeset viewer.