| 
                Last change
                  on this file since 11053 was
                  11052,
                  checked in by landauf, 10 years ago
           | 
        
        
          | 
               
merged branch presentationHS15 back to trunk 
 
           | 
        
        
          
            
              - 
                  Property svn:eol-style set to
                  
native
               
             
           | 
        
        | 
            File size:
            866 bytes
           | 
      
      
        
  | Rev | Line |   | 
|---|
| [10369] | 1 | /* | 
|---|
 | 2 |  * GravityBombMunition.cc | 
|---|
 | 3 |  * | 
|---|
 | 4 |  *  Created on: Apr 16, 2015 | 
|---|
| [10455] | 5 |  *      Author: Manuel Eggimann | 
|---|
| [10369] | 6 |  */ | 
|---|
 | 7 | #include "GravityBombMunition.h" | 
|---|
 | 8 | #include "core/CoreIncludes.h" | 
|---|
| [11052] | 9 | #include "core/XMLPort.h" | 
|---|
| [10369] | 10 |  | 
|---|
 | 11 | namespace orxonox | 
|---|
 | 12 | { | 
|---|
 | 13 | RegisterClass(GravityBombMunition); | 
|---|
 | 14 |  | 
|---|
| [10601] | 15 |     GravityBombMunition::GravityBombMunition(Context* context) : Munition(context) | 
|---|
 | 16 |     { | 
|---|
 | 17 |         RegisterObject(GravityBombMunition); | 
|---|
 | 18 |         this->maxMunitionPerMagazine_ = 1; | 
|---|
 | 19 |         this->maxMagazines_ = 30; | 
|---|
| [11052] | 20 |         this->unassignedMagazines_ = 15; | 
|---|
| [10369] | 21 |  | 
|---|
| [11052] | 22 |         this->deployment_ = MunitionDeployment::Stack; | 
|---|
| [10369] | 23 |  | 
|---|
| [10601] | 24 |         this->bAllowMunitionRefilling_ = true; | 
|---|
 | 25 |         this->bAllowMultiMunitionRemovementUnderflow_ = false; | 
|---|
| [11052] | 26 |  | 
|---|
 | 27 |         this->reloadTime_ = 0.0f; | 
|---|
| [10601] | 28 |     } | 
|---|
| [10369] | 29 |  | 
|---|
| [11052] | 30 |     void GravityBombMunition::XMLPort(Element& xmlelement, XMLPort::Mode mode) | 
|---|
 | 31 |     { | 
|---|
 | 32 |         SUPER(GravityBombMunition, XMLPort, xmlelement, mode); | 
|---|
 | 33 |     } | 
|---|
| [10369] | 34 | } | 
|---|
 | 35 |  | 
|---|
 | 36 |  | 
|---|
 | 37 |  | 
|---|
 | 38 |  | 
|---|
       
      
      Note: See 
TracBrowser
        for help on using the repository browser.