- Timestamp:
- Dec 9, 2008, 2:16:49 AM (16 years ago)
- Location:
- code/branches/objecthierarchy2/src/orxonox/objects/controllers
- Files:
-
- 6 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/objecthierarchy2/src/orxonox/objects/controllers/CMakeLists.txt
r2131 r2362 2 2 Controller.cc 3 3 HumanController.cc 4 ArtificialController.cc 5 AIController.cc 6 ScriptController.cc 4 7 ) 5 8 -
code/branches/objecthierarchy2/src/orxonox/objects/controllers/Controller.h
r2087 r2362 47 47 { return this->player_; } 48 48 49 virtual inline void setControllableEntity(ControllableEntity* entity) 50 { this->controllableEntity_ = entity; } 51 virtual inline ControllableEntity* getControllableEntity() const 49 inline void setControllableEntity(ControllableEntity* entity) 50 { 51 if (entity != this->controllableEntity_) 52 { 53 this->controllableEntity_ = entity; 54 this->changedControllableEntity(); 55 } 56 } 57 inline ControllableEntity* getControllableEntity() const 52 58 { return this->controllableEntity_; } 59 virtual void changedControllableEntity() {} 53 60 54 61 protected:
Note: See TracChangeset
for help on using the changeset viewer.