summaryrefslogtreecommitdiff
path: root/src/party.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/party.cpp')
-rw-r--r--src/party.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/party.cpp b/src/party.cpp
index 812c9ff07..dbf29f3ab 100644
--- a/src/party.cpp
+++ b/src/party.cpp
@@ -244,6 +244,18 @@ void Party::getNames(std::vector<std::string> &names) const
}
}
+void Party::getNamesSet(std::set<std::string> &names) const
+{
+ names.clear();
+ MemberList::const_iterator it = mMembers.begin(),
+ it_end = mMembers.end();
+ while (it != it_end)
+ {
+ names.insert((*it)->getName());
+ ++it;
+ }
+}
+
Party *Party::getParty(short id)
{
PartyMap::iterator it = parties.find(id);