open_toontown_panda3d/panda/src/particlesystem/pointParticle.cxx

111 lines
3.3 KiB
C++

// Filename: pointParticle.cxx
// Created by: charles (19Jun00)
//
////////////////////////////////////////////////////////////////////
//
// PANDA 3D SOFTWARE
// Copyright (c) Carnegie Mellon University. All rights reserved.
//
// All use of this software is subject to the terms of the revised BSD
// license. You should have received a copy of this license along
// with this source code in a file named "LICENSE."
//
////////////////////////////////////////////////////////////////////
#include "pointParticle.h"
////////////////////////////////////////////////////////////////////
// Function : PointParticle
// Access : Public
// Description : simple constructor
////////////////////////////////////////////////////////////////////
PointParticle::
PointParticle(PN_stdfloat lifespan, bool alive) :
BaseParticle(lifespan, alive) {
set_oriented(false);
}
////////////////////////////////////////////////////////////////////
// Function : PointParticle
// Access : Public
// Description : copy constructor
////////////////////////////////////////////////////////////////////
PointParticle::
PointParticle(const PointParticle &copy) :
BaseParticle(copy) {
set_oriented(false);
}
////////////////////////////////////////////////////////////////////
// Function : ~PointParticle
// Access : Public
// Description : simple destructor
////////////////////////////////////////////////////////////////////
PointParticle::
~PointParticle() {
}
////////////////////////////////////////////////////////////////////
// Function : make_copy
// Access : Public
// Description : dynamic copier
////////////////////////////////////////////////////////////////////
PhysicsObject *PointParticle::
make_copy() const {
return new PointParticle(*this);
}
////////////////////////////////////////////////////////////////////
// Function : die
// Access : Public
// Description : particle death routine
////////////////////////////////////////////////////////////////////
void PointParticle::
die() {
}
////////////////////////////////////////////////////////////////////
// Function : init
// Access : Public
// Description : particle init routine
////////////////////////////////////////////////////////////////////
void PointParticle::
init() {
}
////////////////////////////////////////////////////////////////////
// Function : update
// Access : Public
// Description : particle update
////////////////////////////////////////////////////////////////////
void PointParticle::
update() {
}
////////////////////////////////////////////////////////////////////
// Function : output
// Access : Public
// Description : Write a string representation of this instance to
// <out>.
////////////////////////////////////////////////////////////////////
void PointParticle::
output(ostream &out) const {
#ifndef NDEBUG //[
out<<"PointParticle";
#endif //] NDEBUG
}
////////////////////////////////////////////////////////////////////
// Function : write
// Access : Public
// Description : Write a string representation of this instance to
// <out>.
////////////////////////////////////////////////////////////////////
void PointParticle::
write(ostream &out, int indent) const {
#ifndef NDEBUG //[
out.width(indent); out<<""; out<<"PointParticle:\n";
BaseParticle::write(out, indent+2);
#endif //] NDEBUG
}