Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

panda/src/particlesystem/baseParticle.cxx

Go to the documentation of this file.
00001 // Filename: baseParticle.cxx
00002 // Created by:  charles (14Jun00)
00003 //
00004 ////////////////////////////////////////////////////////////////////
00005 //
00006 // PANDA 3D SOFTWARE
00007 // Copyright (c) 2001, Disney Enterprises, Inc.  All rights reserved
00008 //
00009 // All use of this software is subject to the terms of the Panda 3d
00010 // Software license.  You should have received a copy of this license
00011 // along with this source code; you will also find a current copy of
00012 // the license at http://www.panda3d.org/license.txt .
00013 //
00014 // To contact the maintainers of this program write to
00015 // panda3d@yahoogroups.com .
00016 //
00017 ////////////////////////////////////////////////////////////////////
00018 
00019 #include "baseParticle.h"
00020 
00021 ////////////////////////////////////////////////////////////////////
00022 //    Function : BaseParticle
00023 //      Access : Public
00024 // Description : Default Constructor
00025 ////////////////////////////////////////////////////////////////////
00026 BaseParticle::
00027 BaseParticle(int lifespan, bool alive) :
00028   _age(0.0f), _lifespan(lifespan), _alive(alive) {
00029 }
00030 
00031 ////////////////////////////////////////////////////////////////////
00032 //    Function : BaseParticle
00033 //      Access : Public
00034 // Description : Copy Constructor
00035 ////////////////////////////////////////////////////////////////////
00036 BaseParticle::
00037 BaseParticle(const BaseParticle &copy) {
00038   _age = copy._age;
00039   _lifespan = copy._lifespan;
00040   _alive = copy._alive;
00041 }
00042 
00043 ////////////////////////////////////////////////////////////////////
00044 //    Function : ~BaseParticle
00045 //      Access : Public
00046 // Description : Default Destructor
00047 ////////////////////////////////////////////////////////////////////
00048 BaseParticle::
00049 ~BaseParticle(void) {
00050 }
00051 
00052 ////////////////////////////////////////////////////////////////////
00053 //    Function : get_theta
00054 //      Access : Public
00055 // Description : for spriteParticleRenderer
00056 ////////////////////////////////////////////////////////////////////
00057 float BaseParticle::
00058 get_theta(void) const {
00059   return 0.0f;
00060 }

Generated on Fri May 2 00:40:54 2003 for Panda by doxygen1.3