Changeset 2918 for code/branches/weapons/src/orxonox/objects/weaponSystem/munitions/LaserGunMunition.cc
- Timestamp:
- Apr 18, 2009, 6:14:52 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/weapons/src/orxonox/objects/weaponSystem/munitions/LaserGunMunition.cc
r2912 r2918 36 36 CreateFactory(LaserGunMunition); 37 37 38 LaserGunMunition::LaserGunMunition(BaseObject* creator) : Munition(creator)38 LaserGunMunition::LaserGunMunition(BaseObject* creator) : ReplenishingMunition(creator) 39 39 { 40 40 RegisterObject(LaserGunMunition); 41 41 42 //default if not defined in XML 43 this->maxBullets_ = 40; 44 this->maxMagazines_ = 100; 42 this->maxMunitionPerMagazine_ = 20; 43 this->maxMagazines_ = 1; 44 this->magazines_ = 1; 45 46 this->bUseSeparateMagazines_ = false; 47 this->bStackMunition_ = true; 48 49 this->bAllowMunitionRefilling_ = true; 50 this->bAllowMultiMunitionRemovementUnderflow_ = true; 51 52 this->replenishIntervall_ = 0.5f; 53 this->replenishMunitionAmount_ = 1; 45 54 } 46 47 LaserGunMunition::~LaserGunMunition()48 {49 }50 51 void LaserGunMunition::XMLPort(Element& xmlelement, XMLPort::Mode mode)52 {53 54 }55 56 55 }
Note: See TracChangeset
for help on using the changeset viewer.