SilverLining::LightningListener Class Reference

Extend this class in order to receive notifications of lightning strike events from cumulonimbus cloud layers. More...

#include <LightningListener.h>

List of all members.

Public Member Functions

virtual void LightningStartedEvent (double lightningPosX, double lightningPosY, double lightningPosZ)=0
 This pure virtual method will be called any time a lightning strike begins within a CloudLayer.

Detailed Description

Extend this class in order to receive notifications of lightning strike events from cumulonimbus cloud layers.


Member Function Documentation

virtual void SilverLining::LightningListener::LightningStartedEvent ( double  lightningPosX,
double  lightningPosY,
double  lightningPosZ 
) [pure virtual]

This pure virtual method will be called any time a lightning strike begins within a CloudLayer.

You must pass your LightningListener object's pointer into CloudLayer::AddLightningListener() in order to receive lightning events from a given CloudLayer. Presently, only CumulonimbusCloudLayer objects will fire these events. The position returned is the location of the lightning strike's origin, in world units.


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

Generated by  doxygen 1.6.2