- Timestamp:
- Nov 20, 2009, 5:20:11 PM (15 years ago)
- Location:
- code/branches/presentation2
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentation2
- Property svn:mergeinfo changed
/code/branches/particles2 (added) merged: 6050,6059,6065-6068,6076,6078-6082,6086-6087,6098-6099,6101
- Property svn:mergeinfo changed
-
code/branches/presentation2/src/orxonox/controllers/Controller.h
r5781 r6107 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 inline ControllableEntity* getControllableEntity() const 53 { return this->controllableEntity_; } 54 virtual void changedControllableEntity() {} 55 56 protected: 57 // don't use this directly, use getPlayer()->startControl(entity) (unless you know exactly what you do) 48 58 inline void setControllableEntity(ControllableEntity* entity) 49 59 { … … 54 64 } 55 65 } 56 inline ControllableEntity* getControllableEntity() const57 { return this->controllableEntity_; }58 virtual void changedControllableEntity() {}59 66 60 protected:61 67 PlayerInfo* player_; 62 68 ControllableEntity* controllableEntity_;
Note: See TracChangeset
for help on using the changeset viewer.