- Timestamp:
- Nov 13, 2017, 5:25:09 PM (7 years ago)
- Location:
- code/branches/ScriptableController_HS17/src/orxonox/worldentities
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/ScriptableController_HS17/src/orxonox/worldentities/MobileEntity.cc
r11071 r11562 36 36 37 37 #include "Scene.h" 38 #include "Level.h" 39 #include "scriptablecontroller/scriptable_controller.h" 38 40 39 41 namespace orxonox … … 113 115 114 116 this->node_->setPosition(position); 117 this->getLevel()->getScriptableController()->objectMoved(this); 115 118 } 116 119 -
code/branches/ScriptableController_HS17/src/orxonox/worldentities/WorldEntity.cc
r11518 r11562 184 184 // Attached collision shapes 185 185 XMLPortObject(WorldEntity, CollisionShape, "collisionShapes", attachCollisionShape, getAttachedCollisionShape, xmlelement, mode); 186 187 orxout(user_info) << "ID loaded" << std::endl; 186 188 } 187 189 … … 280 282 void WorldEntity::registerToScriptableController(ScriptableController *controller) 281 283 { 284 orxout(user_info) << "Registering object to SC (" << this->id_ << ")" << std::endl; 282 285 controller->registerWorldEntity(this->id_, this); 283 286 } -
code/branches/ScriptableController_HS17/src/orxonox/worldentities/WorldEntity.h
r11518 r11562 110 110 virtual void changedActivity(void) override; 111 111 virtual void changedVisibility(void) override; 112 113 inline int getID(void) 114 { return this->id_; } 112 115 113 116 inline void setID(int id)
Note: See TracChangeset
for help on using the changeset viewer.