Panda3D

pointParticle.cxx

00001 // Filename: pointParticle.cxx
00002 // Created by:  charles (19Jun00)
00003 //
00004 ////////////////////////////////////////////////////////////////////
00005 //
00006 // PANDA 3D SOFTWARE
00007 // Copyright (c) Carnegie Mellon University.  All rights reserved.
00008 //
00009 // All use of this software is subject to the terms of the revised BSD
00010 // license.  You should have received a copy of this license along
00011 // with this source code in a file named "LICENSE."
00012 //
00013 ////////////////////////////////////////////////////////////////////
00014 
00015 #include "pointParticle.h"
00016 
00017 ////////////////////////////////////////////////////////////////////
00018 //    Function : PointParticle
00019 //      Access : Public
00020 // Description : simple constructor
00021 ////////////////////////////////////////////////////////////////////
00022 PointParticle::
00023 PointParticle(PN_stdfloat lifespan, bool alive) :
00024   BaseParticle(lifespan, alive) {
00025   set_oriented(false);
00026 }
00027 
00028 ////////////////////////////////////////////////////////////////////
00029 //    Function : PointParticle
00030 //      Access : Public
00031 // Description : copy constructor
00032 ////////////////////////////////////////////////////////////////////
00033 PointParticle::
00034 PointParticle(const PointParticle &copy) :
00035   BaseParticle(copy) {
00036   set_oriented(false);
00037 }
00038 
00039 ////////////////////////////////////////////////////////////////////
00040 //    Function : ~PointParticle
00041 //      Access : Public
00042 // Description : simple destructor
00043 ////////////////////////////////////////////////////////////////////
00044 PointParticle::
00045 ~PointParticle() {
00046 }
00047 
00048 ////////////////////////////////////////////////////////////////////
00049 //    Function : make_copy
00050 //      Access : Public
00051 // Description : dynamic copier
00052 ////////////////////////////////////////////////////////////////////
00053 PhysicsObject *PointParticle::
00054 make_copy() const {
00055   return new PointParticle(*this);
00056 }
00057 
00058 ////////////////////////////////////////////////////////////////////
00059 //    Function : die
00060 //      Access : Public
00061 // Description : particle death routine
00062 ////////////////////////////////////////////////////////////////////
00063 void PointParticle::
00064 die() {
00065 }
00066 
00067 ////////////////////////////////////////////////////////////////////
00068 //    Function : init
00069 //      Access : Public
00070 // Description : particle init routine
00071 ////////////////////////////////////////////////////////////////////
00072 void PointParticle::
00073 init() {
00074 }
00075 
00076 ////////////////////////////////////////////////////////////////////
00077 //    Function : update
00078 //      Access : Public
00079 // Description : particle update
00080 ////////////////////////////////////////////////////////////////////
00081 void PointParticle::
00082 update() {
00083 }
00084 
00085 ////////////////////////////////////////////////////////////////////
00086 //     Function : output
00087 //       Access : Public
00088 //  Description : Write a string representation of this instance to
00089 //                <out>.
00090 ////////////////////////////////////////////////////////////////////
00091 void PointParticle::
00092 output(ostream &out) const {
00093   #ifndef NDEBUG //[
00094   out<<"PointParticle";
00095   #endif //] NDEBUG
00096 }
00097 
00098 ////////////////////////////////////////////////////////////////////
00099 //     Function : write
00100 //       Access : Public
00101 //  Description : Write a string representation of this instance to
00102 //                <out>.
00103 ////////////////////////////////////////////////////////////////////
00104 void PointParticle::
00105 write(ostream &out, int indent) const {
00106   #ifndef NDEBUG //[
00107   out.width(indent); out<<""; out<<"PointParticle:\n";
00108   BaseParticle::write(out, indent+2);
00109   #endif //] NDEBUG
00110 }
 All Classes Functions Variables Enumerations