ManaPlus
Public Member Functions | Static Public Member Functions
Ea::PartyHandler Class Reference

#include <partyhandler.h>

Inheritance diagram for Ea::PartyHandler:
Net::PartyHandler EAthena::PartyHandler TmwAthena::PartyHandler

Public Member Functions

 PartyHandler ()
 
 ~PartyHandler ()
 
void join (const int partyId) const
 
PartyShareT getShareExperience () const
 
PartyShareT getShareItems () const
 
void clear () const
 
ChatTabgetTab () const
 
- Public Member Functions inherited from Net::PartyHandler
 PartyHandler ()
 
virtual void create (const std::string &name) const =0
 
virtual void invite (const std::string &name) const =0
 
virtual void leave () const =0
 
virtual void kick (const Being *const player) const =0
 
virtual void kick (const std::string &name) const =0
 
virtual void chat (const std::string &text) const =0
 
virtual void setShareExperience (const PartyShareT share) const =0
 
virtual void setShareItems (const PartyShareT share) const =0
 
virtual PartyShareT getShareAutoItems () const =0
 
virtual void setShareAutoItems (const PartyShareT share) const =0
 
virtual void changeLeader (const std::string &name) const =0
 
virtual void allowInvite (const bool allow) const =0
 
virtual void inviteResponse (const int partyId, const bool accept) const =0
 

Static Public Member Functions

static void reload ()
 

Detailed Description

Definition at line 32 of file partyhandler.h.

Constructor & Destructor Documentation

◆ PartyHandler()

Ea::PartyHandler::PartyHandler ( )

Definition at line 38 of file partyhandler.cpp.

38  :
40 {
44 }
static Party * getParty(const int16_t id)
Definition: party.cpp:313
PartyShareT mShareExp
Definition: partyrecv.cpp:52
PartyShareT mShareItems
Definition: partyrecv.cpp:53
Party * taParty
Definition: partyrecv.cpp:48

References Party::getParty(), Ea::PartyRecv::mShareExp, Ea::PartyRecv::mShareItems, Ea::taParty, and PartyShare::UNKNOWN.

◆ ~PartyHandler()

Ea::PartyHandler::~PartyHandler ( )
virtual

Reimplemented from Net::PartyHandler.

Reimplemented in TmwAthena::PartyHandler, and EAthena::PartyHandler.

Definition at line 46 of file partyhandler.cpp.

47 {
49  taParty = nullptr;
50 }
#define delete2(var)
Definition: delete2.h:25
PartyTab * partyTab
Definition: partytab.cpp:45

References delete2, partyTab, and Ea::taParty.

Member Function Documentation

◆ clear()

void Ea::PartyHandler::clear ( ) const
virtual

Implements Net::PartyHandler.

Definition at line 61 of file partyhandler.cpp.

62 {
63  taParty = nullptr;
64 }

References Ea::taParty.

◆ getShareExperience()

PartyShareT Ea::PartyHandler::getShareExperience ( ) const
virtual

Implements Net::PartyHandler.

Definition at line 71 of file partyhandler.cpp.

72 {
73  return PartyRecv::mShareExp;
74 }

References Ea::PartyRecv::mShareExp.

◆ getShareItems()

PartyShareT Ea::PartyHandler::getShareItems ( ) const
virtual

Implements Net::PartyHandler.

Definition at line 76 of file partyhandler.cpp.

77 {
79 }

References Ea::PartyRecv::mShareItems.

◆ getTab()

ChatTab * Ea::PartyHandler::getTab ( ) const
virtual

Implements Net::PartyHandler.

Definition at line 66 of file partyhandler.cpp.

67 {
68  return partyTab;
69 }

References partyTab.

◆ join()

void Ea::PartyHandler::join ( const int  partyId) const
virtual

Implements Net::PartyHandler.

Definition at line 52 of file partyhandler.cpp.

53 {
54 }

◆ reload()

void Ea::PartyHandler::reload ( )
static

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