Sprites_effect Class Reference

#include <effects.h>

Inheritance diagram for Sprites_effect:

Inheritance graph
[legend]
Collaboration diagram for Sprites_effect:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Sprites_effect (int num, Tile_coord p, int dx=0, int dy=0, int delay=0)
 Sprites_effect (int num, Game_object *it, int xf, int yf, int dx, int dy)
virtual void handle_event (unsigned long time, long udata)
virtual void paint ()

Protected Member Functions

void add_dirty (int frnum)

Protected Attributes

ShapeID sprite
int frames
Game_objectitem
Tile_coord pos
int xoff
int yoff
int deltax
int deltay

Detailed Description

Definition at line 92 of file effects.h.


Constructor & Destructor Documentation

Sprites_effect::Sprites_effect ( int  num,
Tile_coord  p,
int  dx = 0,
int  dy = 0,
int  delay = 0 
)

Definition at line 325 of file effects.cc.

References Time_queue::add(), Game_window::get_instance(), Game::get_ticks(), Game_window::get_tqueue(), and gwin.

Here is the call graph for this function:

Sprites_effect::Sprites_effect ( int  num,
Game_object it,
int  xf,
int  yf,
int  dx,
int  dy 
)

Definition at line 344 of file effects.cc.

References Time_queue::add(), Game_window::get_instance(), Game::get_ticks(), Game_object::get_tile(), Game_window::get_tqueue(), and gwin.

Here is the call graph for this function:


Member Function Documentation

void Sprites_effect::add_dirty ( int  frnum  )  [inline, protected]

Definition at line 364 of file effects.cc.

References Game_window::add_dirty(), c_tilesize, Game_window::clip_to_win(), Rectangle::enlarge(), Game_window::get_scrolltx(), Game_window::get_scrollty(), Game_window::get_shape_rect(), and gwin.

Here is the call graph for this function:

void Sprites_effect::handle_event ( unsigned long  time,
long  udata 
) [virtual]

Implements Time_sensitive.

Reimplemented in Explosion_effect.

Definition at line 384 of file effects.cc.

References Time_queue::add(), Game_window::add_dirty(), Game_window::get_instance(), Game_window::get_std_delay(), Game_object::get_tile(), Game_window::get_tqueue(), gwin, Game_window::set_all_dirty(), and Game_window::set_painted().

Referenced by Explosion_effect::handle_event().

Here is the call graph for this function:

void Sprites_effect::paint (  )  [virtual]

Reimplemented from Special_effect.

Definition at line 417 of file effects.cc.

References c_tilesize, Game_window::get_scrolltx(), Game_window::get_scrollty(), and gwin.

Here is the call graph for this function:


Member Data Documentation

ShapeID Sprites_effect::sprite [protected]

Definition at line 95 of file effects.h.

int Sprites_effect::frames [protected]

Definition at line 98 of file effects.h.

Game_object* Sprites_effect::item [protected]

Definition at line 99 of file effects.h.

Tile_coord Sprites_effect::pos [protected]

Definition at line 100 of file effects.h.

int Sprites_effect::xoff [protected]

Definition at line 101 of file effects.h.

int Sprites_effect::yoff [protected]

Definition at line 101 of file effects.h.

int Sprites_effect::deltax [protected]

Definition at line 102 of file effects.h.

int Sprites_effect::deltay [protected]

Definition at line 102 of file effects.h.


The documentation for this class was generated from the following files:
Generated on Mon Jul 9 15:03:47 2007 for ExultEngine by  doxygen 1.5.1