22 #ifndef NANCY_MISC_LIGHTNING_H 23 #define NANCY_MISC_LIGHTNING_H 25 #include "engines/nancy/commontypes.h" 34 enum LightningState { kBegin, kStartPulse, kPulse, kThunder, kNotRunning };
36 void beginLightning(int16 distance, uint16 pulseTime, int16 rgbPercent);
42 void handlePulse(
bool on);
46 LightningState _state = kNotRunning;
48 int16 _minRGBPercent = 0;
49 int16 _maxRGBPercent = 0;
51 int16 _minInterPulseDelay = 0;
52 int16 _maxInterPulseDelay = 0;
54 int16 _minPulseLength = 5;
55 int16 _maxPulseLength = 0;
57 int16 _minSoundStartDelay = 0;
58 int16 _maxSoundStartDelay = 0;
60 uint32 _nextStateTime = 0;
61 uint32 _nextSoundTime0 = 0;
62 uint32 _nextSoundTime1 = 0;
64 int _nextSoundToPlay = 0;
73 #endif // NANCY_MISC_LIGHTNING_H
Definition: lightning.h:32
Definition: actionmanager.h:32