Party_manager Class Reference

#include <party.h>

Inheritance diagram for Party_manager:

Inheritance graph
[legend]
Collaboration diagram for Party_manager:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Party_manager ()
void set_count (int n)
void set_member (int i, int npcnum)
int get_count ()
int get_member (int i)
int get_dead_count ()
int get_dead_member (int i)
bool add_to_party (Actor *npc)
bool remove_from_party (Actor *npc)
int in_dead_party (Actor *npc)
bool add_to_dead_party (Actor *npc)
bool remove_from_dead_party (Actor *npc)
void update_party_status (Actor *npc)
void link_party ()
void get_followers (int dir)

Private Member Functions

void move_followers (Actor *npc, int vindex, int dir)
int step (Actor *npc, Actor *leader, int dir, Tile_coord dest)

Private Attributes

int party [8]
int party_count
int dead_party [16]
int dead_party_count
Actorvalid [8]
int validcnt

Detailed Description

Definition at line 36 of file party.h.


Constructor & Destructor Documentation

Party_manager::Party_manager (  ) 

Definition at line 43 of file party.cc.


Member Function Documentation

void Party_manager::move_followers ( Actor npc,
int  vindex,
int  dir 
) [private]

Definition at line 310 of file party.cc.

References Actor::is_dead(), Exult_server::npc, and Ucscript::step.

Here is the call graph for this function:

int Party_manager::step ( Actor npc,
Actor leader,
int  dir,
Tile_coord  dest 
) [private]

Definition at line 564 of file party.cc.

References Frames_sequence::decrement(), Frames_sequence::find_unrotated(), Get_dir_from(), Frames_sequence::get_next(), Get_step_tile(), Is_step_okay(), Exult_server::npc, Take_best_step(), Tile_coord::tx, and Tile_coord::ty.

Here is the call graph for this function:

void Party_manager::set_count ( int  n  )  [inline]

Definition at line 49 of file party.h.

References party_count.

void Party_manager::set_member ( int  i,
int  npcnum 
) [inline]

Definition at line 51 of file party.h.

References party.

int Party_manager::get_count (  )  [inline]

Definition at line 53 of file party.h.

References party_count.

Referenced by ActionCombatStats(), ActionInventory(), ActionStats(), Face_stats::create_buttons(), Find_member_blocking(), Face_stats::has_changed(), Newfile_gump::LoadSaveGameDetails(), and Game_window::write_saveinfo().

int Party_manager::get_member ( int  i  )  [inline]

Definition at line 55 of file party.h.

References party.

Referenced by Face_stats::create_buttons(), Find_member_blocking(), Get_party_member(), Face_stats::has_changed(), Newfile_gump::LoadSaveGameDetails(), and Game_window::write_saveinfo().

int Party_manager::get_dead_count (  )  [inline]

Definition at line 57 of file party.h.

References dead_party_count.

Referenced by Cheat::heal_party().

int Party_manager::get_dead_member ( int  i  )  [inline]

Definition at line 59 of file party.h.

References dead_party.

Referenced by Cheat::heal_party().

bool Party_manager::add_to_party ( Actor npc  ) 

Definition at line 58 of file party.cc.

References Obj_flags::in_party, Exult_server::npc, and Obj_flags::okay_to_take.

Referenced by CheatScreen::FlagActivate().

bool Party_manager::remove_from_party ( Actor npc  ) 

Definition at line 81 of file party.cc.

References Game_window::get_npc(), gwin, Obj_flags::in_party, Exult_server::npc, and Actor::set_party_id().

Referenced by CheatScreen::FlagActivate().

Here is the call graph for this function:

int Party_manager::in_dead_party ( Actor npc  ) 

Definition at line 118 of file party.cc.

References Exult_server::npc.

bool Party_manager::add_to_dead_party ( Actor npc  ) 

Definition at line 136 of file party.cc.

References Exult_server::npc.

bool Party_manager::remove_from_dead_party ( Actor npc  ) 

Definition at line 154 of file party.cc.

References Exult_server::npc.

void Party_manager::update_party_status ( Actor npc  ) 

Definition at line 177 of file party.cc.

References Exult_server::npc.

void Party_manager::link_party (  ) 

Definition at line 200 of file party.cc.

References Game_window::get_main_actor(), Game_window::get_npc(), gwin, Obj_flags::in_party, Exult_server::npc, Obj_flags::okay_to_take, Actor::set_flag(), and Container_game_object::set_flag_recursively().

Here is the call graph for this function:

void Party_manager::get_followers ( int  dir  ) 

Definition at line 284 of file party.cc.

References Obj_flags::asleep, Game_window::get_main_actor(), Game_window::get_npc(), gwin, Exult_server::npc, and Obj_flags::paralyzed.

Here is the call graph for this function:


Member Data Documentation

int Party_manager::party[8] [private]

Definition at line 38 of file party.h.

Referenced by get_member(), and set_member().

int Party_manager::party_count [private]

Definition at line 39 of file party.h.

Referenced by get_count(), and set_count().

int Party_manager::dead_party[16] [private]

Definition at line 40 of file party.h.

Referenced by get_dead_member().

int Party_manager::dead_party_count [private]

Definition at line 41 of file party.h.

Referenced by get_dead_count().

Actor* Party_manager::valid[8] [private]

Definition at line 42 of file party.h.

int Party_manager::validcnt [private]

Definition at line 43 of file party.h.


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