Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 14, 2016, 4:02:00 PM (9 years ago)
Author:
sagerj
Message:

today I got pawn'ed

Location:
code/branches/sagerjFS16/src/orxonox/controllers
Files:
3 edited

Legend:

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

    r11164 r11166  
    159159    void HumanController::fire(unsigned int firemode)
    160160    {
     161        orxout() << "fire hc " << firemode << endl;
    161162        if (HumanController::localController_s)
    162163            HumanController::localController_s->doFire(firemode);
     
    165166    void HumanController::doFire(unsigned int firemode)
    166167    {
     168        orxout() << "do fire hc " << firemode << endl;
    167169        if (HumanController::localController_s && HumanController::localController_s->controllableEntity_)
    168170        {
     
    178180    void HumanController::release(unsigned int firemode)
    179181    {
    180         orxout() << "HumanController " << firemode << endl;
     182        orxout() << "release hc " << firemode << endl;
    181183        if (HumanController::localController_s)
    182184            HumanController::localController_s->doRelease(firemode);
     
    185187    void HumanController::doRelease(unsigned int firemode)
    186188    {
     189        orxout() << "do release hc " << firemode << endl;
    187190        if (HumanController::localController_s && HumanController::localController_s->controllableEntity_)
    188191        {
  • code/branches/sagerjFS16/src/orxonox/controllers/NewHumanController.cc

    r11164 r11166  
    5454    SetConsoleCommand("NewHumanController", "accelerate", &NewHumanController::accelerate).keybindMode(KeybindMode::OnPress);
    5555    SetConsoleCommand("NewHumanController", "decelerate", &NewHumanController::decelerate).keybindMode(KeybindMode::OnPress);
    56     //SetConsoleCommand("NewHumanController", "release",    &NewHumanController::release   ).keybindMode(KeybindMode::OnRelease).addShortcut();
    5756
    5857    RegisterUnloadableClass(NewHumanController);
     
    286285        if (firemode == 1 && this->controlMode_ == 1)
    287286        {
     287            orxout() << "do fire nhc if " << firemode << endl;
    288288            //unlocked steering, steer on right mouse click
    289289            HumanController::yaw(Vector2(this->currentYaw_, 0));
     
    291291        }
    292292        else
     293        {
     294            orxout() << "do fire nhc else " << firemode << endl;
    293295            HumanController::doFire(firemode); //call for formationflight
    294     }
    295 
    296     /*void NewHumanController::release(unsigned int firemode)
    297     {
    298         if (NewHumanController::localController_s)
    299             NewHumanController::localController_s->doRelease(firemode);
    300         orxout() << "Trigger " << firemode << endl;
    301     }
    302 
    303     /void NewHumanController::doRelease(unsigned int firemode)
    304     {
    305         // this->firemode_ = -1; (outdated code from unfire)
    306         // hideArrows();
     296        }
     297    }
     298
     299    void NewHumanController::doRelease(unsigned int firemode)
     300    {
     301        orxout() << "do release nhc" << firemode << endl;
    307302        if (!this->controllableEntity_)
    308303            return;
     
    311306
    312307        HumanController::doRelease(firemode); //call for formationflight
    313     }*/
     308    }
    314309
    315310    void NewHumanController::hit(Pawn* originator, btManifoldPoint& contactpoint, float damage)
  • code/branches/sagerjFS16/src/orxonox/controllers/NewHumanController.h

    r11164 r11166  
    5555
    5656            virtual void doFire(unsigned int firemode) override;
    57             /*virtual void release(unsigned int firemode);
    58             virtual void doRelease(unsigned int firemode);*/
     57            virtual void doRelease(unsigned int firemode) override;
    5958
    6059            virtual void hit(Pawn* originator, btManifoldPoint& contactpoint, float damage) override;
Note: See TracChangeset for help on using the changeset viewer.