Changeset 11928 for code/branches/ScriptableController_FS18
- Timestamp:
- May 3, 2018, 1:46:20 PM (7 years ago)
- Location:
- code/branches/ScriptableController_FS18
- Files:
-
- 12 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/ScriptableController_FS18/src/orxonox/scriptablecontroller/scriptable_controller_api.cc
r11911 r11928 152 152 Identifiable *obj = identifier->fabricate(this->controller_->getWorldEntityByID("Player")->getContext()); 153 153 154 orxout(user_error) << "First hit!" << std::endl; 155 154 156 if(obj->isA(ClassIdentifier<WorldEntity>::getIdentifier())) 155 157 { … … 173 175 } 174 176 177 orxout(user_error) << "Second hit!" << std::endl; 178 175 179 if(entity->isA(ClassIdentifier<MobileEntity>::getIdentifier())) 176 180 this->controller_->registerMobileEntity(id, orxonox_cast<MobileEntity*>(entity)); … … 180 184 181 185 this->controller_->registerWorldEntity(id, orxonox_cast<WorldEntity*>(entity)); 186 187 orxout(user_error) << "Third and final hit!" << std::endl; 182 188 } 183 189 … … 379 385 } 380 386 387 388 389 390 381 391 void ScriptableControllerAPI::moveControllableEntity(std::string id, double x, double y, double z) 382 392 { … … 387 397 return; 388 398 } 389 390 391 399 392 400 … … 395 403 ControllableEntity *controllable_entity; 396 404 405 397 406 if(identifier->isA(ClassIdentifier<ControllableEntity>::getIdentifier())) 398 407 { 399 408 controllable_entity = orxonox_cast<ControllableEntity*>(entity); 409 410 orxout(user_warning) << "Accessed " << id << std::endl; 400 411 401 412 controllable_entity->moveFrontBack(x);
Note: See TracChangeset
for help on using the changeset viewer.