#include <effects.h>
Collaboration diagram for Effects_manager:
Public Member Functions | |
Effects_manager (Game_window *g) | |
~Effects_manager () | |
void | add_text (const char *msg, Game_object *item) |
void | add_text (const char *msg, int x, int y) |
void | center_text (const char *msg) |
void | add_effect (Special_effect *effect) |
void | add_text_effect (Text_effect *txt) |
void | remove_text_effect (Game_object *item) |
void | remove_effect (Special_effect *effect) |
void | remove_text_effect (Text_effect *txt) |
void | remove_all_effects (bool repaint=false) |
void | remove_text_effects () |
void | remove_weather_effects (int dist=0) |
int | get_weather () |
void | paint () |
void | paint_text () |
Private Attributes | |
Game_window * | gwin |
Special_effect * | effects |
Text_effect * | texts |
Definition at line 43 of file effects.h.
Effects_manager::Effects_manager | ( | Game_window * | g | ) | [inline] |
Effects_manager::~Effects_manager | ( | ) |
Definition at line 56 of file effects.cc.
References remove_all_effects().
Here is the call graph for this function:
void Effects_manager::add_text | ( | const char * | msg, | |
Game_object * | item | |||
) |
void Effects_manager::add_text | ( | const char * | msg, | |
int | x, | |||
int | y | |||
) |
Definition at line 88 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:
void Effects_manager::center_text | ( | const char * | msg | ) |
Definition at line 104 of file effects.cc.
References Game_window::get_height(), Shape_manager::get_instance(), Shape_manager::get_text_width(), Game_window::get_width(), and gwin.
Referenced by ActionCreateShape(), ActionQuickrestore(), ActionQuicksave(), change_gamma(), Cheat::change_gender(), Cheat::create_coins(), Cheat::create_last_shape(), Cheat::cursor_teleport(), Cheat::delete_object(), Cheat::fake_time_period(), Game_map::find_unused_shapes(), Cheat::heal_party(), Cheat::levelup_party(), make_screenshot(), Cheat::map_teleport(), Cheat::toggle_eggs(), Cheat::toggle_god(), Cheat::toggle_grab_actor(), Cheat::toggle_hack_mover(), Cheat::toggle_infravision(), Cheat::toggle_map_editor(), Cheat::toggle_number_npcs(), Cheat::toggle_pickpocket(), and Cheat::toggle_wizard().
Here is the call graph for this function:
void Effects_manager::add_effect | ( | Special_effect * | effect | ) |
Definition at line 119 of file effects.cc.
References Game_window::effects, Special_effect::next, and Special_effect::prev.
Referenced by Combat_schedule::now_what(), Usecode_internal::UI_explode(), Usecode_internal::UI_fire_cannon(), Usecode_internal::UI_lightning(), Usecode_internal::UI_obj_sprite_effect(), Usecode_internal::UI_play_music(), Usecode_internal::UI_projectile_effect(), and Usecode_internal::UI_sprite_effect().
void Effects_manager::add_text_effect | ( | Text_effect * | txt | ) |
void Effects_manager::remove_text_effect | ( | Game_object * | item | ) |
Definition at line 151 of file effects.cc.
References gwin, and Game_window::paint().
Referenced by Usecode_internal::item_say(), and Usecode_internal::UI_clear_item_say().
Here is the call graph for this function:
void Effects_manager::remove_effect | ( | Special_effect * | effect | ) |
Definition at line 169 of file effects.cc.
References Game_window::effects, Game_window::get_tqueue(), gwin, Time_sensitive::in_queue(), and Time_queue::remove().
Here is the call graph for this function:
void Effects_manager::remove_text_effect | ( | Text_effect * | txt | ) |
Definition at line 189 of file effects.cc.
References Game_window::get_tqueue(), gwin, Time_sensitive::in_queue(), and Time_queue::remove().
Here is the call graph for this function:
void Effects_manager::remove_all_effects | ( | bool | repaint = false |
) |
Definition at line 209 of file effects.cc.
References Game_window::effects, gwin, and Game_window::paint().
Referenced by ~Effects_manager().
Here is the call graph for this function:
void Effects_manager::remove_text_effects | ( | ) |
Definition at line 228 of file effects.cc.
References gwin, and Game_window::set_all_dirty().
Referenced by Usecode_internal::show_npc_face().
Here is the call graph for this function:
void Effects_manager::remove_weather_effects | ( | int | dist = 0 |
) |
Definition at line 242 of file effects.cc.
References Game_window::effects, Game_window::get_main_actor(), Game_object::get_tile(), gwin, Special_effect::is_weather(), Game_window::main_actor, Special_effect::next, and Game_window::set_all_dirty().
Referenced by Game_window::emulate_cache().
Here is the call graph for this function:
int Effects_manager::get_weather | ( | ) |
Definition at line 268 of file effects.cc.
References Game_window::effects, Special_effect::is_weather(), and Special_effect::next.
Referenced by Usecode_internal::UI_get_weather().
Here is the call graph for this function:
void Effects_manager::paint | ( | ) |
Definition at line 291 of file effects.cc.
References Game_window::effects, Special_effect::next, and Special_effect::paint().
Here is the call graph for this function:
void Effects_manager::paint_text | ( | ) |
Definition at line 303 of file effects.cc.
References Text_effect::next, and Text_effect::paint().
Here is the call graph for this function:
Game_window* Effects_manager::gwin [private] |
Special_effect* Effects_manager::effects [private] |
Text_effect* Effects_manager::texts [private] |