Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 9, 2010, 9:32:58 PM (14 years ago)
Author:
rgrieder
Message:

Removed excess white space at the end of lines.

Location:
code/branches/presentation3/src/modules/weapons
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • code/branches/presentation3/src/modules/weapons/RocketController.cc

    r7021 r7127  
    2828
    2929#include "RocketController.h"
    30 #include "projectiles/SimpleRocket.h" 
     30#include "projectiles/SimpleRocket.h"
    3131#include "util/Math.h"
    3232#include "weapons/projectiles/SimpleRocket.h"
     
    6666            this->moveToTargetPosition();
    6767        }
    68        
    69        
     68
     69
    7070    }
    7171
     
    102102
    103103
    104         if (distance > 1000 && this->rocket_->getVelocity().squaredLength()<160000) 
     104        if (distance > 1000 && this->rocket_->getVelocity().squaredLength()<160000)
    105105            this->rocket_->setAcceleration(this->rocket_->getOrientation()*Vector3(-20,-20,-20));
    106106        if (distance <1000) this->rocket_->setAcceleration(0,0,0);
  • code/branches/presentation3/src/modules/weapons/RocketController.h

    r7039 r7127  
    5050            RocketController(BaseObject* creator);
    5151            virtual ~RocketController();
    52            
     52
    5353            virtual void tick(float dt);
    5454            SimpleRocket* getRocket() const
     
    6464            Vector3 targetPosition_;
    6565            WeakPtr<PlayerInfo> player_;
    66                        
     66
    6767            WeakPtr<WorldEntity> target_;
    6868
  • code/branches/presentation3/src/modules/weapons/projectiles/Rocket.cc

    r7018 r7127  
    167167            this->localAngularVelocity_ = 0;
    168168        }
    169        
     169
    170170        if( GameMode::isMaster() )
    171171        {
    172172            if( this->bDestroy_ )
    173173                this->destroy();
    174            
     174
    175175        }
    176176    }
  • code/branches/presentation3/src/modules/weapons/projectiles/SimpleRocket.cc

    r7025 r7127  
    7171            this->fire_ = new ParticleEmitter(this);
    7272            this->attach(this->fire_);
    73            
     73
    7474            this->fire_->setOrientation(this->getOrientation());
    7575            this->fire_->setSource("Orxonox/simplerocketfire");
     
    9090
    9191
    92    
     92
    9393    /**
    9494    * @brief updates state of rocket, disables fire if no fuel
     
    107107            this->localAngularVelocity_ = 0;
    108108
    109        
     109
    110110            if (this->fuel_)
    111111            {
    112                 if (this->destroyTimer_.getRemainingTime()<  (static_cast<float>(this->FUEL_PERCENTAGE)/100) *this->lifetime_ ) 
     112                if (this->destroyTimer_.getRemainingTime()<  (static_cast<float>(this->FUEL_PERCENTAGE)/100) *this->lifetime_ )
    113113                    this->fuel_=false;
    114114            } else
    115115                this->disableFire();
    116116
    117             if( this->bDestroy_ ) 
     117            if( this->bDestroy_ )
    118118                this->destroy();
    119119        }
    120                
     120
    121121    }
    122122
     
    127127    void SimpleRocket::disableFire()
    128128    {
    129         this->setAcceleration(0,0,0);       
     129        this->setAcceleration(0,0,0);
    130130        this->fire_->detachFromParent();
    131131    }
     
    137137    SimpleRocket::~SimpleRocket()
    138138    {
    139         if (this->isInitialized()) 
     139        if (this->isInitialized())
    140140        {
    141141            if( GameMode::isMaster() )
  • code/branches/presentation3/src/modules/weapons/projectiles/SimpleRocket.h

    r7095 r7127  
    9898            */
    9999            inline void rotatePitch(float value)
    100             {   
     100            {
    101101                this->rotatePitch(Vector2(value, 0)); }
    102102            /**
     
    105105            */
    106106            inline void rotateRoll(float value)
    107             { 
     107            {
    108108                this->rotateRoll(Vector2(value, 0)); }
    109109
     
    124124            Vector3 localAngularVelocity_;
    125125            float damage_;
    126             bool bDestroy_; 
     126            bool bDestroy_;
    127127            bool fuel_; //!< Bool is true while the rocket "has fuel"
    128128
  • code/branches/presentation3/src/modules/weapons/weaponmodes/SimpleRocketFire.cc

    r7095 r7127  
    5454
    5555            this->setMunitionName("TargetSeeking Rockets");
    56             this->setDefaultSoundWithVolume("sounds/Rocket_launch.ogg",0.4); 
     56            this->setDefaultSoundWithVolume("sounds/Rocket_launch.ogg",0.4);
    5757        // The firing sound of the Rocket is played in Rocket.cc (because of OpenAl sound positioning)
    5858    }
Note: See TracChangeset for help on using the changeset viewer.