#include <tqueue.h>
Collaboration diagram for Time_queue:
Public Member Functions | |
Time_queue () | |
void | clear () |
void | add (uint32 t, Time_sensitive *obj, long ud) |
int | remove (Time_sensitive *obj) |
int | remove (Time_sensitive *obj, long udata) |
int | find (Time_sensitive *obj) |
long | find_delay (Time_sensitive *obj, uint32 curtime) |
void | activate (uint32 curtime) |
void | pause (uint32 curtime) |
void | resume (uint32 curtime) |
Private Types | |
typedef std::list< Queue_entry > | Temporal_sequence |
Private Member Functions | |
void | activate0 (uint32 curtime) |
void | activate_always (uint32 curtime) |
Private Attributes | |
Temporal_sequence | data |
uint32 | pause_time |
int | paused |
Friends | |
class | Time_queue_iterator |
Definition at line 78 of file tqueue.h.
typedef std::list<Queue_entry> Time_queue::Temporal_sequence [private] |
void Time_queue::activate0 | ( | uint32 | curtime | ) | [private] |
Definition at line 214 of file tqueue.cc.
References Queue_entry::handler, Exult_server::obj, and Queue_entry::udata.
Referenced by activate().
void Time_queue::activate_always | ( | uint32 | curtime | ) | [private] |
Definition at line 239 of file tqueue.cc.
References Queue_entry::handler, Exult_server::obj, and Queue_entry::udata.
Referenced by activate().
void Time_queue::clear | ( | ) |
void Time_queue::add | ( | uint32 | t, | |
Time_sensitive * | obj, | |||
long | ud | |||
) |
Definition at line 69 of file tqueue.cc.
References Exult_server::obj, and Queue_entry::set().
Referenced by Egg_object::activate(), Npc_proximity_handler::add(), Background_noise::Background_noise(), Death_vortex::Death_vortex(), Fire_field_effect::Fire_field_effect(), Missile_launcher::handle_event(), Barge_object::handle_event(), Wiggle_animator::handle_event(), Field_frame_animator::handle_event(), Sfx_animator::handle_event(), Frame_animator::handle_event(), Npc_flag_timer::handle_event(), Npc_protection_timer::handle_event(), Npc_invisibility_timer::handle_event(), Npc_sleep_timer::handle_event(), Npc_poison_timer::handle_event(), Npc_hunger_timer::handle_event(), Background_noise::handle_event(), Fire_field_effect::handle_event(), Earthquake::handle_event(), Clouds_effect::handle_event(), Sparkle_effect::handle_event(), Storm_effect::handle_event(), Lightning_effect::handle_event(), Rain_effect::handle_event(), Text_effect::handle_event(), Death_vortex::handle_event(), Projectile_effect::handle_event(), Sprites_effect::handle_event(), Npc_actor::handle_event(), Main_actor::handle_event(), Text_effect::init(), Projectile_effect::init(), Game_window::init_files(), Npc_timer::Npc_timer(), Egg_object::paint(), Npc_actor::paint(), Actor::reduce_health(), Sprites_effect::Sprites_effect(), Usecode_script::start(), Actor::start(), Animator::start_animation(), Quaking_actor::step(), Barge_object::travel_to_tile(), Usecode_internal::UI_earthquake(), and Weather_effect::Weather_effect().
Here is the call graph for this function:
int Time_queue::remove | ( | Time_sensitive * | obj | ) |
Definition at line 112 of file tqueue.cc.
References Exult_server::obj.
Referenced by Actor::die(), Handle_event(), Combat_schedule::now_what(), Npc_actor::paint(), Npc_proximity_handler::remove(), Effects_manager::remove_effect(), Effects_manager::remove_text_effect(), Egg_object::remove_this(), Npc_actor::remove_this(), Actor::start(), Animator::start_animation(), Animator::~Animator(), Background_noise::~Background_noise(), Egg_object::~Egg_object(), and Npc_timer::~Npc_timer().
int Time_queue::remove | ( | Time_sensitive * | obj, | |
long | udata | |||
) |
int Time_queue::find | ( | Time_sensitive * | obj | ) |
long Time_queue::find_delay | ( | Time_sensitive * | obj, | |
uint32 | curtime | |||
) |
Definition at line 187 of file tqueue.cc.
References Exult_server::obj.
Referenced by Usecode_script::save().
void Time_queue::activate | ( | uint32 | curtime | ) | [inline] |
Definition at line 103 of file tqueue.h.
References activate0(), activate_always(), data, and paused.
Referenced by Handle_events(), Wait_for_arrival(), and Wizard_eye().
Here is the call graph for this function:
void Time_queue::pause | ( | uint32 | curtime | ) | [inline] |
Definition at line 111 of file tqueue.h.
References pause_time, and paused.
Referenced by Gump_manager::add_gump(), Gump_manager::do_modal_gump(), Get_click(), Newfile_gump::Newfile_gump(), Gump_manager::set_gumps_dont_pause_game(), CheatScreen::show_screen(), SoundTester::test_sound(), and Combat::toggle_pause().
void Time_queue::resume | ( | uint32 | curtime | ) |
Definition at line 269 of file tqueue.cc.
Referenced by Gump_manager::close_all_gumps(), Gump_manager::do_modal_gump(), Get_click(), Gump_manager::remove_gump(), Combat::resume(), Gump_manager::set_gumps_dont_pause_game(), CheatScreen::show_screen(), SoundTester::test_sound(), and Newfile_gump::~Newfile_gump().
friend class Time_queue_iterator [friend] |
Temporal_sequence Time_queue::data [private] |
uint32 Time_queue::pause_time [private] |
int Time_queue::paused [private] |