75 lines
2.2 KiB
C++
75 lines
2.2 KiB
C++
// Filename: pointParticle.C
|
|
// Created by: charles (19Jun00)
|
|
//
|
|
////////////////////////////////////////////////////////////////////
|
|
|
|
#include "pointParticle.h"
|
|
|
|
////////////////////////////////////////////////////////////////////
|
|
// Function : PointParticle
|
|
// Access : Public
|
|
// Description : simple constructor
|
|
////////////////////////////////////////////////////////////////////
|
|
PointParticle::
|
|
PointParticle(int lifespan, bool alive) :
|
|
BaseParticle(lifespan, alive) {
|
|
set_oriented(false);
|
|
}
|
|
|
|
////////////////////////////////////////////////////////////////////
|
|
// Function : PointParticle
|
|
// Access : Public
|
|
// Description : copy constructor
|
|
////////////////////////////////////////////////////////////////////
|
|
PointParticle::
|
|
PointParticle(const PointParticle ©) :
|
|
BaseParticle(copy) {
|
|
set_oriented(false);
|
|
}
|
|
|
|
////////////////////////////////////////////////////////////////////
|
|
// Function : ~PointParticle
|
|
// Access : Public
|
|
// Description : simple destructor
|
|
////////////////////////////////////////////////////////////////////
|
|
PointParticle::
|
|
~PointParticle(void) {
|
|
}
|
|
|
|
////////////////////////////////////////////////////////////////////
|
|
// Function : make_copy
|
|
// Access : Public
|
|
// Description : dynamic copier
|
|
////////////////////////////////////////////////////////////////////
|
|
PhysicsObject *PointParticle::
|
|
make_copy(void) const {
|
|
return new PointParticle(*this);
|
|
}
|
|
|
|
////////////////////////////////////////////////////////////////////
|
|
// Function : die
|
|
// Access : Public
|
|
// Description : particle death routine
|
|
////////////////////////////////////////////////////////////////////
|
|
void PointParticle::
|
|
die(void) {
|
|
}
|
|
|
|
////////////////////////////////////////////////////////////////////
|
|
// Function : init
|
|
// Access : Public
|
|
// Description : particle init routine
|
|
////////////////////////////////////////////////////////////////////
|
|
void PointParticle::
|
|
init(void) {
|
|
}
|
|
|
|
////////////////////////////////////////////////////////////////////
|
|
// Function : update
|
|
// Access : Public
|
|
// Description : particle update
|
|
////////////////////////////////////////////////////////////////////
|
|
void PointParticle::
|
|
update(void) {
|
|
}
|