39 const short MAXPARTICULE = 500;
40 const short MAXPARTITYPE = 5;
41 const short MAXTRACK = 100;
42 const short MAXTRACKLEN = 10;
43 const short MAXPARTIFOG = 100;
44 const short MAXWHEELTRACE = 1000;
46 const short SH_WORLD = 0;
47 const short SH_FRONT = 1;
48 const short SH_INTERFACE = 2;
49 const short SH_MAX = 3;
211 unsigned short uniqueStamp;
221 float windSensitivity;
249 float len[MAXTRACKLEN];
283 ParticleType type,
float duration = 1.0f,
float mass = 0.0f,
284 float windSensitivity = 1.0f,
int sheet = 0);
288 ParticleType type,
float duration = 1.0f,
float mass = 0.0f,
289 float windSensitivity = 1.0f,
int sheet = 0);
293 float duration = 1.0f,
float mass = 0.0f,
float weight = 0.0f,
294 float windSensitivity = 1.0f,
int sheet = 0);
298 float duration = 1.0f,
int sheet = 0);
302 float duration = 1.0f,
float mass = 0.0f,
float length = 10.0f,
float width = 1.0f);
318 void SetZoom(
int channel,
float zoom);
319 void SetAngle(
int channel,
float angle);
320 void SetIntensity(
int channel,
float intensity);
322 void SetPhase(
int channel, ParticlePhase phase,
float duration);
380 Particle m_particle[MAXPARTICULE*MAXPARTITYPE];
382 Track m_track[MAXTRACK];
383 int m_wheelTraceTotal;
384 int m_wheelTraceIndex;
386 int m_totalInterface[MAXPARTITYPE][SH_MAX];
387 bool m_frameUpdate[SH_MAX];
389 int m_fog[MAXPARTIFOG];
391 int m_exploGunCounter;
392 float m_lastTimeGunDel;
< gravity root smoke
Definition: particle.h:155
< sphere
Definition: particle.h:120
< drag 20
Definition: particle.h:143
< drag 5
Definition: particle.h:128
< drag 19
Definition: particle.h:142
void DrawParticle(int sheet)
Draws all the particles.
Definition: particle.cpp:3530
< drag 13
Definition: particle.h:136
< black smoke
Definition: particle.h:82
< reflection
Definition: particle.h:64
< red selection
Definition: particle.h:72
< gas from the reactor
Definition: particle.h:67
< virus 3
Definition: particle.h:90
void FlushParticle()
Removes all particles.
Definition: particle.cpp:148
< fog 4
Definition: particle.h:166
ParticleType
Definition: particle.h:58
bool CheckChannel(int &channel)
Check a channel number.
Definition: particle.cpp:674
Main graphics engine - CEngine class.
< drag 10
Definition: particle.h:133
< drag 1
Definition: particle.h:124
< sphere
Definition: particle.h:119
< steam
Definition: particle.h:87
< dust after fall
Definition: particle.h:66
< trace
Definition: particle.h:186
< foo says blah
Definition: particle.h:109
< reactor of tot
Definition: particle.h:107
int CreatePart(Math::Vector pos, Math::Vector speed, ParticleType type, float duration=1.0f, float mass=0.0f, float weight=0.0f, float windSensitivity=1.0f, int sheet=0)
Creates a new particle being a part of object.
Definition: particle.cpp:496
< shows a place
Definition: particle.h:151
< bullet destroyed by shield
Definition: particle.h:122
< trace
Definition: particle.h:182
< trace
Definition: particle.h:184
< black smoke
Definition: particle.h:81
< trace
Definition: particle.h:195
< virus 2
Definition: particle.h:89
< red reflection
Definition: particle.h:145
< bullet 4 (orgaball)
Definition: particle.h:76
void DrawParticleTriangle(int i)
Draws a triangular particle.
Definition: particle.cpp:2758
< drop of water
Definition: particle.h:176
bool GetPosition(int channel, Math::Vector &pos)
Returns the position of the particle.
Definition: particle.cpp:795
< splash
Definition: particle.h:157
< trace
Definition: particle.h:193
< trace
Definition: particle.h:191
< drop
Definition: particle.h:161
< human blood
Definition: particle.h:85
void DrawParticleCylinder(int i)
Draws a cylindrical particle.
Definition: particle.cpp:3304
< drag 9
Definition: particle.h:132
< toto says yes
Definition: particle.h:110
int CreateRay(Math::Vector pos, Math::Vector goal, ParticleType type, Math::Point dim, float duration=1.0f, int sheet=0)
Creates a new linear particle (radius)
Definition: particle.cpp:544
< blood laying
Definition: particle.h:86
void DrawParticleFlat(int i)
Draw a particle flat (horizontal)
Definition: particle.cpp:2889
< trace
Definition: particle.h:187
< splash
Definition: particle.h:159
< the engine exhaust gas
Definition: particle.h:63
< black smoke
Definition: particle.h:83
< lightning recharging battery
Definition: particle.h:65
< shows if the ground is flat
Definition: particle.h:153
< brilliance 2 (yellow)
Definition: particle.h:147
< fog 8
Definition: particle.h:170
< virus 6
Definition: particle.h:93
< ray 4
Definition: particle.h:101
void Play(Sound sound, Math::Vector pos, float amplitude)
Sounded one.
Definition: particle.cpp:3831
< drag 6
Definition: particle.h:129
< inflamed tail
Definition: particle.h:78
< brilliance 1 (orange)
Definition: particle.h:146
bool WriteWheelTrace(const char *filename, int width, int height, Math::Vector dl, Math::Vector ur)
Writes a file containing all the tire tracks.
Definition: particle.cpp:3917
< shows the limits 1
Definition: particle.h:172
< virus 8
Definition: particle.h:95
< fog 6
Definition: particle.h:168
< reflection on button
Definition: particle.h:150
A triangle drawn by the graphics engine.
Definition: engine.h:143
void TrackDraw(int i, ParticleType type)
Draws a drag.
Definition: particle.cpp:2584
< information sphere (emit)
Definition: particle.h:116
< trace
Definition: particle.h:188
< yellow selection
Definition: particle.h:71
< drag 17
Definition: particle.h:140
< trace
Definition: particle.h:190
< drag 11
Definition: particle.h:134
< virus 9
Definition: particle.h:96
< organic ball mother
Definition: particle.h:79
bool TrackMove(int i, Math::Vector pos, float progress)
Moves a drag; returns true if the drag is finished.
Definition: particle.cpp:2543
< shows the limits 2
Definition: particle.h:173
Definition: robotmain.h:191
< drag 12
Definition: particle.h:135
Particle engine.
Definition: particle.h:266
< blue ball recycler
Definition: particle.h:154
< shows the limits 4
Definition: particle.h:175
void DrawParticleNorm(int i)
Draw a normal particle.
Definition: particle.cpp:2785
< fog 7
Definition: particle.h:169
< drag 15
Definition: particle.h:138
< information sphere (receive)
Definition: particle.h:118
< flame
Definition: particle.h:102
< trace
Definition: particle.h:180
Definition: particle.h:252
< drag 3
Definition: particle.h:126
void DeleteRank(int rank)
Removes a particle of given rank.
Definition: particle.cpp:697
< trace
Definition: particle.h:192
< explosion sphere
Definition: particle.h:112
< trace
Definition: particle.h:196
< gases of spaceship
Definition: particle.h:179
< blue reflection
Definition: particle.h:144
< technology explosion
Definition: particle.h:61
< ray 1 (turn)
Definition: particle.h:98
< ray 3
Definition: particle.h:100
2D point
Definition: point.h:46
< drag 14
Definition: particle.h:137
void SetObjectLink(int channel, CObject *object)
Specifies the object to which the particle is bound.
Definition: particle.cpp:734
int CreateParticle(Math::Vector pos, Math::Vector speed, Math::Point dim, ParticleType type, float duration=1.0f, float mass=0.0f, float windSensitivity=1.0f, int sheet=0)
Creates a new particle.
Definition: particle.cpp:209
< drag 8
Definition: particle.h:131
< triangular fragment
Definition: particle.h:77
Sound
Sound enum representing sound file.
Definition: sound.h:42
void CreateWheelTrace(const Math::Vector &p1, const Math::Vector &p2, const Math::Vector &p3, const Math::Vector &p4, ParticleType type)
Creates a tire mark.
Definition: particle.cpp:635
< drag 16
Definition: particle.h:139
void SetObjectFather(int channel, CObject *object)
Specifies the parent object that created the particle.
Definition: particle.cpp:740
< toto says no
Definition: particle.h:108
< fireball grows
Definition: particle.h:69
< splash
Definition: particle.h:158
< circles in the water
Definition: particle.h:104
Terrain loader/generator and manager.
Definition: terrain.h:220
void DrawParticleFog(int i)
Draw a particle to a flat sheet of fog.
Definition: particle.cpp:2952
void SetDevice(CDevice *device)
Sets the device to use.
Definition: particle.cpp:143
Definition: particle.h:238
< virus 7
Definition: particle.h:94
< black smoke
Definition: particle.h:84
< drag 4
Definition: particle.h:127
< fog 1
Definition: particle.h:163
< ball explosion 1
Definition: particle.h:177
The graphics engine.
Definition: engine.h:681
< fog 2
Definition: particle.h:164
< botanical sphere (gravity root)
Definition: particle.h:117
< splash
Definition: particle.h:160
< trace
Definition: particle.h:181
< shock wave
Definition: particle.h:152
< waste from the reactor
Definition: particle.h:106
< virus 5
Definition: particle.h:92
< virus 4
Definition: particle.h:91
< fireball shrinks
Definition: particle.h:68
void DrawParticleRay(int i)
Draw a particle in the form of radius.
Definition: particle.cpp:3039
< bubble
Definition: particle.h:103
Water manager/renderer.
Definition: water.h:116
< virus 1
Definition: particle.h:88
< fog 5
Definition: particle.h:167
< fog 9
Definition: particle.h:171
< energy sphere
Definition: particle.h:113
< trace
Definition: particle.h:197
< trace
Definition: particle.h:185
< ejection from the reactor
Definition: particle.h:105
3D (3x1) vector
Definition: vector.h:49
void SetFrameUpdate(int sheet, bool update)
Indicates whether a sheet is updated or not.
Definition: particle.cpp:802
void DeleteParticle(ParticleType type)
Removes all particles of a given type.
Definition: particle.cpp:709
Color GetFogColor(Math::Vector pos)
Returns the color if you're in the fog or black if you're not.
Definition: particle.cpp:3839
< fog 0
Definition: particle.h:162
< trace
Definition: particle.h:194
int CreateTrack(Math::Vector pos, Math::Vector speed, Math::Point dim, ParticleType type, float duration=1.0f, float mass=0.0f, float length=10.0f, float width=1.0f)
Creates a particle with a trail.
Definition: particle.cpp:603
< organic ball daughter
Definition: particle.h:80
int CreateFrag(Math::Vector pos, Math::Vector speed, EngineTriangle *triangle, ParticleType type, float duration=1.0f, float mass=0.0f, float windSensitivity=1.0f, int sheet=0)
Creates a new triangular particle (debris)
Definition: particle.cpp:391
< object part
Definition: particle.h:123
RGBA color.
Definition: color.h:35
CObject * SearchObjectRay(Math::Vector pos, Math::Vector goal, ParticleType type, CObject *father)
Seeks if an object collided with a ray.
Definition: particle.cpp:3773
< blue ball
Definition: particle.h:70
CObject * SearchObjectGun(Math::Vector old, Math::Vector pos, ParticleType type, CObject *father)
Seeks if an object collided with a bullet.
Definition: particle.cpp:3639
< drag 7
Definition: particle.h:130
< bullet 3 (spider)
Definition: particle.h:75
< bullet 2 (ant)
Definition: particle.h:74
void FrameParticle(float rTime)
Updates all the particles.
Definition: particle.cpp:807
< trace
Definition: particle.h:183
< shield sphere
Definition: particle.h:115
< shows the limits 3
Definition: particle.h:174
< analysis sphere
Definition: particle.h:114
< reflection crystal
Definition: particle.h:111
< organic explosion
Definition: particle.h:62
< trace
Definition: particle.h:198
< drag 18
Definition: particle.h:141
void DrawParticleSphere(int i)
Draws a spherical particle.
Definition: particle.cpp:3196
< splash
Definition: particle.h:156
< virus 10
Definition: particle.h:97
< ray 2 (electric arc)
Definition: particle.h:99
< brilliance 3 (red)
Definition: particle.h:148
< brilliance 4 (violet)
Definition: particle.h:149
< a bullet (fireball)
Definition: particle.h:73
Sound plugin interface.
Definition: sound.h:149
< drag 2
Definition: particle.h:125
< fog 3
Definition: particle.h:165
Abstract interface of graphics device.
Definition: device.h:235
< ball explosion 2
Definition: particle.h:178
< trace
Definition: particle.h:189
void DrawParticleWheel(int i)
Draws a tire mark.
Definition: particle.cpp:3390
< sphere
Definition: particle.h:121
Definition: particle.h:207