#include <effects.h>
Inheritance diagram for Sprites_effect:
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_object * | item |
Tile_coord | pos |
int | xoff |
int | yoff |
int | deltax |
int | deltay |
Definition at line 92 of file effects.h.
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:
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:
ShapeID Sprites_effect::sprite [protected] |
int Sprites_effect::frames [protected] |
Game_object* Sprites_effect::item [protected] |
Tile_coord Sprites_effect::pos [protected] |
int Sprites_effect::xoff [protected] |
int Sprites_effect::yoff [protected] |
int Sprites_effect::deltax [protected] |
int Sprites_effect::deltay [protected] |