29 #include "common/error.h"
35 #include "math/sphere.h"
127 void LightOperAdd(
float progress,
float intensity,
float r,
float g,
float b);
143 bool m_power =
false;
145 float m_force = 0.0f;
147 float m_progress = 0.0f;
148 float m_speed = 0.0f;
150 float m_lastParticle = 0.0f;
151 float m_lastParticleSmoke = 0.0f;
152 int m_soundChannel = -1;
154 int m_lightRank = -1;
155 float m_lightHeight = 0.0f;
159 float progress = 0.0f;
160 float intensity = 0.0f;
163 std::vector<PyroLightOper> m_lightOper;
166 int m_burnPartTotal = 0;
177 int m_burnKeepPart[10] = {};
178 float m_burnFall = 0.0f;
180 float m_fallFloor = 0.0f;
181 float m_fallSpeed = 0.0f;
182 float m_fallBulletTime = 0.0f;
183 bool m_fallEnding =
false;
185 std::vector<Math::Sphere> m_crashSpheres;
186 float m_resetAngle = 0.0f;
bool EventProcess(const Event &event)
Management of an event.
Definition: pyro.cpp:604
void DeleteObject()
Destroys the object.
Definition: pyro.cpp:65
void ExploStart()
Starts the explosion of a vehicle.
Definition: pyro.cpp:1530
void LightOperFlush()
Empty the table of operations of animation of light.
Definition: pyro.cpp:2325
void DisplayError(PyroType type, CObject *obj)
Definition: pyro.cpp:1231
Error FallIsEnded()
Indicates whether the fall is over.
Definition: pyro.cpp:2312
void ExploTerminate()
Ends the explosion of a vehicle.
Definition: pyro.cpp:1601
void LightOperFrame(float rTime)
Updates the associated light.
Definition: pyro.cpp:2343
void BurnStart()
Starts a vehicle fire.
Definition: pyro.cpp:1606
void FallProgress(float rTime)
Fall of an object's freight.
Definition: pyro.cpp:2244
Manager for dynamic lights in 3D scene.
Definition: lightman.h:146
CObject * FallSearchBeeExplo()
Seeks an object to explode by the falling ball of bees.
Definition: pyro.cpp:2193
Fire effect renderer.
Definition: pyro.h:63
Definition: robotmain.h:151
PyroType
Type of pyro effect.
Definition: pyro_type.h:34
Particle engine.
Definition: particle.h:223
Definition: pyro_manager.h:41
Color structs and related functions.
void BurnAddPart(int part, Math::Vector pos, Math::Vector angle)
Adds a part move.
Definition: pyro.cpp:2079
void CutObjectLink(CObject *obj)
Indicates that the object binds to the effect no longer exists, without deleting it.
Definition: pyro.cpp:1225
void BurnProgress()
Advances of a vehicle fire.
Definition: pyro.cpp:2095
void CreateLight(Math::Vector pos, float height)
Creates light to accompany a pyrotechnic effect.
Definition: pyro.cpp:1312
bool BurnIsKeepPart(int part)
Indicates whether a part should be retained.
Definition: pyro.cpp:2125
Camera moving in 3D scene.
Definition: camera.h:134
Terrain loader/generator and manager.
Definition: terrain.h:145
Error IsEnded()
Indicates whether the pyrotechnic effect is complete.
Definition: pyro.cpp:1155
Namespace for (new) graphics code.
Definition: app.h:49
The graphics engine.
Definition: engine.h:620
Event types, structs and event queue.
ObjectType
Type of game object.
Definition: object_type.h:33
void LightOperAdd(float progress, float intensity, float r, float g, float b)
Adds an animation operation of the light.
Definition: pyro.cpp:2330
3D (3x1) vector
Definition: vector.h:53
void BurnTerminate()
Ends the fire of an insect or a vehicle.
Definition: pyro.cpp:2135
void CreateTriangle(CObject *obj, ObjectType type, int part)
Creates an explosion with triangular form of particles.
Definition: pyro.cpp:1400
bool Create(PyroType type, CObject *obj, float force)
Creates pyrotechnic effect.
Definition: pyro.cpp:74
void FallStart()
Start of an object freight falling.
Definition: pyro.cpp:2182
RGBA color.
Definition: color.h:39
Event sent by system, interface or game.
Definition: event.h:709
Base class for all 3D in-game objects.
Definition: object.h:59
Sound plugin interface.
Definition: sound.h:57