- Timestamp:
- Oct 27, 2008, 4:08:51 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/objecthierarchy/src/orxonox/objects/controllers/Controller.h
r1993 r2019 39 39 { 40 40 public: 41 Controller( );41 Controller(BaseObject* creator); 42 42 virtual ~Controller(); 43 43 … … 47 47 { return this->player_; } 48 48 49 inline void setPawn(ControllableEntity* pawn)50 { this-> pawn_ = pawn; }51 inline ControllableEntity* getPawn() const52 { return this-> pawn_; }49 virtual inline void setControllableEntity(ControllableEntity* entity) 50 { this->controllableEntity_ = entity; } 51 virtual inline ControllableEntity* getControllableEntity() const 52 { return this->controllableEntity_; } 53 53 54 54 protected: 55 55 PlayerInfo* player_; 56 ControllableEntity* pawn_;56 ControllableEntity* controllableEntity_; 57 57 }; 58 58 }
Note: See TracChangeset
for help on using the changeset viewer.