Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Aug 22, 2006, 2:36:54 PM (19 years ago)
Author:
bensch
Message:

new_class_id: many more classes done

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/new_class_id/src/lib/particles/box_emitter.cc

    r9406 r9686  
    2323#include "util/loading/factory.h"
    2424#include "debug.h"
    25 #include "stdlibincl.h"
    2625
    27 
    28 
     26#include "class_id.h"
    2927
    3028CREATE_FACTORY(BoxEmitter, CL_BOX_EMITTER);
    31 
     29NewObjectListDefinitionID(BoxEmitter, CL_BOX_EMITTER);
    3230/**
    3331 *  standard constructor
     
    6866void BoxEmitter::init()
    6967{
    70   this->setClassID(CL_BOX_EMITTER, "BoxEmitter");
     68  this->registerObject(this, BoxEmitter::_objectList);
    7169  this->setSize(1.0f,1.0f,1.0f);
    7270}
     
    103101
    104102    Vector box = this->getAbsCoor() +
    105         xDir * ((float)rand()/RAND_MAX -.5) +
    106         yDir * ((float)rand()/RAND_MAX -.5) +
    107         zDir * ((float)rand()/RAND_MAX -.5);
     103                 xDir * ((float)rand()/RAND_MAX -.5) +
     104                 yDir * ((float)rand()/RAND_MAX -.5) +
     105                 zDir * ((float)rand()/RAND_MAX -.5);
    108106
    109107    // ROTATIONAL CALCULATION (this must not be done for all types of particles.)
Note: See TracChangeset for help on using the changeset viewer.