diff options
Diffstat (limited to 'src/guild.h')
-rw-r--r-- | src/guild.h | 26 |
1 files changed, 18 insertions, 8 deletions
diff --git a/src/guild.h b/src/guild.h index 640e495e..9b0eff9c 100644 --- a/src/guild.h +++ b/src/guild.h @@ -35,12 +35,6 @@ class Guild; class GuildMember : public Avatar { public: - GuildMember(int guildId, int id, const std::string &name); - - GuildMember(int guildId, int id); - - GuildMember(int guildId, const std::string &name); - int getID() const { return mId; } void setID(int id) { mId = id; } @@ -50,6 +44,12 @@ public: protected: friend class Guild; + GuildMember(Guild *guild, int id, const std::string &name); + + GuildMember(Guild *guild, int id); + + GuildMember(Guild *guild, const std::string &name); + int mId; Guild *mGuild; }; @@ -69,7 +69,17 @@ public: /** * Adds member to the list. */ - void addMember(GuildMember *member); + GuildMember *addMember(int id, const std::string &name); + + /** + * Adds member to the list. + */ + GuildMember *addMember(int id); + + /** + * Adds member to the list. + */ + GuildMember *addMember(const std::string &name); /** * Find a member by ID. @@ -149,7 +159,7 @@ public: bool isMember(const std::string &name) const; - const void getNames(std::vector<std::string> &names) const; + void getNames(std::vector<std::string> &names) const; static Guild *getGuild(int id); |