Changeset 6822 in orxonox.OLD for trunk/src/world_entities
- Timestamp:
- Jan 29, 2006, 1:57:03 AM (19 years ago)
- Location:
- trunk/src/world_entities
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/world_entities/projectiles/bomb.cc
r6700 r6822 25 25 #include "object_manager.h" 26 26 27 #include " particle_emitter.h"27 #include "dot_emitter.h" 28 28 #include "particle_system.h" 29 29 … … 50 50 this->lifeSpan = 15; 51 51 52 this->emitter = new ParticleEmitter(Vector(0,1,0), M_2_PI, 100, 5);52 this->emitter = new DotEmitter(Vector(0,1,0), M_2_PI, 100, 5); 53 53 this->emitter->setParent(this); 54 54 this->emitter->setSpread(M_PI, M_PI); -
trunk/src/world_entities/projectiles/guided_missile.cc
r6760 r6822 23 23 #include "class_list.h" 24 24 25 #include " particle_emitter.h"25 #include "dot_emitter.h" 26 26 #include "sprite_particles.h" 27 27 … … 46 46 this->maxVelocity = 75; 47 47 48 this->emitter = new ParticleEmitter(Vector(0,1,0), M_2_PI, 100, 5);48 this->emitter = new DotEmitter(Vector(0,1,0), M_2_PI, 100, 5); 49 49 this->emitter->setParent(this); 50 50 this->emitter->setSpread(M_PI, M_PI); -
trunk/src/world_entities/projectiles/hyperblast.cc
r6821 r6822 23 23 #include "class_list.h" 24 24 25 #include " particle_emitter.h"25 #include "dot_emitter.h" 26 26 #include "sprite_particles.h" 27 27 #include "spark_particles.h" … … 47 47 this->size = 4.0; 48 48 49 this->emitter = new ParticleEmitter(Vector(0,1,0), M_2_PI, 100, 5); 50 this->emitter->setType( EMITTER_CUBE ); 51 this->emitter->setSize(10); 49 this->emitter = new DotEmitter(Vector(0,1,0), M_2_PI, 100, 5); 52 50 this->emitter->setParent(this); 53 51 this->emitter->setSpread(M_PI, M_PI); -
trunk/src/world_entities/projectiles/laser.cc
r6753 r6822 26 26 #include "model.h" 27 27 28 #include " particle_emitter.h"28 #include "dot_emitter.h" 29 29 #include "sprite_particles.h" 30 #include <cassert>31 30 32 31 #include <cassert> 33 34 32 35 33 using namespace std; … … 50 48 this->lifeSpan = 5.0; 51 49 52 this->emitter = new ParticleEmitter(Vector(0,1,0), M_2_PI, 100, 5);50 this->emitter = new DotEmitter(Vector(0,1,0), M_2_PI, 100, 5); 53 51 this->emitter->setParent(this); 54 52 this->emitter->setSpread(M_PI, M_PI); -
trunk/src/world_entities/projectiles/rocket.cc
r6700 r6822 23 23 #include "class_list.h" 24 24 25 #include " particle_emitter.h"25 #include "dot_emitter.h" 26 26 #include "sprite_particles.h" 27 27 … … 45 45 this->lifeSpan = 5; 46 46 47 this->emitter = new ParticleEmitter(Vector(0,1,0), M_2_PI, 100, 5);47 this->emitter = new DotEmitter(Vector(0,1,0), M_2_PI, 100, 5); 48 48 this->emitter->setParent(this); 49 49 this->emitter->setSpread(M_PI, M_PI); -
trunk/src/world_entities/projectiles/test_bullet.cc
r6700 r6822 23 23 #include "class_list.h" 24 24 25 #include " particle_emitter.h"25 #include "dot_emitter.h" 26 26 #include "sprite_particles.h" 27 27 … … 45 45 this->lifeSpan = 2; 46 46 47 this->emitter = new ParticleEmitter(Vector(0,1,0), M_2_PI, 100, 5);47 this->emitter = new DotEmitter(Vector(0,1,0), M_2_PI, 100, 5); 48 48 this->emitter->setParent(this); 49 49 this->emitter->setSpread(M_PI, M_PI); -
trunk/src/world_entities/space_ships/space_ship.cc
r6815 r6822 28 28 #include "weapons/cannon.h" 29 29 30 #include " particle_emitter.h"30 #include "dot_emitter.h" 31 31 #include "sprite_particles.h" 32 32 … … 205 205 dynamic_cast<Element2D*>(this->getWeaponManager()->getFixedTarget())->setVisibility( false); 206 206 207 this->burstEmitter = new ParticleEmitter(Vector(1,0,0), .01, 200, 0.0);207 this->burstEmitter = new DotEmitter(Vector(1,0,0), .01, 200, 0.0); 208 208 this->burstEmitter->setParent(this); 209 209 this->burstEmitter->setRelCoor(-1, .5, 0); … … 531 531 532 532 byte b; 533 533 534 534 while ( SYNCHELP_READ_REMAINING()>0 ) 535 535 { 536 536 SYNCHELP_READ_BYTE( b, NWT_SS_B ); 537 537 538 538 if ( b == DATA_state ) 539 539 { … … 544 544 continue; 545 545 } 546 546 547 547 if ( b == DATA_flags ) 548 548 { … … 559 559 bRollL = (flags & MASK_bRollL) != 0; 560 560 bRollR = (flags & MASK_bRollR) != 0; 561 561 562 562 continue; 563 563 } 564 564 565 565 if ( b == DATA_mouse ) 566 566 { … … 569 569 SYNCHELP_READ_FLOAT( mouseDir.v.y, NWT_SS_MOUSEDIRY ); 570 570 SYNCHELP_READ_FLOAT( mouseDir.v.z, NWT_SS_MOUSEDIRZ ); 571 571 572 572 continue; 573 573 } 574 574 575 575 if ( b == DATA_sync ) 576 576 { 577 577 if ( this->getOwner() != this->getHostID() ) 578 578 SYNCHELP_READ_FKT( PNode::writeSync, NWT_SS_PN_SYNC ); 579 579 580 580 continue; 581 581 } 582 582 583 583 if ( b == DATA_velocity ) 584 584 { … … 588 588 } 589 589 } 590 590 591 591 return SYNCHELP_READ_N; 592 592 } … … 621 621 622 622 *reciever = 0; 623 623 624 624 if ( this->getOwner() == this->getHostID() && PNode::needsReadSync() ) 625 625 {
Note: See TracChangeset
for help on using the changeset viewer.