#include <effects.h>
Inheritance diagram for Lightning_effect:


Public Member Functions | |
| Lightning_effect (int duration, int delay=0) | |
| ~Lightning_effect () | |
| virtual void | handle_event (unsigned long curtime, long udata) |
Private Attributes | |
| bool | flashing |
Static Private Attributes | |
| static int | active |
Friends | |
| class | Storm_effect |
Definition at line 274 of file effects.h.
| Lightning_effect::Lightning_effect | ( | int | duration, | |
| int | delay = 0 | |||
| ) | [inline] |
| Lightning_effect::~Lightning_effect | ( | ) |
Definition at line 1162 of file effects.cc.
References Game_window::get_clock(), Game_window::get_instance(), and Game_clock::set_palette().
Here is the call graph for this function:

| void Lightning_effect::handle_event | ( | unsigned long | curtime, | |
| long | udata | |||
| ) | [virtual] |
Implements Time_sensitive.
Definition at line 1174 of file effects.cc.
References Time_queue::add(), Audio::game_sfx(), Game_window::get_instance(), Game_window::get_pal(), Audio::get_ptr(), Game_window::get_tqueue(), gwin, Game_window::is_in_dungeon(), PALETTE_LIGHTNING, Audio::play_sound_effect(), and Palette::set().
Here is the call graph for this function:

friend class Storm_effect [friend] |
int Lightning_effect::active [static, private] |
bool Lightning_effect::flashing [private] |
1.5.1