Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 25, 2009, 8:30:15 PM (15 years ago)
Author:
landauf
Message:

merged pickups2 branch back to trunk. not yet tested.

Location:
code/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/trunk

  • code/trunk/src/orxonox/objects/controllers/HumanController.h

    r3053 r3073  
    3434#include "util/Math.h"
    3535#include "Controller.h"
     36#include "objects/worldentities/pawns/Pawn.h"
    3637
    3738namespace orxonox
     
    5657            static void boost();
    5758            static void greet();
    58             static void use();
    5959            static void switchCamera();
    6060            static void mouseLook();
    6161            static void dropItems();
     62            static void useItem();
    6263
    6364            static void suicide();
     
    6566            static void addBots(unsigned int amount);
    6667            static void killBots(unsigned int amount = 0);
     68
     69            static inline HumanController* getLocalControllerSingleton()
     70                { return HumanController::localController_s; }
     71            static inline Pawn* getLocalControllerEntityAsPawn()
     72            {
     73                if (HumanController::localController_s) {
     74                    return dynamic_cast<Pawn*>(HumanController::localController_s->getControllableEntity());
     75                } else {
     76                    return NULL;
     77                }
     78            }
    6779
    6880        private:
Note: See TracChangeset for help on using the changeset viewer.