Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 21, 2016, 3:33:48 PM (9 years ago)
Author:
sagerj
Message:

running backup

Location:
code/branches/sagerjFS16/src/orxonox
Files:
10 edited

Legend:

Unmodified
Added
Removed
  • code/branches/sagerjFS16/src/orxonox/controllers/HumanController.cc

    r11166 r11170  
    159159    void HumanController::fire(unsigned int firemode)
    160160    {
    161         orxout() << "fire hc " << firemode << endl;
    162161        if (HumanController::localController_s)
    163162            HumanController::localController_s->doFire(firemode);
     
    166165    void HumanController::doFire(unsigned int firemode)
    167166    {
    168         orxout() << "do fire hc " << firemode << endl;
    169167        if (HumanController::localController_s && HumanController::localController_s->controllableEntity_)
    170168        {
     
    180178    void HumanController::release(unsigned int firemode)
    181179    {
    182         orxout() << "release hc " << firemode << endl;
    183180        if (HumanController::localController_s)
    184181            HumanController::localController_s->doRelease(firemode);
     
    187184    void HumanController::doRelease(unsigned int firemode)
    188185    {
    189         orxout() << "do release hc " << firemode << endl;
    190186        if (HumanController::localController_s && HumanController::localController_s->controllableEntity_)
    191187        {
  • code/branches/sagerjFS16/src/orxonox/controllers/NewHumanController.cc

    r11166 r11170  
    285285        if (firemode == 1 && this->controlMode_ == 1)
    286286        {
    287             orxout() << "do fire nhc if " << firemode << endl;
    288287            //unlocked steering, steer on right mouse click
    289288            HumanController::yaw(Vector2(this->currentYaw_, 0));
     
    292291        else
    293292        {
    294             orxout() << "do fire nhc else " << firemode << endl;
    295293            HumanController::doFire(firemode); //call for formationflight
    296294        }
     
    299297    void NewHumanController::doRelease(unsigned int firemode)
    300298    {
    301         orxout() << "do release nhc" << firemode << endl;
    302299        if (!this->controllableEntity_)
    303300            return;
  • code/branches/sagerjFS16/src/orxonox/weaponsystem/Weapon.cc

    r11166 r11170  
    114114        // Note: The reloading of each WeaponMode is internally handled by each A, B and C.
    115115        //       The reloading of the weapon is only performed to avoid firing with different modes at the same time.
    116         orxout() << "fire weapon " << mode << endl;
     116   
     117   
    117118        if (this->bReloading_ && this->reloadingWeaponmode_ != mode)
    118119            return;
     
    137138    void Weapon::release(unsigned int mode)
    138139    {
    139         orxout() << "release weapon " << mode << endl;
    140140        if (this->bReloading_ && this->reloadingWeaponmode_ != mode)
    141141            return;
  • code/branches/sagerjFS16/src/orxonox/weaponsystem/WeaponMode.cc

    r11166 r11170  
    121121    {
    122122        (*reloadTime) = this->reloadTime_;
    123         orxout() << "fire wm " << reloadTime << endl;
    124123        // Fireing is only possible if this weapon mode is not reloading and there is enough munition
    125124        if (!this->bReloading_ && this->munition_ && this->munition_->takeMunition(this->munitionPerShot_, this))
     
    171170    bool WeaponMode::release(float* reloadTime)
    172171    {
    173         orxout() << "release wm " << reloadTime << endl;
     172        this->release();
    174173        return false;
    175174    }
  • code/branches/sagerjFS16/src/orxonox/weaponsystem/WeaponMode.h

    r11166 r11170  
    165165
    166166            virtual void fire() = 0;
     167            virtual void release() {};
    167168
    168169            unsigned int initialMunition_;
  • code/branches/sagerjFS16/src/orxonox/weaponsystem/WeaponPack.cc

    r11166 r11170  
    7676    void WeaponPack::fire(unsigned int weaponmode)
    7777    {
    78         orxout() << "fire wp " << weaponmode << endl;
    7978        for (Weapon* weapon : this->weapons_)
    8079            weapon->fire(weaponmode);
     
    8382    void WeaponPack::release(unsigned int weaponmode)
    8483    {
    85         orxout() << "release wp " << weaponmode << endl;
    8684        for (Weapon* weapon : this->weapons_)
    8785            weapon->release(weaponmode);
  • code/branches/sagerjFS16/src/orxonox/weaponsystem/WeaponSet.cc

    r11166 r11170  
    6363    {
    6464        // Fire all WeaponPacks with their defined weaponmode
    65         orxout() << "fire wset " << endl;
    6665        for (const auto& mapEntry : this->weaponpacks_)
    6766            if (mapEntry.second != WeaponSystem::WEAPON_MODE_UNASSIGNED)
     
    7271    {
    7372        // Fire all WeaponPacks with their defined weaponmode
    74         orxout() << "release wset " << endl;
    7573        for (const auto& mapEntry : this->weaponpacks_)
    7674            if (mapEntry.second != WeaponSystem::WEAPON_MODE_UNASSIGNED)
  • code/branches/sagerjFS16/src/orxonox/weaponsystem/WeaponSystem.cc

    r11166 r11170  
    289289    void WeaponSystem::fire(unsigned int firemode)
    290290    {
    291         orxout() << "fire wsys " << firemode << endl;
    292291        std::map<unsigned int, WeaponSet *>::iterator it = this->weaponSets_.find(firemode);
    293292        if (it != this->weaponSets_.end() && it->second)
     
    297296    void WeaponSystem::release(unsigned int firemode)
    298297    {
    299         orxout() << "release wsys " << firemode << endl;
    300298        std::map<unsigned int, WeaponSet *>::iterator it = this->weaponSets_.find(firemode);
    301299        if (it != this->weaponSets_.end() && it->second)
  • code/branches/sagerjFS16/src/orxonox/worldentities/ControllableEntity.cc

    r11166 r11170  
    303303        if(GameMode::isMaster())
    304304        {
    305             orxout() << "fire ce if " << firemode << endl;
    306305            this->fired(firemode);
    307306        }
    308307        else
    309308        {
    310             orxout() << "fire ce else " << firemode << endl;
    311309            callMemberNetworkFunction(&ControllableEntity::fire, this->getObjectID(), 0, firemode);
    312310        }
     
    317315        if(GameMode::isMaster())
    318316        {
    319             orxout() << "release ce if " << firemode << endl;
    320317            this->released(firemode);
    321318        }
    322319        else
    323320        {
    324             orxout() << "release ce else " << firemode << endl;
    325321            callMemberNetworkFunction(&ControllableEntity::fire, this->getObjectID(), 0, firemode);
    326322        }
  • code/branches/sagerjFS16/src/orxonox/worldentities/pawns/Pawn.cc

    r11166 r11170  
    430430    void Pawn::fired(unsigned int firemode)
    431431    {
    432         orxout() << "fired pawn " << firemode << endl;
    433432        if (this->weaponSystem_)
    434433            this->weaponSystem_->fire(firemode);
     
    437436    void Pawn::released(unsigned int firemode)
    438437    {
    439         orxout() << "released pawn " << firemode << endl;
    440438        if (this->weaponSystem_)
    441439            this->weaponSystem_->release(firemode);
Note: See TracChangeset for help on using the changeset viewer.