Changeset 10215 for code/branches/presentationFS14/src/orxonox/controllers
- Timestamp:
- Jan 31, 2015, 5:31:23 PM (10 years ago)
- Location:
- code/branches/presentationFS14/src/orxonox/controllers
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentationFS14/src/orxonox/controllers/ControllerDirector.cc
r10077 r10215 106 106 } 107 107 108 109 108 bool ControllerDirector::preparationToTakeControl(BaseObject * trigger) 110 109 { … … 130 129 } 131 130 132 133 131 this->entity_ = this->player_->getControllableEntity(); 132 assert(this->entity_); 134 133 135 134 return true; -
code/branches/presentationFS14/src/orxonox/controllers/ControllerDirector.h
r10076 r10215 45 45 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode); 46 46 bool party(bool bTriggered, BaseObject* trigger); 47 48 49 47 virtual void XMLEventPort(Element& xmlelement, XMLPort::Mode mode); 48 49 50 50 /* Take over control of a given object */ 51 52 51 void takeControl(Controller * controller, BaseObject * trigger); 52 bool preparationToTakeControl(BaseObject * trigger); 53 53 54 54 // currently unused 55 //void setNewController(Controller * controller); 56 57 55 //void setNewController(Controller * controller); 58 56 59 57 private: 60 61 58 PlayerInfo* player_; 62 59 ControllableEntity* entity_; 63 60 PlayerTrigger * pTrigger_; 64 61 Context* context_; 65 66 67 62 }; 68 63 }
Note: See TracChangeset
for help on using the changeset viewer.