Npc_proximity_handler Class Reference

#include <npcnear.h>

Inheritance diagram for Npc_proximity_handler:

Inheritance graph
[legend]
Collaboration diagram for Npc_proximity_handler:

Collaboration graph
[legend]
List of all members.

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_windowgwin
unsigned long wait_until

Detailed Description

Definition at line 34 of file npcnear.h.


Constructor & Destructor Documentation

Npc_proximity_handler::Npc_proximity_handler ( Game_window gw  )  [inline]

Definition at line 39 of file npcnear.h.

References wait_until.


Member Function Documentation

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:


Member Data Documentation

Game_window* Npc_proximity_handler::gwin [private]

Definition at line 36 of file npcnear.h.

unsigned long Npc_proximity_handler::wait_until [private]

Definition at line 37 of file npcnear.h.

Referenced by Npc_proximity_handler().


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