Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 13, 2017, 5:25:09 PM (7 years ago)
Author:
kohlia
Message:

Figuring out when the different things are ready in orxonox

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  
    3636
    3737#include "Scene.h"
     38#include "Level.h"
     39#include "scriptablecontroller/scriptable_controller.h"
    3840
    3941namespace orxonox
     
    113115
    114116        this->node_->setPosition(position);
     117        this->getLevel()->getScriptableController()->objectMoved(this);
    115118    }
    116119
  • code/branches/ScriptableController_HS17/src/orxonox/worldentities/WorldEntity.cc

    r11518 r11562  
    184184        // Attached collision shapes
    185185        XMLPortObject(WorldEntity, CollisionShape, "collisionShapes", attachCollisionShape, getAttachedCollisionShape, xmlelement, mode);
     186
     187        orxout(user_info) << "ID loaded" << std::endl;
    186188    }
    187189
     
    280282    void WorldEntity::registerToScriptableController(ScriptableController *controller)
    281283    {
     284        orxout(user_info) << "Registering object to SC (" << this->id_ << ")" << std::endl;
    282285        controller->registerWorldEntity(this->id_, this);
    283286    }
  • code/branches/ScriptableController_HS17/src/orxonox/worldentities/WorldEntity.h

    r11518 r11562  
    110110            virtual void changedActivity(void) override;
    111111            virtual void changedVisibility(void) override;
     112
     113            inline int getID(void)
     114                { return this->id_; }
    112115
    113116            inline void setID(int id)
Note: See TracChangeset for help on using the changeset viewer.