Changeset 6417 for code/trunk/src/orxonox/controllers/Controller.h
- Timestamp:
 - Dec 25, 2009, 10:23:58 PM (16 years ago)
 - Location:
 - code/trunk
 - Files:
 - 
          
- 2 edited
 
- 
          . (modified) (1 prop)
 - 
          src/orxonox/controllers/Controller.h (modified) (3 diffs)
 
 
Legend:
- Unmodified
 - Added
 - Removed
 
- 
        
code/trunk
- Property svn:mergeinfo changed
 
 - 
        
code/trunk/src/orxonox/controllers/Controller.h
r5781 r6417 37 37 class _OrxonoxExport Controller : public BaseObject 38 38 { 39 // set friend classes to access setControllableEntity 40 friend class PlayerInfo; 41 friend class ControllableEntity; 42 39 43 public: 40 44 Controller(BaseObject* creator); … … 46 50 { return this->player_; } 47 51 52 virtual inline void hit(Pawn* originator, btManifoldPoint& contactpoint, float damage) {}; 53 54 void setGodMode( bool mode ){ this->bGodMode_ = mode; } 55 bool getGodMode(){ return this->bGodMode_; } 56 57 inline ControllableEntity* getControllableEntity() const 58 { return this->controllableEntity_; } 59 virtual void changedControllableEntity() {} 60 61 protected: 62 // don't use this directly, use getPlayer()->startControl(entity) (unless you know exactly what you do) 48 63 inline void setControllableEntity(ControllableEntity* entity) 49 64 { … … 54 69 } 55 70 } 56 inline ControllableEntity* getControllableEntity() const57 { return this->controllableEntity_; }58 virtual void changedControllableEntity() {}59 71 60 72 protected: 61 73 PlayerInfo* player_; 62 74 ControllableEntity* controllableEntity_; 75 private: 76 bool bGodMode_; 63 77 }; 64 78 }  
Note: See TracChangeset
          for help on using the changeset viewer.
      


            






