From c030596364968f86f88546d3890e5b45929db47a Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 10 Mar 2011 20:17:29 +0200 Subject: Show message if some one join your party. --- src/party.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/party.cpp') 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 &names) const } } +void Party::getNamesSet(std::set &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); -- cgit v1.2.3-60-g2f50