- Timestamp:
- Apr 8, 2009, 12:58:47 AM (16 years ago)
- Location:
- code/branches/questsystem5
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/questsystem5
- Property svn:mergeinfo changed
-
code/branches/questsystem5/src/orxonox/objects/weaponSystem/Weapon.h
r2907 r2908 62 62 void magazineReloaded(); 63 63 64 //XMLPort functions65 64 virtual void setMunitionType(std::string munitionType); 66 65 virtual const std::string getMunitionType(); … … 69 68 virtual void setMagazineLoadingTime(float loadingTime); 70 69 virtual const float getMagazineLoadingTime(); 71 virtual void setBulletAmount(unsigned int amount);72 virtual const unsigned int getBulletAmount();73 virtual void setMagazineAmount(unsigned int amount);74 virtual const unsigned int getMagazineAmount();75 virtual void setUnlimitedMunition(bool unlimitedMunition);76 virtual const bool getUnlimitedMunition();77 70 78 //weapon actions79 71 virtual void takeBullets(); 80 72 virtual void takeMagazines(); 81 73 virtual void createProjectile(); 82 virtual void reloadBullet();83 virtual void reloadMagazine();84 74 85 //manually set or reset86 virtual void setWeapon();87 virtual void setMunition();88 89 75 inline void setParentWeaponSystem(WeaponSystem *parentWeaponSystem) 90 76 { this->parentWeaponSystem_=parentWeaponSystem; }; … … 97 83 { return this->attachedToWeaponSlot_; } 98 84 85 virtual void setWeapon(); 99 86 100 87 private: … … 104 91 bool bulletReadyToShoot_; 105 92 bool magazineReadyToShoot_; 106 bool unlimitedMunition_;107 93 float bulletLoadingTime_; 108 94 float magazineLoadingTime_; 109 unsigned int bulletAmount_;110 unsigned int magazineAmount_;111 95 std::string munitionType_; 112 96
Note: See TracChangeset
for help on using the changeset viewer.