Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 15, 2009, 5:03:58 PM (16 years ago)
Author:
landauf
Message:

merged pickup into pickup2

Location:
code/branches/pickups2
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • code/branches/pickups2

  • code/branches/pickups2/src/orxonox/objects/controllers/HumanController.cc

    r2872 r2917  
    4949    SetConsoleCommand(HumanController, boost,         true).keybindMode(KeybindMode::OnHold);
    5050    SetConsoleCommand(HumanController, greet,         true);
    51     SetConsoleCommand(HumanController, use,           true);
    5251    SetConsoleCommand(HumanController, switchCamera,  true);
    5352    SetConsoleCommand(HumanController, mouseLook,     true);
     
    5655    SetConsoleCommand(HumanController, killBots,      true).defaultValues(0);
    5756    SetConsoleCommand(HumanController, dropItems,     true);
     57    SetConsoleCommand(HumanController, useItem,       true);
    5858
    5959    CreateUnloadableFactory(HumanController);
     
    133133    }
    134134
    135     void HumanController::use()
    136     {
    137         if (HumanController::localController_s && HumanController::localController_s->controllableEntity_)
    138             HumanController::localController_s->controllableEntity_->use();
    139     }
    140 
    141135    void HumanController::switchCamera()
    142136    {
     
    163157    }
    164158
     159    void HumanController::useItem()
     160    {
     161        if (HumanController::localController_s && HumanController::localController_s->controllableEntity_)
     162            HumanController::localController_s->controllableEntity_->useItem();
     163    }
     164
    165165    void HumanController::addBots(unsigned int amount)
    166166    {
  • code/branches/pickups2/src/orxonox/objects/controllers/HumanController.h

    r2662 r2917  
    5656            static void boost();
    5757            static void greet();
    58             static void use();
    5958            static void switchCamera();
    6059            static void mouseLook();
    6160            static void dropItems();
     61            static void useItem();
    6262
    6363            static void suicide();
Note: See TracChangeset for help on using the changeset viewer.