- Timestamp:
- Dec 10, 2008, 9:20:39 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/weapon2/src/orxonox/objects/weaponSystem/Weapon.h
r2391 r2398 61 61 void bulletReloaded(); 62 62 void magazineReloaded(); 63 void setBulletLoadingTime(float loadingTime);64 float getBulletLoadingTime();65 void setMagazineLoadingTime(float loadingTime);66 float getMagazineLoadingTime();67 Timer<Weapon> *getBulletTimer();68 Timer<Weapon> *getMagazineTimer();69 63 70 64 virtual void setMunitionType(std::string munitionType); 71 65 virtual const std::string getMunitionType(); 66 virtual void setBulletLoadingTime(float loadingTime); 67 virtual const float getBulletLoadingTime(); 68 virtual void setMagazineLoadingTime(float loadingTime); 69 virtual const float getMagazineLoadingTime(); 72 70 73 71 virtual void takeBullets(); … … 75 73 virtual void createProjectile(); 76 74 77 inline void setParentWeaponSlot(WeaponSlot *parentWeaponSlot)78 { this->parentWeaponSlot_=parentWeaponSlot; };79 inline WeaponSlot * getParentWeaponSlot()80 { return this->parentWeaponSlot_; };81 75 inline void setParentWeaponSystem(WeaponSystem *parentWeaponSystem) 82 76 { this->parentWeaponSystem_=parentWeaponSystem; }; … … 84 78 { return this->parentWeaponSystem_; }; 85 79 86 //in future by XMLPort 80 inline void setAttachedToWeaponSlot(WeaponSlot * wSlot) 81 { this->attachedToWeaponSlot_ = wSlot; } 82 inline WeaponSlot * getAttachedToWeaponSlot() 83 { return this->attachedToWeaponSlot_; } 84 87 85 virtual void setWeapon(); 88 86 … … 90 88 91 89 protected: 90 bool bReloading_; 92 91 bool bulletReadyToShoot_; 93 92 bool magazineReadyToShoot_; 94 93 float bulletLoadingTime_; 95 94 float magazineLoadingTime_; 96 bool bReloading_;97 98 Munition *munition_;99 95 std::string munitionType_; 100 96 101 WeaponSlot *parentWeaponSlot_; 102 WeaponSystem *parentWeaponSystem_; 97 WeaponSlot * attachedToWeaponSlot_; 98 Munition * munition_; 99 WeaponSystem * parentWeaponSystem_; 100 103 101 SubclassIdentifier<Munition> munitionIdentifier_; 102 104 103 Timer<Weapon> bulletReloadTimer_; 105 104 Timer<Weapon> magazineReloadTimer_;
Note: See TracChangeset
for help on using the changeset viewer.