summaryrefslogtreecommitdiff
path: root/src/net/guildhandler.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-04-02 00:53:22 +0300
committerAndrei Karas <akaras@inbox.ru>2013-04-02 00:53:22 +0300
commit2f6f5950605e3ffe8054f3a2675f10032ca0aaf6 (patch)
tree8cbbc807f00bc4aeffc103058d223863c8de643f /src/net/guildhandler.h
parent28165cbeca05b74cf66f121757f21f4cb7cd381e (diff)
downloadmanaverse-2f6f5950605e3ffe8054f3a2675f10032ca0aaf6.tar.gz
manaverse-2f6f5950605e3ffe8054f3a2675f10032ca0aaf6.tar.bz2
manaverse-2f6f5950605e3ffe8054f3a2675f10032ca0aaf6.tar.xz
manaverse-2f6f5950605e3ffe8054f3a2675f10032ca0aaf6.zip
improve guildhandler class.
Diffstat (limited to 'src/net/guildhandler.h')
-rw-r--r--src/net/guildhandler.h48
1 files changed, 27 insertions, 21 deletions
diff --git a/src/net/guildhandler.h b/src/net/guildhandler.h
index b1f6bd7bf..27bd9a217 100644
--- a/src/net/guildhandler.h
+++ b/src/net/guildhandler.h
@@ -40,42 +40,48 @@ class GuildHandler
virtual ~GuildHandler()
{ }
- virtual bool isSupported()
- { return false; }
+ virtual void create(const std::string &name) const = 0;
- virtual void create(const std::string &name) = 0;
+ virtual void invite(const int guildId,
+ const std::string &name) const = 0;
- virtual void invite(int guildId, const std::string &name) = 0;
+ virtual void invite(const int guildId,
+ const Being *const being) const = 0;
- virtual void invite(int guildId, const Being *const being) = 0;
+ virtual void inviteResponse(const int guildId,
+ const bool response) const = 0;
- virtual void inviteResponse(int guildId, bool response) = 0;
+ virtual void leave(const int guildId) const = 0;
- virtual void leave(int guildId) = 0;
+ virtual void kick(const GuildMember *const member,
+ const std::string &reason = "") const = 0;
- virtual void kick(GuildMember *member, std::string reason = "") = 0;
+ virtual void chat(const int guildId,
+ const std::string &text) const = 0;
- virtual void chat(int guildId, const std::string &text) = 0;
+ virtual void memberList(const int guildId) const = 0;
- virtual void memberList(int guildId) = 0;
+ virtual void info(const int guildId) = 0;
- virtual void info(int guildId) = 0;
+ virtual void changeMemberPostion(const GuildMember *const member,
+ const int level) const = 0;
- virtual void changeMemberPostion(GuildMember *member, int level) = 0;
+ virtual void requestAlliance(const int guildId,
+ const int otherGuildId) const = 0;
- virtual void requestAlliance(int guildId, int otherGuildId) = 0;
+ virtual void requestAllianceResponse(const int guildId,
+ int const otherGuildId,
+ const bool response) const = 0;
- virtual void requestAllianceResponse(int guildId, int otherGuildId,
- bool response) = 0;
+ virtual void endAlliance(const int guildId,
+ const int otherGuildId) const = 0;
- virtual void endAlliance(int guildId, int otherGuildId) = 0;
+ virtual void changeNotice(const int guildId, const std::string &msg1,
+ const std::string &msg2) const = 0;
- virtual void changeNotice(int guildId, std::string msg1,
- std::string msg2) = 0;
+ virtual void clear() const = 0;
- virtual void clear() = 0;
-
- virtual ChatTab *getTab() = 0;
+ virtual ChatTab *getTab() const = 0;
};
}