open_toontown_panda3d/panda/src/particlesystem/pointParticleFactory.cxx

59 lines
1.8 KiB
C++

// Filename: pointParticleFactory.cxx
// Created by: charles (05Jul00)
//
////////////////////////////////////////////////////////////////////
#include "pointParticleFactory.h"
#include "pointParticle.h"
#include <stdlib.h>
////////////////////////////////////////////////////////////////////
// Function : PointParticleFactory
// Access : public
// Description : default constructor
////////////////////////////////////////////////////////////////////
PointParticleFactory::
PointParticleFactory(void) :
BaseParticleFactory() {
}
////////////////////////////////////////////////////////////////////
// Function : PointParticleFactory
// Access : public
// Description : copy constructor
////////////////////////////////////////////////////////////////////
PointParticleFactory::
PointParticleFactory(const PointParticleFactory &copy) :
BaseParticleFactory(copy) {
}
////////////////////////////////////////////////////////////////////
// Function : ~PointParticleFactory
// Access : public
// Description : destructor
////////////////////////////////////////////////////////////////////
PointParticleFactory::
~PointParticleFactory(void) {
}
////////////////////////////////////////////////////////////////////
// Function : populate_child_particle
// Access : public
// Description : child particle generation function
////////////////////////////////////////////////////////////////////
void PointParticleFactory::
populate_child_particle(BaseParticle *bp) const {
bp->set_oriented(false);
}
////////////////////////////////////////////////////////////////////
// Function : alloc_particle
// Access : public
// Description : child particle generation function
////////////////////////////////////////////////////////////////////
BaseParticle *PointParticleFactory::
alloc_particle(void) const {
return new PointParticle;
}