Pol  Rev 533
Party Class Reference

#include <party.h>

+ Inheritance diagram for Party:
+ Collaboration diagram for Party:

List of all members.

Public Member Functions

 Party (ConfigElem &elem)
 Party (u32 serial)
bool add_candidate (u32 serial)
bool add_member (u32 serial)
void add_offline_mem (u32 serial)
bool can_add ()
void cleanup ()
void disband ()
u32 get_member_at (unsigned short pos)
bool is_candidate (u32 serial)
bool is_leader (u32 serial)
bool is_member (u32 serial)
u32 leader ()
void on_mana_changed (Character *chr)
void on_stam_changed (Character *chr)
void printOn (std::ostream &os) const
bool register_with_members ()
bool remove_candidate (u32 serial)
bool remove_member (u32 serial)
bool remove_offline_mem (u32 serial)
void send_member_list (Character *to_chr)
void send_member_msg_private (Character *chr, Character *tochr, u16 *wtext, size_t wtextlen)
void send_member_msg_public (Character *chr, u16 *wtext, size_t wtextlen)
void send_msg_to_all (unsigned int clilocnr, const char *affix=0, Character *exeptchr=NULL)
void send_remove_member (Character *chr, bool *disband)
void send_stat_to (Character *chr, Character *bob)
void send_stats_on_add (Character *newmember)
void set_leader (u32 serial)
bool test_size ()

Private Attributes

vector< u32_candidates_serials
u32 _leaderserial
vector< u32_member_serials
vector< u32_offlinemember_serials
PropertyList _proplist

Friends

class EPartyRefObjImp

Detailed Description

Definition at line 29 of file party.h.


Constructor & Destructor Documentation

Party::Party ( ConfigElem elem) [explicit]

Definition at line 61 of file party.cpp.

References _leaderserial, _member_serials, _proplist, PropertyList::readProperties(), ConfigElem::remove_prop(), and ConfigElem::remove_ulong().

Referenced by add_candidate().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Party::Party ( u32  serial) [explicit]

Definition at line 52 of file party.cpp.

References _member_serials.


Member Function Documentation

bool Party::add_candidate ( u32  serial)

Definition at line 303 of file party.cpp.

References _candidates_serials, _member_serials, Party_Cfg::General, and Party_Cfg::MaxPartyMembers.

Referenced by add_candidate().

+ Here is the caller graph for this function:

bool Party::add_member ( u32  serial)

Definition at line 311 of file party.cpp.

References _candidates_serials, _member_serials, Party_Cfg::General, and Party_Cfg::MaxPartyMembers.

Referenced by handle_accept_invite(), PartyExecutorModule::mf_CreateParty(), and on_loggon_party().

+ Here is the caller graph for this function:

void Party::add_offline_mem ( u32  serial)

Definition at line 319 of file party.cpp.

References _offlinemember_serials.

Referenced by on_loggoff_party().

+ Here is the caller graph for this function:

bool Party::can_add ( )

Definition at line 384 of file party.cpp.

References _candidates_serials, _member_serials, Party_Cfg::General, and Party_Cfg::MaxPartyMembers.

Referenced by add_candidate().

+ Here is the caller graph for this function:

void Party::cleanup ( )

Definition at line 234 of file party.cpp.

References _candidates_serials, _member_serials, and _offlinemember_serials.

u32 Party::get_member_at ( unsigned short  pos)

Definition at line 295 of file party.cpp.

References _member_serials.

Referenced by handle_party_msg(), and on_loggoff_party().

+ Here is the caller graph for this function:

bool Party::is_candidate ( u32  serial)

Definition at line 256 of file party.cpp.

References _candidates_serials.

Referenced by add_candidate().

+ Here is the caller graph for this function:

bool Party::is_leader ( u32  serial)

Definition at line 290 of file party.cpp.

References _leaderserial.

Referenced by add_candidate(), handle_remove(), handle_remove_member_cursor(), and on_loggoff_party().

+ Here is the caller graph for this function:

bool Party::is_member ( u32  serial)

Definition at line 246 of file party.cpp.

References _member_serials.

Referenced by add_candidate(), handle_decline_invite(), handle_member_msg(), handle_remove(), handle_remove_member_cursor(), RepSystem::on_pc_helps_pc(), and send_stat_to().

+ Here is the caller graph for this function:

void Party::printOn ( std::ostream &  os) const

Definition at line 729 of file party.cpp.

References _leaderserial, _member_serials, _proplist, pf_endl, PropertyList::printProperties(), and system_find_mobile().

+ Here is the call graph for this function:

Definition at line 266 of file party.cpp.

References _leaderserial, _member_serials, Character::party(), system_find_mobile(), and test_size().

+ Here is the call graph for this function:

bool Party::remove_candidate ( u32  serial)

Definition at line 324 of file party.cpp.

References _candidates_serials.

Referenced by handle_accept_invite(), handle_decline_invite(), and invite_timeout().

+ Here is the caller graph for this function:

bool Party::remove_member ( u32  serial)

Definition at line 337 of file party.cpp.

References _member_serials.

Referenced by handle_remove(), handle_remove_member_cursor(), and on_loggoff_party().

+ Here is the caller graph for this function:

bool Party::remove_offline_mem ( u32  serial)

Definition at line 350 of file party.cpp.

References _offlinemember_serials.

Referenced by on_loggon_party().

+ Here is the caller graph for this function:

void Party::send_msg_to_all ( unsigned int  clilocnr,
const char *  affix = 0,
Character exeptchr = NULL 
)
void Party::send_stat_to ( Character chr,
Character bob 
)

Definition at line 547 of file party.cpp.

References Character::client, is_member(), Character::is_visible_to_me(), pol_distance(), UObject::realm, send_attributes_normalized(), send_short_statmsg(), UObject::serial, UObject::x, and UObject::y.

Referenced by srequest().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void Party::send_stats_on_add ( Character newmember)

Definition at line 559 of file party.cpp.

References _member_serials, Character::client, Character::has_active_client(), send_attributes_normalized(), send_short_statmsg(), and system_find_mobile().

Referenced by handle_accept_invite(), PartyExecutorModule::mf_CreateParty(), and on_loggon_party().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void Party::set_leader ( u32  serial)

Definition at line 363 of file party.cpp.

References _leaderserial, and _member_serials.

Referenced by on_loggoff_party().

+ Here is the caller graph for this function:

bool Party::test_size ( )

Definition at line 377 of file party.cpp.

References _candidates_serials, and _member_serials.

Referenced by handle_decline_invite(), invite_timeout(), on_loggoff_party(), register_with_members(), and send_remove_member().

+ Here is the caller graph for this function:


Friends And Related Function Documentation

friend class EPartyRefObjImp [friend]

Definition at line 62 of file party.h.


Member Data Documentation

Definition at line 67 of file party.h.

Referenced by add_offline_mem(), cleanup(), disband(), and remove_offline_mem().

Definition at line 69 of file party.h.

Referenced by Party(), and printOn().


The documentation for this class was generated from the following files: