Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Sep 27, 2015, 10:03:53 PM (9 years ago)
Author:
landauf
Message:

cleanup: empty level is empty again & tabs→spaces.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/weaponFS15/src/modules/weapons/weaponmodes/GravityBombFire.cc

    r10503 r10601  
    1717namespace orxonox
    1818{
    19         RegisterClass(GravityBombFire);
     19    RegisterClass(GravityBombFire);
    2020
    21         const float GravityBombFire::BOMB_VELOCITY = 600.0; ///< The velocity of the bomb after launch
     21    const float GravityBombFire::BOMB_VELOCITY = 600.0; ///< The velocity of the bomb after launch
    2222
    23         GravityBombFire::GravityBombFire(Context* context) : WeaponMode(context)
    24         {
    25                 RegisterObject(GravityBombFire);
     23    GravityBombFire::GravityBombFire(Context* context) : WeaponMode(context)
     24    {
     25        RegisterObject(GravityBombFire);
    2626
    27                 this->reloadTime_ = 0.50f;
    28                 this->bParallelReload_ = false;
    29                 this->damage_ = 20.0f;  ///< The damage of the Bomb if it hits a pawn.
     27        this->reloadTime_ = 0.50f;
     28        this->bParallelReload_ = false;
     29        this->damage_ = 20.0f;  ///< The damage of the Bomb if it hits a pawn.
    3030
    31                 this->setMunitionName("GravityBombMunition");
    32                 this->setDefaultSoundWithVolume("sounds/Rocket_launch.ogg",0.8);        ///< sets sound of the bomb as it is fired.
    33         }
     31        this->setMunitionName("GravityBombMunition");
     32        this->setDefaultSoundWithVolume("sounds/Rocket_launch.ogg",0.8);    ///< sets sound of the bomb as it is fired.
     33    }
    3434
    35         GravityBombFire::~GravityBombFire(){};
     35    GravityBombFire::~GravityBombFire(){};
    3636
    37         void GravityBombFire::fire()
    38         {
    39                 GravityBomb* bomb = new GravityBomb(this->getContext());
     37    void GravityBombFire::fire()
     38    {
     39        GravityBomb* bomb = new GravityBomb(this->getContext());
    4040        //Create a new Bomb in 3D-Space and set the right direction speed and orientation.
    41                 this->computeMuzzleParameters(this->getWeapon()->getWeaponPack()->getWeaponSystem()->getPawn()->getAimPosition());
     41        this->computeMuzzleParameters(this->getWeapon()->getWeaponPack()->getWeaponSystem()->getPawn()->getAimPosition());
    4242        bomb->setOrientation(this->getMuzzleOrientation());
    4343        bomb->setPosition(this->getMuzzlePosition());
    4444        bomb->setVelocity(this->getMuzzleDirection() * (this->BOMB_VELOCITY+this->getWeapon()->getWeaponPack()->getWeaponSystem()->getPawn()->getVelocity().length()));
    4545
    46                 //Set the shooter of the bomb so it is possible to determine the pawn that killed another one and define damage to shield and healt the bomb does.
     46        //Set the shooter of the bomb so it is possible to determine the pawn that killed another one and define damage to shield and healt the bomb does.
    4747        bomb->setShooter(this->getWeapon()->getWeaponPack()->getWeaponSystem()->getPawn());
    48                 bomb->setDamage(this->getDamage());
    49                 bomb->setShieldDamage(this->getShieldDamage());
    50                 bomb->setHealthDamage(this->getHealthDamage());
    51         }
     48        bomb->setDamage(this->getDamage());
     49        bomb->setShieldDamage(this->getShieldDamage());
     50        bomb->setHealthDamage(this->getHealthDamage());
     51    }
    5252
    5353
Note: See TracChangeset for help on using the changeset viewer.