Rise
The Vieneo Province
Loading...
Searching...
No Matches
LightningStrike::Animation Struct Reference

#include <LightningStrike.h>

Inheritance diagram for LightningStrike::Animation:
[legend]
Collaboration diagram for LightningStrike::Animation:
[legend]

Public Member Functions

double Duration () const
void Start (uint32_t strikeSeed, double durationSeconds=0)
void Update (double elapsed)

Public Attributes

bool inuse =false
uint32_t seed =0
double age =0
int strokeCount =Timing::MinStrokes
float flashBrightness =0
float growth =0
double growthSeconds =Timing::Leader.minimumSeconds
double tailSeconds =Timing::Tail.minimumSeconds
std::array< Stroke, Timing::MaxStrokes > strokes {}

Detailed Description

Definition at line 25 of file LightningStrike.h.

Member Function Documentation

◆ Duration()

double LightningStrike::Animation::Duration ( ) const
inline

Definition at line 35 of file LightningStrike.h.

Here is the caller graph for this function:

◆ Start()

void LightningStrike::Animation::Start ( uint32_t strikeSeed,
double durationSeconds = 0 )
inline

Definition at line 37 of file LightningStrike.h.

Here is the caller graph for this function:

◆ Update()

void LightningStrike::Animation::Update ( double elapsed)
inline

Definition at line 87 of file LightningStrike.h.

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ age

double LightningStrike::Animation::age =0

Definition at line 29 of file LightningStrike.h.

◆ flashBrightness

float LightningStrike::Animation::flashBrightness =0

Definition at line 31 of file LightningStrike.h.

◆ growth

float LightningStrike::Animation::growth =0

Definition at line 31 of file LightningStrike.h.

◆ growthSeconds

double LightningStrike::Animation::growthSeconds =Timing::Leader.minimumSeconds

Definition at line 32 of file LightningStrike.h.

◆ inuse

bool LightningStrike::Animation::inuse =false

Definition at line 27 of file LightningStrike.h.

◆ seed

uint32_t LightningStrike::Animation::seed =0

Definition at line 28 of file LightningStrike.h.

◆ strokeCount

int LightningStrike::Animation::strokeCount =Timing::MinStrokes

Definition at line 30 of file LightningStrike.h.

◆ strokes

std::array<Stroke,Timing::MaxStrokes> LightningStrike::Animation::strokes {}

Definition at line 33 of file LightningStrike.h.

◆ tailSeconds

double LightningStrike::Animation::tailSeconds =Timing::Tail.minimumSeconds

Definition at line 32 of file LightningStrike.h.


The documentation for this struct was generated from the following file: