Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 26, 2016, 4:53:34 PM (8 years ago)
Author:
fvultier
Message:

merged discharger, thats the last one

Location:
code/branches/presentationFS16
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/presentationFS16

  • code/branches/presentationFS16/src/orxonox/controllers/NewHumanController.cc

    r11071 r11208  
    5454    SetConsoleCommand("NewHumanController", "accelerate", &NewHumanController::accelerate).keybindMode(KeybindMode::OnPress);
    5555    SetConsoleCommand("NewHumanController", "decelerate", &NewHumanController::decelerate).keybindMode(KeybindMode::OnPress);
    56     SetConsoleCommand("NewHumanController", "unfire",     &NewHumanController::unfire    ).keybindMode(KeybindMode::OnRelease).addShortcut();
    5756
    5857    RegisterUnloadableClass(NewHumanController);
     
    277276    }
    278277
    279     void NewHumanController::doFire(unsigned int firemode)
     278    void NewHumanController::doPush(unsigned int firemode)
    280279    {
    281280        if (!this->controllableEntity_)
     
    291290        }
    292291        else
    293             HumanController::doFire(firemode); //call for formationflight
     292        {
     293            HumanController::doPush(firemode); //call for formationflight
     294        }
     295    }
     296
     297    void NewHumanController::doRelease(unsigned int firemode)
     298    {
     299        if (!this->controllableEntity_)
     300            return;
     301
     302        this->firemode_ = firemode;
     303
     304        HumanController::doRelease(firemode); //call for formationflight
    294305    }
    295306
     
    342353            }
    343354        }
    344     }
    345 
    346     void NewHumanController::unfire()
    347     {
    348         if (NewHumanController::localController_s)
    349             NewHumanController::localController_s->doUnfire();
    350     }
    351 
    352     void NewHumanController::doUnfire()
    353     {
    354         this->firemode_ = -1;
    355         hideArrows();
    356355    }
    357356
Note: See TracChangeset for help on using the changeset viewer.