Changeset 2098 for code/trunk/src/orxonox/objects/weaponSystem
- Timestamp:
- Nov 1, 2008, 11:17:22 PM (16 years ago)
- Location:
- code/trunk/src/orxonox/objects/weaponSystem
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/orxonox/objects/weaponSystem/Weapon.cc
r2097 r2098 40 40 { 41 41 RegisterObject(Weapon); 42 43 this->loadingTime_ = 0; 44 this->munition_ = 0; 45 42 46 } 43 47 -
code/trunk/src/orxonox/objects/weaponSystem/Weapon.h
r2097 r2098 49 49 50 50 private: 51 int loadingTime ;51 int loadingTime_; 52 52 Munition *munition_; 53 53 -
code/trunk/src/orxonox/objects/weaponSystem/WeaponSet.cc
r2097 r2098 42 42 RegisterObject(WeaponSet); 43 43 44 this->parentWeaponSystem_ = 0; 45 44 46 for (int i=0;i<k;i++) 45 47 { … … 68 70 } 69 71 70 WeaponSlot * WeaponSet::getWeaponSlotPointer( int n)72 WeaponSlot * WeaponSet::getWeaponSlotPointer(unsigned int n) 71 73 { 72 return this->weaponSlots_[n]; 74 if (n < this->weaponSlots_.size()) 75 return this->weaponSlots_[n]; 76 else 77 return 0; 73 78 } 74 79 -
code/trunk/src/orxonox/objects/weaponSystem/WeaponSet.h
r2097 r2098 50 50 void WeaponSet::attachWeaponSlot(WeaponSlot *wSlot); 51 51 void WeaponSet::fire(); 52 WeaponSlot * getWeaponSlotPointer( int n);52 WeaponSlot * getWeaponSlotPointer(unsigned int n); 53 53 54 54 inline void WeaponSet::setParentWeaponSystem(WeaponSystem *parentWeaponSystem) -
code/trunk/src/orxonox/objects/weaponSystem/WeaponSlot.cc
r2097 r2098 42 42 { 43 43 RegisterObject(WeaponSlot); 44 45 this->unlimitedAmmo_ = false; 46 47 this->attachedWeapon_ = 0; 48 this->parentWeaponSet_ = 0; 44 49 } 45 50 -
code/trunk/src/orxonox/objects/weaponSystem/weapons/LaserGun.h
r2097 r2098 35 35 36 36 #include "LaserGunMunition.h" 37 #include "../tools/BillboardSet.h" 37 #include "tools/BillboardSet.h" 38 #include "util/Math.h" 38 39 39 40 namespace orxonox -
code/trunk/src/orxonox/objects/weaponSystem/weapons/Missile.h
r2097 r2098 32 32 #include "OrxonoxPrereqs.h" 33 33 34 #include " core/BaseObject.h"34 #include "objects/weaponSystem/Weapon.h" 35 35 36 36 37 37 namespace orxonox 38 38 { 39 class _OrxonoxExport Missile : public BaseObject : publicWeapon39 class _OrxonoxExport Missile : public Weapon 40 40 { 41 41 public:
Note: See TracChangeset
for help on using the changeset viewer.