Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 621 for code/branches/FICN/src


Ignore:
Timestamp:
Dec 18, 2007, 6:00:40 PM (17 years ago)
Author:
nicolasc
Message:

don't access variables directly!!

Location:
code/branches/FICN/src/orxonox
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/FICN/src/orxonox/objects/SpaceShip.cc

    r614 r621  
    107107
    108108        w = new particle::ParticleInterface(Orxonox::getSingleton()->getSceneManager(),"schuss" + this->getName(),"Orxonox/schuss");
    109         w->particleSystem_->setParameter("local_space","true");
     109        w->getParticleSystem()->setParameter("local_space","true");
    110110        w->newEmitter();
    111111/*
     
    125125
    126126        tt = new particle::ParticleInterface(Orxonox::getSingleton()->getSceneManager(),"twinthruster" + this->getName(),"Orxonox/engineglow");
    127         tt->particleSystem_->setParameter("local_space","true");
     127        tt->getParticleSystem()->setParameter("local_space","true");
    128128        tt->newEmitter();
    129129/*
  • code/branches/FICN/src/orxonox/particle/ParticleInterface.h

    r618 r621  
    1818{
    1919 public:
    20         Ogre::ParticleSystem *particleSystem_;
    2120
    2221        ParticleInterface( Ogre::SceneManager *sceneManager, Ogre::String name, Ogre::String templateName );
     
    4039        void switchEnable( void );
    4140
     41  Ogre::ParticleSystem* getParticleSystem() {return this->particleSystem_; };
     42
    4243 private:
    4344        Ogre::SceneNode *sceneNode_;
    4445        Ogre::SceneManager *sceneManager_;
     46  Ogre::ParticleSystem *particleSystem_;
    4547        Ogre::Real distance_;
    4648        Ogre::Real velocity_;
Note: See TracChangeset for help on using the changeset viewer.