Changeset 4176 in orxonox.OLD for orxonox/trunk/src/story_entities
- Timestamp:
- May 13, 2005, 11:09:20 PM (20 years ago)
- Location:
- orxonox/trunk/src/story_entities
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/story_entities/world.cc
r4145 r4176 40 40 #include "garbage_collector.h" 41 41 #include "animation_player.h" 42 #include "particle_engine.h" 42 43 43 44 #include "command_node.h" … … 203 204 delete this->lightMan; 204 205 delete this->trackManager; 206 delete this->particleEngine; 205 207 TextEngine::getInstance()->flush(); 206 208 … … 246 248 this->garbageCollector = GarbageCollector::getInstance(); 247 249 250 this->particleEngine = ParticleEngine::getInstance(); 248 251 this->trackManager = TrackManager::getInstance(); 249 252 this->lightMan = LightManager::getInstance(); … … 484 487 this->spawn(terrain); 485 488 489 490 ParticleSystem* system = new ParticleSystem(1000, PARTICLE_SPRITE); 491 system->setLifeSpan(.5); 492 system->setConserve(.99); 493 system->setRadius(2, 0, 2, 0); 494 495 ParticleEmitter* emitter = new ParticleEmitter(Vector(-1, 0, 0), M_PI_4, 100, .05); 496 emitter->setParent(this->localPlayer); 497 498 particleEngine->addConnection(emitter, system); 486 499 } 487 500 … … 945 958 946 959 TextEngine::getInstance()->draw(); 960 particleEngine->draw(this->dtS); //!< \todo should be dts like in the Trunk; 961 947 962 lightMan->draw(); // must be at the end of the drawing procedure, otherwise Light cannot be handled as PNodes // 948 963 } … … 1130 1145 1131 1146 AnimationPlayer::getInstance()->tick(this->dtS); 1147 particleEngine->tick(this->dtS); 1132 1148 } 1133 1149 this->lastFrame = currentFrame; -
orxonox/trunk/src/story_entities/world.h
r4145 r4176 20 20 class GLMenuImageScreen; 21 21 class LightManager; 22 class ParticleEngine; 22 23 class Terrain; 23 24 class GarbageCollector; … … 108 109 PNode* nullParent; //!< The zero-point, that everything has as its parent. 109 110 TrackManager* trackManager; //!< The reference of the TrackManager that handles the course through the Level. 111 ParticleEngine* particleEngine; //!< The ParticleEngine of the World. 110 112 Camera* localCamera; //!< The current Camera 111 113 WorldEntity* sky; //!< The Environmental Heaven of orxonox \todo insert this to environment insted
Note: See TracChangeset
for help on using the changeset viewer.