- Timestamp:
- Dec 19, 2007, 11:08:56 PM (17 years ago)
- Location:
- code/branches/FICN
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/FICN/bin/levels/sample.oxw
r655 r658 20 20 <ogg src="tha_silent_partner_-_void" /> 21 21 </ambient> 22 </audio> 22 </audio> 23 23 24 24 <!-- Keep a minimum distance of >100 to the object, otherwise the camara thinks it's in the object --> … … 41 41 <NPC position="100,0,400" scale="1" mesh="razor.mesh"/> 42 42 43 <!--<Model position="200,0,500" scale="10" mesh="starship.mesh" yaw="-90" pitch="-90" />44 <Model position="-200,0,500" scale="10" mesh="drone.mesh" yaw="-90" pitch="-90" /> -->43 <Model position="200,0,500" scale="10" mesh="starship.mesh" yaw="-90" pitch="-90" /> 44 <Model position="-200,0,500" scale="10" mesh="drone.mesh" yaw="-90" pitch="-90" /> 45 45 46 46 <Model position="-200,1000,500" scale="10" mesh="hoover_body.mesh" yaw="-90" pitch="-90" /> -
code/branches/FICN/src/network/ClientConnection.h
r657 r658 28 28 #define NETWORK_PORT 55556 29 29 #define NETWORK_CLIENT_MAX_CONNECTIONS 5 30 #define NETWORK_CLIENT_TIMEOUT 10 x30 #define NETWORK_CLIENT_TIMEOUT 10 31 31 #define NETWORK_SEND_WAIT 5 32 32 #define NETWORK_CLIENT_CHANNELS 2 -
code/branches/FICN/src/orxonox/particle/ParticleInterface.cc
r647 r658 24 24 * ... 25 25 * 26 */ 27 28 /** 29 * @file ParticleInterface.cc 30 * @brief class to control praticle effects 26 31 */ 27 32 … … 70 75 } 71 76 72 void ParticleInterface::addToSceneNode( SceneNode* sceneNode )73 {74 sceneNode_ = sceneNode;75 sceneNode_->attachObject(particleSystem_);76 }77 78 void ParticleInterface::detachFromSceneNode ( void )79 {80 sceneNode_->detachObject(particleSystem_);81 sceneNode_ = NULL;82 }83 84 Real ParticleInterface::getVelocity()85 {86 return velocity_;87 }88 89 77 void ParticleInterface::setVelocity(Real v) 90 78 { … … 94 82 } 95 83 96 int ParticleInterface::getRate()97 {98 return rate_;99 }100 84 void ParticleInterface::setRate(int r) 101 85 { … … 107 91 } 108 92 109 Real ParticleInterface::getDistance()110 {111 return distance_;112 }113 114 93 void ParticleInterface::setDistance(Real d) 115 94 { … … 119 98 particleSystem_->getEmitter(i)->setTimeToLive(distance_); 120 99 } 121 }122 ColourValue ParticleInterface::getColour()123 {124 return colour_;125 100 } 126 101 … … 147 122 } 148 123 149 void ParticleInterface::setPositionOfEmitter ( int emitterNr, Vector3 position ) 150 { 151 particleSystem_->getEmitter(emitterNr)->setPosition(position); 152 } 153 124 // TODO check if this really works 154 125 Vector3 ParticleInterface::getPositionOfEmitter ( int emitterNr ) 155 126 { … … 164 135 } 165 136 166 167 Vector3 ParticleInterface::getDirection ( void )168 {169 return particleSystem_->getEmitter(0)->getDirection();170 }171 172 137 void ParticleInterface::switchEnable(){ 173 138 bool enable=(!(particleSystem_->getEmitter(0)->getEnabled())); -
code/branches/FICN/src/orxonox/particle/ParticleInterface.h
r646 r658 21 21 ParticleInterface( Ogre::SceneManager *sceneManager, Ogre::String name, Ogre::String templateName ); 22 22 ~ParticleInterface( void ); 23 void addToSceneNode( Ogre::SceneNode* sceneNode ); 24 void detachFromSceneNode( void ); 23 24 void inline addToSceneNode( Ogre::SceneNode* sceneNode ) { sceneNode_ = sceneNode; sceneNode_->attachObject(particleSystem_);}; 25 void inline detachFromSceneNode( void ) { sceneNode_->detachObject(particleSystem_); sceneNode_ = NULL;}; 26 25 27 Ogre::ParticleEmitter* getEmitter ( int emitterNr ); 26 28 void newEmitter ( void ); 27 void setPositionOfEmitter ( int emitterNr, Ogre::Vector3 position ); 28 Ogre::Vector3 getPositionOfEmitter ( int emitterNr ); 29 30 Ogre::Vector3 getPositionOfEmitter ( int emitterNr ); 31 inline void setPositionOfEmitter ( int emitterNr, Ogre::Vector3 position ) { particleSystem_->getEmitter(emitterNr)->setPosition(position); }; 32 33 inline Ogre::Vector3 getDirection ( void ) { return particleSystem_->getEmitter(0)->getDirection(); }; 29 34 void setDirection ( Ogre::Vector3 direction ); 30 Ogre::Vector3 getDirection ( void ); 31 Ogre::Real getVelocity();35 36 inline Ogre::Real getVelocity() {return velocity_; }; 32 37 void setVelocity( Ogre::Real v ); 33 int getRate(); 38 39 inline int getRate() { return rate_; }; 34 40 void setRate( int r ); 35 Ogre::Real getDistance(); 41 42 inline Ogre::Real getDistance() { return distance_; }; 36 43 void setDistance( Ogre::Real d ); 37 Ogre::ColourValue getColour( void ); 44 45 inline Ogre::ColourValue getColour( void ) {return colour_;}; 38 46 void setColour( Ogre::ColourValue colour ); 47 39 48 void switchEnable( void ); 40 49 41 Ogre::ParticleSystem* getParticleSystem() {return this->particleSystem_; };50 inline Ogre::ParticleSystem* getParticleSystem() {return this->particleSystem_; }; 42 51 43 52 private:
Note: See TracChangeset
for help on using the changeset viewer.