Horizon Official Technical Documentation
Horizon::Zone::UI::Guild Class Reference

#include <UserInterface.hpp>

Public Member Functions

 Guild (std::shared_ptr< ZoneSession > session)
 Guild. More...
 
 ~Guild ()
 
void create (int master_id, std::string name)
 
std::shared_ptr< ZoneSessionget_session ()
 
void request_guild_information (int type)
 
void notify_menu_interface ()
 
void change_position_info (std::vector< s_cz_reg_change_guild_positioninfo > info)
 
void change_member_positions (std::vector< s_cz_req_change_memberpos > members)
 
void change_emblem (std::string emblem)
 
void change_notice (int guild_id, std::string subject, std::string notice)
 
void invite (int account_id, int inviter_account_id, int inviter_char_id)
 
void invite (std::string name)
 
void invite_response (int guild_id, cz_join_guild_response_type response)
 
void leave (int guild_id, int account_id, int char_id, std::string reason)
 
void expel (int guild_id, int account_id, int char_id, std::string reason)
 
void send_message (std::string message)
 
void invite_ally (int account_id, int inviter_account_id, int inviter_char_id)
 
void invite_ally_response (int inviter_account_id, cz_ally_guild_response_type response)
 
void remove_related_guild (int guild_id, cz_req_delete_related_guild_relation_type relation)
 
void add_opposition (int account_id)
 
void disband (std::string key)
 
bool notify_expel_member (std::string char_name, std::string reason, std::string account_name)
 
bool notify_expel_member (std::string char_name, std::string reason)
 

Private Attributes

std::weak_ptr< ZoneSession_session
 

Constructor & Destructor Documentation

◆ Guild()

Horizon::Zone::UI::Guild::Guild ( std::shared_ptr< ZoneSession session)

Guild.

180 : _session(session)
181{
182
183}
std::weak_ptr< ZoneSession > _session
Definition: UserInterface.hpp:127

◆ ~Guild()

Horizon::Zone::UI::Guild::~Guild ( )
186{
187
188}

Member Function Documentation

◆ add_opposition()

void Horizon::Zone::UI::Guild::add_opposition ( int  account_id)
272{
273
274}

◆ change_emblem()

void Horizon::Zone::UI::Guild::change_emblem ( std::string  emblem)
216{
217
218}

◆ change_member_positions()

void Horizon::Zone::UI::Guild::change_member_positions ( std::vector< s_cz_req_change_memberpos members)
211{
212
213}

◆ change_notice()

void Horizon::Zone::UI::Guild::change_notice ( int  guild_id,
std::string  subject,
std::string  notice 
)
221{
222
223}

◆ change_position_info()

void Horizon::Zone::UI::Guild::change_position_info ( std::vector< s_cz_reg_change_guild_positioninfo info)
206{
207
208}

◆ create()

void Horizon::Zone::UI::Guild::create ( int  master_id,
std::string  name 
)
191{
192
193}

◆ disband()

void Horizon::Zone::UI::Guild::disband ( std::string  key)
277{
278
279}

◆ expel()

void Horizon::Zone::UI::Guild::expel ( int  guild_id,
int  account_id,
int  char_id,
std::string  reason 
)
247{
248
249}

◆ get_session()

std::shared_ptr< ZoneSession > Horizon::Zone::UI::Guild::get_session ( )
inline
105{ return _session.lock(); }

References _session.

◆ invite() [1/2]

void Horizon::Zone::UI::Guild::invite ( int  account_id,
int  inviter_account_id,
int  inviter_char_id 
)
227{
228
229}

◆ invite() [2/2]

void Horizon::Zone::UI::Guild::invite ( std::string  name)
232{
233
234}

◆ invite_ally()

void Horizon::Zone::UI::Guild::invite_ally ( int  account_id,
int  inviter_account_id,
int  inviter_char_id 
)
257{
258
259}

◆ invite_ally_response()

void Horizon::Zone::UI::Guild::invite_ally_response ( int  inviter_account_id,
cz_ally_guild_response_type  response 
)
262{
263
264}

◆ invite_response()

void Horizon::Zone::UI::Guild::invite_response ( int  guild_id,
cz_join_guild_response_type  response 
)
237{
238
239}

◆ leave()

void Horizon::Zone::UI::Guild::leave ( int  guild_id,
int  account_id,
int  char_id,
std::string  reason 
)
242{
243
244}

◆ notify_expel_member() [1/2]

bool Horizon::Zone::UI::Guild::notify_expel_member ( std::string  char_name,
std::string  reason 
)
289{
290 ZC_ACK_BAN_GUILD_SSO pkt(get_session());
291 pkt.deliver(char_name, reason);
292 return true;
293}
std::shared_ptr< ZoneSession > get_session()
Definition: UserInterface.hpp:105

References Horizon::Zone::ZC_ACK_BAN_GUILD_SSO::deliver().

+ Here is the call graph for this function:

◆ notify_expel_member() [2/2]

bool Horizon::Zone::UI::Guild::notify_expel_member ( std::string  char_name,
std::string  reason,
std::string  account_name 
)
283{
284 ZC_ACK_BAN_GUILD pkt(get_session());
285 pkt.deliver(char_name, reason, account_name);
286 return true;
287}

References Horizon::Zone::ZC_ACK_BAN_GUILD::deliver().

+ Here is the call graph for this function:

◆ notify_menu_interface()

void Horizon::Zone::UI::Guild::notify_menu_interface ( )
201{
202
203}

◆ remove_related_guild()

void Horizon::Zone::UI::Guild::remove_related_guild ( int  guild_id,
cz_req_delete_related_guild_relation_type  relation 
)
267{
268
269}

◆ request_guild_information()

void Horizon::Zone::UI::Guild::request_guild_information ( int  type)
196{
197
198}

◆ send_message()

void Horizon::Zone::UI::Guild::send_message ( std::string  message)
252{
253
254}

Member Data Documentation

◆ _session

std::weak_ptr<ZoneSession> Horizon::Zone::UI::Guild::_session
private

Referenced by get_session().


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