Changeset 3001 for code/branches/pickups2/src/orxonox/objects/controllers
- Timestamp:
- May 20, 2009, 9:01:17 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/pickups2/src/orxonox/objects/controllers/HumanController.h
r2972 r3001 34 34 #include "util/Math.h" 35 35 #include "Controller.h" 36 #include "objects/worldentities/pawns/Pawn.h" 36 37 37 38 namespace orxonox … … 68 69 static inline HumanController* getLocalControllerSingleton() 69 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 } 70 79 71 80 private:
Note: See TracChangeset
for help on using the changeset viewer.