Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 26, 2009, 2:09:40 PM (15 years ago)
Author:
rgrieder
Message:

Fixed bug in HumanController introduced with the virtual functions.

File:
1 edited

Legend:

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

    r6149 r6159  
    9595    }
    9696
     97    void HumanController::moveFrontBack(const Vector2& value)
     98    {
     99        if (HumanController::localController_s)
     100            HumanController::localController_s->frontback(value);
     101    }
     102
    97103    void HumanController::frontback(const Vector2& value)
    98104    {
     
    137143    }
    138144
     145    void HumanController::rotateYaw(const Vector2& value)
     146    {
     147        if (HumanController::localController_s)
     148            HumanController::localController_s->yaw(value);
     149    }
     150
     151    void HumanController::rotatePitch(const Vector2& value)
     152    {
     153        if (HumanController::localController_s)
     154            HumanController::localController_s->pitch(value);
     155    }
     156
    139157    void HumanController::rotateRoll(const Vector2& value)
    140158    {
    141159        if (HumanController::localController_s && HumanController::localController_s->controllableEntity_)
    142160            HumanController::localController_s->controllableEntity_->rotateRoll(value);
     161    }
     162
     163    void HumanController::fire(unsigned int firemode)
     164    {
     165        if (HumanController::localController_s)
     166            HumanController::localController_s->doFire(firemode);
    143167    }
    144168
Note: See TracChangeset for help on using the changeset viewer.