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