Changeset 2410 for code/branches/weapon2
- Timestamp:
- Dec 11, 2008, 5:52:13 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/weapon2/src/orxonox/objects/weaponSystem/Munition.cc
r2391 r2410 37 37 namespace orxonox 38 38 { 39 CreateFactory(Munition); 40 39 41 Munition::Munition(BaseObject* creator) : BaseObject(creator) 40 42 { … … 47 49 48 50 unsigned int Munition::bullets() 49 { 51 { 50 52 if (this->bullets_ > 0) 51 53 return bullets_; … … 55 57 56 58 unsigned int Munition::magazines() 57 { 59 { 58 60 if (this->magazines_ > 0) 59 61 return magazines_; … … 106 108 this->bullets_ = this->maxBullets_; 107 109 } 108 110 109 111 void Munition::fillMagazines() 110 112 { 111 113 this->magazines_ = this->maxMagazines_; 112 114 } 113 115 114 116 void Munition::XMLPort(Element& xmlelement, XMLPort::Mode mode) 115 117 {
Note: See TracChangeset
for help on using the changeset viewer.