Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

merged pickup into pickup2

Location:
code/branches/pickups2
Files:
2 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    {
Note: See TracChangeset for help on using the changeset viewer.