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