Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 29, 2008, 12:25:22 AM (15 years ago)
Author:
rgrieder
Message:

Made return value of WorldEntity::getNode() const —> Modifying the node_ will not anymore be allowed.
That change implicates:

  • Removed Ogre::SceneNode from ParticleInterface. It gets connected now by the ParticleEmitter
  • Added functions attachOgreObject and detachOgreObject to WorldEntity
  • changed all getNode()→attachObject(…) to attachOgreObject(…)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/physics/src/orxonox/objects/worldentities/WorldEntity.h

    r2292 r2296  
    6161            void registerVariables();
    6262
    63             inline Ogre::SceneNode* getNode() const
     63            inline const Ogre::SceneNode* getNode() const
    6464                { return this->node_; }
    6565
     
    145145                { return this->children_; }
    146146
     147            inline void attachOgreObject(Ogre::MovableObject* object)
     148                { this->node_->attachObject(object); }
     149            inline void detachOgreObject(Ogre::MovableObject* object)
     150                { this->node_->detachObject(object); }
     151            inline Ogre::MovableObject* detachOgreObject(const Ogre::String& name)
     152                { return this->node_->detachObject(name); }
     153
    147154            inline void attachToParent(WorldEntity* parent)
    148155                { parent->attach(this); }
Note: See TracChangeset for help on using the changeset viewer.