summaryrefslogtreecommitdiff
path: root/src/party.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-03-10 20:17:29 +0200
committerAndrei Karas <akaras@inbox.ru>2011-03-11 00:48:34 +0200
commitc030596364968f86f88546d3890e5b45929db47a (patch)
tree859f4e8bb525d8c2d5ec2569f1da498d8c14706f /src/party.cpp
parenta1d38a0ab4095c192390dbf10bca949454fc4b59 (diff)
downloadmv-c030596364968f86f88546d3890e5b45929db47a.tar.gz
mv-c030596364968f86f88546d3890e5b45929db47a.tar.bz2
mv-c030596364968f86f88546d3890e5b45929db47a.tar.xz
mv-c030596364968f86f88546d3890e5b45929db47a.zip
Show message if some one join your party.
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);