|
Pol
Rev 533
|
#include <party.h>
Inheritance diagram for Party:
Collaboration diagram for Party: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 |
| 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.
| 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.
| void Party::disband | ( | ) |
Definition at line 431 of file party.cpp.
References _candidates_serials, _member_serials, _offlinemember_serials, ExportedFunction::call(), Character::candidate_of(), Character::client, CLP_Disbanded, CreatePartyRefObjImp(), Character::has_active_client(), Party_Cfg::Hooks, Character::offline_mem_of(), Party_Cfg::OnDisband, Character::party(), send_empty_party(), send_sysmessage_cl(), and system_find_mobile().
Referenced by handle_remove(), and handle_remove_member_cursor().
Here is the call graph for this function:
Here is the caller graph for this function:| 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:| u32 Party::leader | ( | ) |
Definition at line 241 of file party.cpp.
References _leaderserial.
Referenced by getPartyParam(), handle_accept_invite(), handle_decline_invite(), handle_remove(), handle_remove_member_cursor(), invite_timeout(), PartyExecutorModule::mf_DisbandParty(), and on_loggoff_party().
Here is the caller graph for this function:| void Party::on_mana_changed | ( | Character * | chr | ) |
Definition at line 583 of file party.cpp.
References _member_serials, Character::client, VitalValue::current_ones(), Character::has_active_client(), UoClientGeneral::Mapping::id, UoClientGeneral::mana, VitalValue::maximum_ones(), PktHelper::PacketOut< T >::Send(), UObject::serial_ext, system_find_mobile(), uoclient_general, Character::vital(), PacketWriterDefs::PacketWriter< _id, _size, _sub >::Write(), and PacketWriterDefs::PacketWriter< _id, _size, _sub >::WriteFlipped().
Referenced by send_uo_mana().
Here is the call graph for this function:
Here is the caller graph for this function:| void Party::on_stam_changed | ( | Character * | chr | ) |
Definition at line 611 of file party.cpp.
References _member_serials, Character::client, VitalValue::current_ones(), Character::has_active_client(), UoClientGeneral::Mapping::id, UoClientGeneral::mana, VitalValue::maximum_ones(), PktHelper::PacketOut< T >::Send(), UObject::serial_ext, system_find_mobile(), uoclient_general, Character::vital(), PacketWriterDefs::PacketWriter< _id, _size, _sub >::Write(), and PacketWriterDefs::PacketWriter< _id, _size, _sub >::WriteFlipped().
Referenced by send_uo_stamina().
Here is the call graph for this function:
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:| bool Party::register_with_members | ( | ) |
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_member_list | ( | Character * | to_chr | ) |
Definition at line 391 of file party.cpp.
References _member_serials, Character::client, Character::has_active_client(), PacketWriterDefs::PacketInterface::offset, PKTBI_BF_06::PARTYCMD_ADD, PktHelper::PacketOut< T >::Send(), UObject::serial_ext, system_find_mobile(), PacketWriterDefs::PacketWriter< _id, _size, _sub >::Write(), and PacketWriterDefs::PacketWriter< _id, _size, _sub >::WriteFlipped().
Referenced by handle_accept_invite(), handle_remove(), handle_remove_member_cursor(), PartyExecutorModule::mf_CreateParty(), on_loggoff_party(), and on_loggon_party().
Here is the call graph for this function:
Here is the caller graph for this function:| void Party::send_member_msg_private | ( | Character * | chr, |
| Character * | tochr, | ||
| u16 * | wtext, | ||
| size_t | wtextlen | ||
| ) |
Definition at line 685 of file party.cpp.
References ExportedFunction::call_object(), Party_Cfg::ChangePrivateChat, Character::client, convertArrayToUC(), convertUCtoArray(), Party_Cfg::General, Character::has_active_client(), Party_Cfg::Hooks, BObject::impptr(), BObjectImp::isa(), BObjectImp::isTrue(), Character::make_ref(), PacketWriterDefs::PacketInterface::offset, BObjectImp::OTArray, BObjectImp::OTLong, PKTBI_BF_06::PARTYCMD_MEMBER_MSG, Party_Cfg::PrivateMsgPrefix, Party_Cfg::PrivateMsgPrefixLen, ObjArray::ref_arr, PktHelper::PacketOut< T >::Send(), UObject::serial_ext, SPEECH_MAX_LEN, PacketWriterDefs::PacketWriter< _id, _size, _sub >::Write(), and PacketWriterDefs::PacketWriter< _id, _size, _sub >::WriteFlipped().
Referenced by handle_member_msg(), handle_party_msg(), and PartyExecutorModule::mf_SendPrivatePartyMsg().
Here is the call graph for this function:
Here is the caller graph for this function:| void Party::send_member_msg_public | ( | Character * | chr, |
| u16 * | wtext, | ||
| size_t | wtextlen | ||
| ) |
Definition at line 640 of file party.cpp.
References _member_serials, ExportedFunction::call_object(), Party_Cfg::ChangePublicChat, Character::client, convertArrayToUC(), convertUCtoArray(), Character::has_active_client(), Party_Cfg::Hooks, BObject::impptr(), BObjectImp::isa(), BObjectImp::isTrue(), Character::make_ref(), PacketWriterDefs::PacketInterface::offset, BObjectImp::OTArray, BObjectImp::OTLong, PKTBI_BF_06::PARTYCMD_PARTY_MSG, ObjArray::ref_arr, PktHelper::PacketOut< T >::Send(), UObject::serial_ext, SPEECH_MAX_LEN, system_find_mobile(), PacketWriterDefs::PacketWriter< _id, _size, _sub >::Write(), and PacketWriterDefs::PacketWriter< _id, _size, _sub >::WriteFlipped().
Referenced by handle_party_msg(), and PartyExecutorModule::mf_SendPartyMsg().
Here is the call graph for this function:
Here is the caller graph for this function:| void Party::send_msg_to_all | ( | unsigned int | clilocnr, |
| const char * | affix = 0, |
||
| Character * | exeptchr = NULL |
||
| ) |
Definition at line 519 of file party.cpp.
References _member_serials, build_sysmessage_cl(), build_sysmessage_cl_affix(), Character::client, PktHelper::PacketOut< T >::Get(), Character::has_active_client(), PktHelper::PacketOut< T >::Send(), and system_find_mobile().
Referenced by handle_accept_invite(), PartyExecutorModule::mf_CreateParty(), on_loggoff_party(), on_loggon_party(), and send_remove_member().
Here is the call graph for this function:
Here is the caller graph for this function:| void Party::send_remove_member | ( | Character * | chr, |
| bool * | disband | ||
| ) |
Definition at line 467 of file party.cpp.
References _leaderserial, _member_serials, Character::client, CLP_Last_Person, CLP_Player_Removed, Character::has_active_client(), PacketWriterDefs::PacketInterface::offset, PKTBI_BF_06::PARTYCMD_REMOVE, PktHelper::PacketOut< T >::Send(), send_msg_to_all(), UObject::serial, UObject::serial_ext, system_find_mobile(), test_size(), PacketWriterDefs::PacketWriter< _id, _size, _sub >::Write(), and PacketWriterDefs::PacketWriter< _id, _size, _sub >::WriteFlipped().
Referenced by handle_remove(), handle_remove_member_cursor(), and on_loggoff_party().
Here is the call graph for this function:
Here is the caller graph for this function:| 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:friend class EPartyRefObjImp [friend] |
vector<u32> Party::_candidates_serials [private] |
Definition at line 66 of file party.h.
Referenced by add_candidate(), add_member(), can_add(), cleanup(), disband(), is_candidate(), remove_candidate(), and test_size().
u32 Party::_leaderserial [private] |
Definition at line 68 of file party.h.
Referenced by is_leader(), leader(), Party(), printOn(), register_with_members(), send_remove_member(), and set_leader().
vector<u32> Party::_member_serials [private] |
Definition at line 65 of file party.h.
Referenced by add_candidate(), add_member(), can_add(), cleanup(), disband(), get_member_at(), is_member(), on_mana_changed(), on_stam_changed(), Party(), printOn(), register_with_members(), remove_member(), send_member_list(), send_member_msg_public(), send_msg_to_all(), send_remove_member(), send_stats_on_add(), set_leader(), and test_size().
vector<u32> Party::_offlinemember_serials [private] |
Definition at line 67 of file party.h.
Referenced by add_offline_mem(), cleanup(), disband(), and remove_offline_mem().
PropertyList Party::_proplist [private] |