Lightning effect renderer.
More...
#include <src/graphics/engine/lightning.h>
|
|
| CLightning (CEngine *engine) |
| bool | Create (float sleep, float delay, float magnetic) |
| | Triggers lightning.
|
| void | Flush () |
| | Removes lightning.
|
| bool | GetStatus (float &sleep, float &delay, float &magnetic, float &progress) |
| | Gives the status of lightning.
|
| bool | SetStatus (float sleep, float delay, float magnetic, float progress) |
| | Specifies the status of lightning.
|
| bool | EventProcess (const Event &event) |
| | Management of an event.
|
| void | Draw () |
| | Draws lightning.
|
| void | StrikeAtPos (Math::Vector pos) |
| | Shoots lightning strike at given position.
|
|
| enum class | LightningPhase { Wait
, Flash
} |
|
|
CEngine * | m_engine = nullptr |
|
CTerrain * | m_terrain = nullptr |
|
CCamera * | m_camera = nullptr |
|
CSoundInterface * | m_sound = nullptr |
|
bool | m_lightningExists = false |
|
float | m_sleep = 0.0f |
|
float | m_delay = 0.0f |
|
float | m_magnetic = 0.0f |
|
float | m_speed = 0.0f |
|
float | m_progress = 0.0f |
|
Math::Vector | m_pos |
|
LightningPhase | m_phase = LightningPhase::Wait |
|
std::vector< LightningSegment > | m_segments |
Lightning effect renderer.
TODO: documentation
◆ Create()
| bool Gfx::CLightning::Create |
( |
float | sleep, |
|
|
float | delay, |
|
|
float | magnetic ) |
◆ Flush()
| void Gfx::CLightning::Flush |
( |
| ) |
|
◆ GetStatus()
| bool Gfx::CLightning::GetStatus |
( |
float & | sleep, |
|
|
float & | delay, |
|
|
float & | magnetic, |
|
|
float & | progress ) |
Gives the status of lightning.
◆ SetStatus()
| bool Gfx::CLightning::SetStatus |
( |
float | sleep, |
|
|
float | delay, |
|
|
float | magnetic, |
|
|
float | progress ) |
Specifies the status of lightning.
◆ EventProcess()
| bool Gfx::CLightning::EventProcess |
( |
const Event & | event | ) |
|
◆ Draw()
| void Gfx::CLightning::Draw |
( |
| ) |
|
◆ StrikeAtPos()
Shoots lightning strike at given position.
◆ EventFrame()
| bool Gfx::CLightning::EventFrame |
( |
const Event & | event | ) |
|
|
protected |
◆ SearchObject()
Seeks for the object closest to the lightning.
The documentation for this class was generated from the following files:
- src/graphics/engine/lightning.h
- src/graphics/engine/lightning.cpp