61 bool Create(
float sleep,
float delay,
float magnetic);
67 bool GetStatus(
float &sleep,
float &delay,
float &magnetic,
float &progress);
69 bool SetStatus(
float sleep,
float delay,
float magnetic,
float progress);
89 bool m_lightningExists;
103 LightningPhase m_phase;
105 static const short FLASH_SEGMENTS = 50;
107 float m_width[FLASH_SEGMENTS];
void Flush()
Removes lightning.
Definition: lightning.cpp:58
bool GetStatus(float &sleep, float &delay, float &magnetic, float &progress)
Gives the status of lightning.
Definition: lightning.cpp:203
Lightning effect renderer.
Definition: lightning.h:54
2D point
Definition: point.h:49
Camera moving in 3D scene.
Definition: camera.h:133
const float LTNG_PROTECTION_RADIUS
Radius of lightning protection.
Definition: lightning.h:45
Terrain loader/generator and manager.
Definition: terrain.h:222
bool EventFrame(const Event &event)
Updates lightning.
Definition: lightning.cpp:80
Namespace for (new) graphics code.
Definition: app.h:49
void Draw()
Draws lightning.
Definition: lightning.cpp:229
Vector struct and related functions.
The graphics engine.
Definition: engine.h:684
Event types, structs and event queue.
CObject * SearchObject(Math::Vector pos)
Seeks for the object closest to the lightning.
Definition: lightning.cpp:309
3D (3x1) vector
Definition: vector.h:52
Event sent by system, interface or game.
Definition: event.h:678
bool SetStatus(float sleep, float delay, float magnetic, float progress)
Specifies the status of lightning.
Definition: lightning.cpp:215
bool EventProcess(const Event &event)
Management of an event.
Definition: lightning.cpp:72
Sound plugin interface.
Definition: sound.h:151
bool Create(float sleep, float delay, float magnetic)
Triggers lightning.
Definition: lightning.cpp:179