Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6822 in orxonox.OLD for trunk/src/world_entities/space_ships


Ignore:
Timestamp:
Jan 29, 2006, 1:57:03 AM (18 years ago)
Author:
bensch
Message:

trunk: ParticleEmitters now splitted into SubClasses.
Also fixed a little Boeg in the ClassID

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/world_entities/space_ships/space_ship.cc

    r6815 r6822  
    2828#include "weapons/cannon.h"
    2929
    30 #include "particle_emitter.h"
     30#include "dot_emitter.h"
    3131#include "sprite_particles.h"
    3232
     
    205205  dynamic_cast<Element2D*>(this->getWeaponManager()->getFixedTarget())->setVisibility( false);
    206206
    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);
    208208  this->burstEmitter->setParent(this);
    209209  this->burstEmitter->setRelCoor(-1, .5, 0);
     
    531531
    532532  byte b;
    533  
     533
    534534  while ( SYNCHELP_READ_REMAINING()>0 )
    535535  {
    536536    SYNCHELP_READ_BYTE( b, NWT_SS_B );
    537    
     537
    538538    if ( b == DATA_state )
    539539    {
     
    544544      continue;
    545545    }
    546    
     546
    547547    if ( b == DATA_flags )
    548548    {
     
    559559      bRollL = (flags & MASK_bRollL) != 0;
    560560      bRollR = (flags & MASK_bRollR) != 0;
    561      
     561
    562562      continue;
    563563    }
    564    
     564
    565565    if ( b == DATA_mouse )
    566566    {
     
    569569      SYNCHELP_READ_FLOAT( mouseDir.v.y, NWT_SS_MOUSEDIRY );
    570570      SYNCHELP_READ_FLOAT( mouseDir.v.z, NWT_SS_MOUSEDIRZ );
    571      
     571
    572572      continue;
    573573    }
    574    
     574
    575575    if ( b == DATA_sync )
    576576    {
    577577      if ( this->getOwner() != this->getHostID() )
    578578        SYNCHELP_READ_FKT( PNode::writeSync, NWT_SS_PN_SYNC );
    579      
     579
    580580      continue;
    581581    }
    582    
     582
    583583    if ( b == DATA_velocity )
    584584    {
     
    588588    }
    589589  }
    590  
     590
    591591  return SYNCHELP_READ_N;
    592592}
     
    621621
    622622  *reciever = 0;
    623  
     623
    624624  if ( this->getOwner() == this->getHostID() && PNode::needsReadSync() )
    625625  {
Note: See TracChangeset for help on using the changeset viewer.