TDME2 1.9.121
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
PrototypeParticleSystem_CircleParticleEmitter.h
Go to the documentation of this file.
1#pragma once
2
3#include <tdme/tdme.h>
8#include <tdme/math/Vector3.h>
9
12
13/**
14 * Prototype circle particle emitter definition
15 * @author Andreas Drewke
16 * @version $Id$
17 */
19{
20private:
21 int count;
22 int64_t lifeTime;
23 int64_t lifeTimeRnd;
24 float mass;
25 float massRnd;
31 float radius;
34
35public:
36
37 /**
38 * Public constructor
39 */
41
42 /**
43 * @return count
44 */
45 inline int getCount() {
46 return count;
47 }
48
49 /**
50 * Set count
51 * @param count count
52 */
53 inline void setCount(int count) {
54 this->count = count;
55 }
56
57 /**
58 * @return life time
59 */
60 inline int64_t getLifeTime() {
61 return lifeTime;
62 }
63
64 /**
65 * Set life time
66 * @param lifeTime life time
67 */
68 inline void setLifeTime(int64_t lifeTime) {
69 this->lifeTime = lifeTime;
70 }
71
72 /**
73 * @return life time rnd
74 */
75 inline int64_t getLifeTimeRnd() {
76 return lifeTimeRnd;
77 }
78
79 /**
80 * Set life time rnd
81 * @param lifeTimeRnd life time rnd
82 */
83 inline void setLifeTimeRnd(int64_t lifeTimeRnd) {
84 this->lifeTimeRnd = lifeTimeRnd;
85 }
86
87 /**
88 * @return mass
89 */
90 inline float getMass() {
91 return mass;
92 }
93
94 /**
95 * Set mass
96 * @param mass mass
97 */
98 inline void setMass(float mass) {
99 this->mass = mass;
100 }
101
102 /**
103 * @return mass rnd
104 */
105 inline float getMassRnd() {
106 return massRnd;
107 }
108
109 /**
110 * Set mass rnd
111 * @param massRnd mass rnd
112 */
113 inline void setMassRnd(float massRnd) {
114 this->massRnd = massRnd;
115 }
116
117 /**
118 * @return velocity
119 */
120 inline const Vector3& getVelocity() {
121 return velocity;
122 }
123
124 /**
125 * Set velocity
126 * @param velocity velocity
127 */
128 inline void setVelocity(const Vector3& velocity) {
129 this->velocity = velocity;
130 }
131
132 /**
133 * @return velocity rnd
134 */
135 inline const Vector3& getVelocityRnd() {
136 return velocityRnd;
137 }
138
139 /**
140 * Set random velocity
141 * @param velocityRnd random velocity
142 */
143 inline void setVelocityRnd(const Vector3& velocityRnd) {
144 this->velocityRnd = velocityRnd;
145 }
146
147 /**
148 * @return color start
149 */
150 inline const Color4& getColorStart() {
151 return colorStart;
152 }
153
154 /**
155 * Set start color
156 * @param colorStart start color
157 */
158 inline void setColorStart(const Color4& colorStart) {
159 this->colorStart = colorStart;
160 }
161
162 /**
163 * @return color end
164 */
165 inline const Color4& getColorEnd() {
166 return colorEnd;
167 }
168
169 /**
170 * Set end color
171 * @param colorEnd color end
172 */
173 inline void setColorEnd(const Color4& colorEnd) {
174 this->colorEnd = colorEnd;
175 }
176
177 /**
178 * @return center
179 */
180 inline const Vector3& getCenter() {
181 return center;
182 }
183
184 /**
185 * Set center
186 * @param center center
187 */
188 inline void setCenter(const Vector3& center) {
189 this->center = center;
190 }
191
192 /**
193 * @return radius
194 */
195 inline float getRadius() {
196 return radius;
197 }
198
199 /**
200 * Set radius
201 * @param radius radius
202 */
203 inline void setRadius(float radius) {
204 this->radius = radius;
205 }
206
207 /**
208 * @return axis 0
209 */
210 inline const Vector3& getAxis0() {
211 return axis0;
212 }
213
214 /**
215 * Set axis 0
216 * @param axis0 axis 0
217 */
218 inline void setAxis0(const Vector3& axis0) {
219 this->axis0 = axis0;
220 }
221
222 /**
223 * @return axis 1
224 */
225 inline const Vector3& getAxis1() {
226 return axis1;
227 }
228
229 /**
230 * Set axis 1
231 * @param axis0 axis 1
232 */
233 inline void setAxis1(const Vector3& axis1) {
234 this->axis1 = axis1;
235 }
236
237};
Color 4 definition.
Definition: Color4.h:20
3D vector 3 class
Definition: Vector3.h:22