Lightning_effect Class Reference

#include <effects.h>

Inheritance diagram for Lightning_effect:

Inheritance graph
[legend]
Collaboration diagram for Lightning_effect:

Collaboration graph
[legend]
List of all members.

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

Detailed Description

Definition at line 274 of file effects.h.


Constructor & Destructor Documentation

Lightning_effect::Lightning_effect ( int  duration,
int  delay = 0 
) [inline]

Definition at line 280 of file effects.h.

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:


Member Function Documentation

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:


Friends And Related Function Documentation

friend class Storm_effect [friend]

Definition at line 278 of file effects.h.


Member Data Documentation

int Lightning_effect::active [static, private]

Definition at line 276 of file effects.h.

bool Lightning_effect::flashing [private]

Definition at line 277 of file effects.h.


The documentation for this class was generated from the following files:
Generated on Mon Jul 9 14:56:52 2007 for ExultEngine by  doxygen 1.5.1