Panda3D
baseParticleFactory.I
1 // Filename: baseParticleFactory.I
2 // Created by: charles (05Jul00)
3 //
4 ////////////////////////////////////////////////////////////////////
5 //
6 // PANDA 3D SOFTWARE
7 // Copyright (c) Carnegie Mellon University. All rights reserved.
8 //
9 // All use of this software is subject to the terms of the revised BSD
10 // license. You should have received a copy of this license along
11 // with this source code in a file named "LICENSE."
12 //
13 ////////////////////////////////////////////////////////////////////
14 
15 ////////////////////////////////////////////////////////////////////
16 // Function : set_lifespan_base
17 // Description : public
18 ////////////////////////////////////////////////////////////////////
19 INLINE void BaseParticleFactory::
20 set_lifespan_base(PN_stdfloat lb) {
21  _lifespan_base = lb;
22 }
23 
24 ////////////////////////////////////////////////////////////////////
25 // Function : set_lifespan_spread
26 // Description : public
27 ////////////////////////////////////////////////////////////////////
28 INLINE void BaseParticleFactory::
29 set_lifespan_spread(PN_stdfloat ld) {
30  _lifespan_spread = ld;
31 }
32 
33 ////////////////////////////////////////////////////////////////////
34 // Function : set_mass_base
35 // Description : public
36 ////////////////////////////////////////////////////////////////////
37 INLINE void BaseParticleFactory::
38 set_mass_base(PN_stdfloat mb) {
39  nassertv(mb >= _mass_spread);
40  _mass_base = mb;
41 }
42 
43 ////////////////////////////////////////////////////////////////////
44 // Function : set_mass_spread
45 // Description : public
46 ////////////////////////////////////////////////////////////////////
47 INLINE void BaseParticleFactory::
48 set_mass_spread(PN_stdfloat md) {
49  nassertv(md < _mass_base);
50  _mass_spread = md;
51 }
52 
53 ////////////////////////////////////////////////////////////////////
54 // Function : set_terminal_velocity_base
55 // Description : public
56 ////////////////////////////////////////////////////////////////////
57 INLINE void BaseParticleFactory::
58 set_terminal_velocity_base(PN_stdfloat tvb) {
59  _terminal_velocity_base = tvb;
60 }
61 
62 ////////////////////////////////////////////////////////////////////
63 // Function : set_terminal_velocity_spread
64 // Description : public
65 ////////////////////////////////////////////////////////////////////
66 INLINE void BaseParticleFactory::
67 set_terminal_velocity_spread(PN_stdfloat tvd) {
68  _terminal_velocity_spread = tvd;
69 }
70 
71 ////////////////////////////////////////////////////////////////////
72 // Function : get_lifespan_base
73 // Description : public
74 ////////////////////////////////////////////////////////////////////
75 INLINE PN_stdfloat BaseParticleFactory::
77  return _lifespan_base;
78 }
79 
80 ////////////////////////////////////////////////////////////////////
81 // Function : get_lifespan_spread
82 // Description : public
83 ////////////////////////////////////////////////////////////////////
84 INLINE PN_stdfloat BaseParticleFactory::
86  return _lifespan_spread;
87 }
88 
89 ////////////////////////////////////////////////////////////////////
90 // Function : get_mass_base
91 // Description : public
92 ////////////////////////////////////////////////////////////////////
93 INLINE PN_stdfloat BaseParticleFactory::
94 get_mass_base() const {
95  return _mass_base;
96 }
97 
98 ////////////////////////////////////////////////////////////////////
99 // Function : get_mass_spread
100 // Description : public
101 ////////////////////////////////////////////////////////////////////
102 INLINE PN_stdfloat BaseParticleFactory::
104  return _mass_spread;
105 }
106 
107 ////////////////////////////////////////////////////////////////////
108 // Function : get_terminal_velocity_base
109 // Description : public
110 ////////////////////////////////////////////////////////////////////
111 INLINE PN_stdfloat BaseParticleFactory::
113  return _terminal_velocity_base;
114 }
115 
116 ////////////////////////////////////////////////////////////////////
117 // Function : get_terminal_velocity_spread
118 // Description : public
119 ////////////////////////////////////////////////////////////////////
120 INLINE PN_stdfloat BaseParticleFactory::
122  return _terminal_velocity_spread;
123 }
124 
void set_mass_spread(PN_stdfloat ms)
public
void set_mass_base(PN_stdfloat mb)
public
PN_stdfloat get_terminal_velocity_spread() const
public
PN_stdfloat get_mass_spread() const
public
PN_stdfloat get_lifespan_spread() const
public
void set_terminal_velocity_spread(PN_stdfloat tvs)
public
PN_stdfloat get_terminal_velocity_base() const
public
void set_lifespan_base(PN_stdfloat lb)
public
void set_terminal_velocity_base(PN_stdfloat tvb)
public
void set_lifespan_spread(PN_stdfloat ls)
public
PN_stdfloat get_lifespan_base() const
public
PN_stdfloat get_mass_base() const
public