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

#include <LightningChain.h>

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

Public Member Functions

double Duration () const
double SegmentStart (int index) const
void Activate (int index)
void Start (uint32_t packetSeed, const Path &geometry)
void Update (double elapsed)
Public Member Functions inherited from LightningStrike::Animation
double Duration () const
void Start (uint32_t strikeSeed, double durationSeconds=0)
void Update (double elapsed)

Public Attributes

Path path {}
Vector3 groundpos {}
Vector3 cloudpos {}
double sequenceAge =0
double boltDuration =0
int activeSegment =0
Public Attributes inherited from LightningStrike::Animation
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 33 of file LightningChain.h.

Member Function Documentation

◆ Activate()

void LightningChain::Animation::Activate ( int index)
inline

Definition at line 41 of file LightningChain.h.

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

◆ Duration()

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

Definition at line 39 of file LightningChain.h.

Here is the caller graph for this function:

◆ SegmentStart()

double LightningChain::Animation::SegmentStart ( int index) const
inline

Definition at line 40 of file LightningChain.h.

Here is the caller graph for this function:

◆ Start()

void LightningChain::Animation::Start ( uint32_t packetSeed,
const Path & geometry )
inline

Definition at line 48 of file LightningChain.h.

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

◆ Update()

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

Definition at line 57 of file LightningChain.h.

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

Member Data Documentation

◆ activeSegment

int LightningChain::Animation::activeSegment =0

Definition at line 38 of file LightningChain.h.

◆ boltDuration

double LightningChain::Animation::boltDuration =0

Definition at line 37 of file LightningChain.h.

◆ cloudpos

Vector3 LightningChain::Animation::cloudpos {}

Definition at line 36 of file LightningChain.h.

◆ groundpos

Vector3 LightningChain::Animation::groundpos {}

Definition at line 36 of file LightningChain.h.

◆ path

Path LightningChain::Animation::path {}

Definition at line 35 of file LightningChain.h.

◆ sequenceAge

double LightningChain::Animation::sequenceAge =0

Definition at line 37 of file LightningChain.h.


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