|
Colobot
|
Lightning effect renderer. More...
#include <lightning.h>
Public Member Functions | |
| 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. | |
Protected Types | |
| enum | LightningPhase { LP_WAIT, LP_FLASH } |
Protected Member Functions | |
| bool | EventFrame (const Event &event) |
| Updates lightning. | |
| CObject * | SearchObject (Math::Vector pos) |
| Seeks for the object closest to the lightning. | |
Protected Attributes | |
| CEngine * | m_engine |
| CTerrain * | m_terrain |
| CCamera * | m_camera |
| CSoundInterface * | m_sound |
| bool | m_lightningExists |
| float | m_sleep |
| float | m_delay |
| float | m_magnetic |
| float | m_speed |
| float | m_progress |
| Math::Vector | m_pos |
| LightningPhase | m_phase |
| Math::Point | m_shift [FLASH_SEGMENTS] |
| float | m_width [FLASH_SEGMENTS] |
Static Protected Attributes | |
| static const short | FLASH_SEGMENTS = 50 |
Lightning effect renderer.
TODO: documentation
1.8.5