#include <npcnear.h>
Inheritance diagram for Npc_proximity_handler:
Public Member Functions | |
Npc_proximity_handler (Game_window *gw) | |
void | add (unsigned long curtime, Npc_actor *npc, int additional_secs=0) |
void | remove (Npc_actor *npc) |
void | handle_event (unsigned long curtime, long udata) |
void | wait (int secs) |
void | get_all (Actor_queue &list) |
Private Attributes | |
Game_window * | gwin |
unsigned long | wait_until |
Definition at line 34 of file npcnear.h.
Npc_proximity_handler::Npc_proximity_handler | ( | Game_window * | gw | ) | [inline] |
void Npc_proximity_handler::add | ( | unsigned long | curtime, | |
Npc_actor * | npc, | |||
int | additional_secs = 0 | |||
) |
Definition at line 50 of file npcnear.cc.
References Time_queue::add(), Game_window::get_tqueue(), gwin, Actor::hostile, and Exult_server::npc.
Here is the call graph for this function:
void Npc_proximity_handler::remove | ( | Npc_actor * | npc | ) |
Definition at line 71 of file npcnear.cc.
References Game_window::get_tqueue(), gwin, Exult_server::npc, and Time_queue::remove().
Here is the call graph for this function:
void Npc_proximity_handler::handle_event | ( | unsigned long | curtime, | |
long | udata | |||
) | [virtual] |
Implements Time_sensitive.
Definition at line 101 of file npcnear.cc.
References Obj_flags::asleep, Bg_dont_wake(), cheat, Rectangle::enlarge(), first_awakened, Game::get_game_type(), Game::get_ticks(), Game_window::get_win_tile_rect(), gwin, Rectangle::has_point(), Schedule::horiz_pace, Cheat::in_map_editor(), Game_window::is_main_actor_inside(), last_awakened, Exult_server::npc, Usecode_machine::npc_proximity, Schedule::patrol, SERPENT_ISLE, Schedule::sleep, Schedule::stand, Tile_coord::tx, Tile_coord::ty, Schedule::vert_pace, Schedule::wait, and Schedule::walk_to_schedule.
Here is the call graph for this function:
void Npc_proximity_handler::wait | ( | int | secs | ) |
Definition at line 171 of file npcnear.cc.
References Game::get_ticks().
Referenced by Gump_manager::close_all_gumps().
Here is the call graph for this function:
void Npc_proximity_handler::get_all | ( | Actor_queue & | list | ) |
Definition at line 183 of file npcnear.cc.
References Game_window::get_tqueue(), gwin, Exult_server::obj, and Exult_queue< T >::push().
Here is the call graph for this function:
Game_window* Npc_proximity_handler::gwin [private] |
unsigned long Npc_proximity_handler::wait_until [private] |