summaryrefslogtreecommitdiff
path: root/src/account-server/characterdata.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/account-server/characterdata.hpp')
-rw-r--r--src/account-server/characterdata.hpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/account-server/characterdata.hpp b/src/account-server/characterdata.hpp
index c7ac3dea..8d7e2599 100644
--- a/src/account-server/characterdata.hpp
+++ b/src/account-server/characterdata.hpp
@@ -154,6 +154,13 @@ class CharacterData: public AbstractCharacterData
/** Adds an inventory item to the inventory. */
void
addItemToInventory(const InventoryItem& item);
+
+ /** Add a guild to the character */
+ void addGuild(const std::string &name) { mGuilds.push_back(name); }
+
+ /** Returns a list of guilds the player belongs to */
+ std::vector<std::string>
+ getGuilds() const { return mGuilds; }
private:
CharacterData(CharacterData const &);
@@ -175,6 +182,8 @@ class CharacterData: public AbstractCharacterData
Point mPos; //!< Position the being is at.
std::vector< InventoryItem > mInventory; //!< All the possesions of
//!< the character.
+ std::vector<std::string> mGuilds; //!< All the guilds the player
+ //!< belongs to.
};
// Utility typedefs