diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-04-10 15:47:42 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-04-10 15:47:42 +0300 |
commit | a3635c94a9f1074736f243b0f7de7ab1c8aa14d0 (patch) | |
tree | 6c0b4c6231def1f391ee5dd5dbad715c57d4005f /src/net/partyhandler.h | |
parent | 3efda43abd11979adfd048fc62fe4f09e702f772 (diff) | |
download | manaplus-a3635c94a9f1074736f243b0f7de7ab1c8aa14d0.tar.gz manaplus-a3635c94a9f1074736f243b0f7de7ab1c8aa14d0.tar.bz2 manaplus-a3635c94a9f1074736f243b0f7de7ab1c8aa14d0.tar.xz manaplus-a3635c94a9f1074736f243b0f7de7ab1c8aa14d0.zip |
Improve partyhandler class.
Diffstat (limited to 'src/net/partyhandler.h')
-rw-r--r-- | src/net/partyhandler.h | 26 |
1 files changed, 12 insertions, 14 deletions
diff --git a/src/net/partyhandler.h b/src/net/partyhandler.h index 553f73e83..4929fc6da 100644 --- a/src/net/partyhandler.h +++ b/src/net/partyhandler.h @@ -48,36 +48,34 @@ class PartyHandler virtual ~PartyHandler() { } - virtual void create(const std::string &name) = 0; + virtual void create(const std::string &name) const = 0; - virtual void join(int partyId) = 0; + virtual void join(const int partyId) const = 0; - virtual void invite(Being *player) = 0; + virtual void invite(Being *const player) const = 0; - virtual void invite(const std::string &name) = 0; + virtual void invite(const std::string &name) const = 0; virtual void inviteResponse(const std::string &inviter, - bool accept) = 0; + const bool accept) const = 0; - virtual void leave() = 0; + virtual void leave() const = 0; - virtual void kick(Being *player) = 0; + virtual void kick(Being *const player) const = 0; - virtual void kick(const std::string &name) = 0; + virtual void kick(const std::string &name) const = 0; - virtual void chat(const std::string &text) = 0; - - virtual void requestPartyMembers() const = 0; + virtual void chat(const std::string &text) const = 0; virtual PartyShare getShareExperience() const A_WARN_UNUSED = 0; - virtual void setShareExperience(PartyShare share) = 0; + virtual void setShareExperience(const PartyShare share) const = 0; virtual PartyShare getShareItems() const A_WARN_UNUSED = 0; - virtual void setShareItems(PartyShare share) = 0; + virtual void setShareItems(const PartyShare share) const = 0; - virtual void clear() = 0; + virtual void clear() const = 0; virtual ChatTab *getTab() = 0; }; |