Panda3D

baseParticleFactory.I

00001 // Filename: baseParticleFactory.I
00002 // Created by:  charles (05Jul00)
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 ////////////////////////////////////////////////////////////////////
00016 //    Function : set_lifespan_base
00017 // Description : public
00018 ////////////////////////////////////////////////////////////////////
00019 INLINE void BaseParticleFactory::
00020 set_lifespan_base(PN_stdfloat lb) {
00021   _lifespan_base = lb;
00022 }
00023 
00024 ////////////////////////////////////////////////////////////////////
00025 //    Function : set_lifespan_spread
00026 // Description : public
00027 ////////////////////////////////////////////////////////////////////
00028 INLINE void BaseParticleFactory::
00029 set_lifespan_spread(PN_stdfloat ld) {
00030   _lifespan_spread = ld;
00031 }
00032 
00033 ////////////////////////////////////////////////////////////////////
00034 //    Function : set_mass_base
00035 // Description : public
00036 ////////////////////////////////////////////////////////////////////
00037 INLINE void BaseParticleFactory::
00038 set_mass_base(PN_stdfloat mb) {
00039   nassertv(mb >= _mass_spread);
00040   _mass_base = mb;
00041 }
00042 
00043 ////////////////////////////////////////////////////////////////////
00044 //    Function : set_mass_spread
00045 // Description : public
00046 ////////////////////////////////////////////////////////////////////
00047 INLINE void BaseParticleFactory::
00048 set_mass_spread(PN_stdfloat md) {
00049   nassertv(md < _mass_base);
00050   _mass_spread = md;
00051 }
00052 
00053 ////////////////////////////////////////////////////////////////////
00054 //    Function : set_terminal_velocity_base
00055 // Description : public
00056 ////////////////////////////////////////////////////////////////////
00057 INLINE void BaseParticleFactory::
00058 set_terminal_velocity_base(PN_stdfloat tvb) {
00059   _terminal_velocity_base = tvb;
00060 }
00061 
00062 ////////////////////////////////////////////////////////////////////
00063 //    Function : set_terminal_velocity_spread
00064 // Description : public
00065 ////////////////////////////////////////////////////////////////////
00066 INLINE void BaseParticleFactory::
00067 set_terminal_velocity_spread(PN_stdfloat tvd) {
00068   _terminal_velocity_spread = tvd;
00069 }
00070 
00071 ////////////////////////////////////////////////////////////////////
00072 //    Function : get_lifespan_base
00073 // Description : public
00074 ////////////////////////////////////////////////////////////////////
00075 INLINE PN_stdfloat BaseParticleFactory::
00076 get_lifespan_base() const {
00077   return _lifespan_base;
00078 }
00079 
00080 ////////////////////////////////////////////////////////////////////
00081 //    Function : get_lifespan_spread
00082 // Description : public
00083 ////////////////////////////////////////////////////////////////////
00084 INLINE PN_stdfloat BaseParticleFactory::
00085 get_lifespan_spread() const {
00086   return _lifespan_spread;
00087 }
00088 
00089 ////////////////////////////////////////////////////////////////////
00090 //    Function : get_mass_base
00091 // Description : public
00092 ////////////////////////////////////////////////////////////////////
00093 INLINE PN_stdfloat BaseParticleFactory::
00094 get_mass_base() const {
00095   return _mass_base;
00096 }
00097 
00098 ////////////////////////////////////////////////////////////////////
00099 //    Function : get_mass_spread
00100 // Description : public
00101 ////////////////////////////////////////////////////////////////////
00102 INLINE PN_stdfloat BaseParticleFactory::
00103 get_mass_spread() const {
00104   return _mass_spread;
00105 }
00106 
00107 ////////////////////////////////////////////////////////////////////
00108 //    Function : get_terminal_velocity_base
00109 // Description : public
00110 ////////////////////////////////////////////////////////////////////
00111 INLINE PN_stdfloat BaseParticleFactory::
00112 get_terminal_velocity_base() const {
00113   return _terminal_velocity_base;
00114 }
00115 
00116 ////////////////////////////////////////////////////////////////////
00117 //    Function : get_terminal_velocity_spread
00118 // Description : public
00119 ////////////////////////////////////////////////////////////////////
00120 INLINE PN_stdfloat BaseParticleFactory::
00121 get_terminal_velocity_spread() const {
00122   return _terminal_velocity_spread;
00123 }
00124 
 All Classes Functions Variables Enumerations