diff options
author | Andrei Karas <akaras@inbox.ru> | 2011-03-10 20:17:29 +0200 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-03-11 00:48:34 +0200 |
commit | c030596364968f86f88546d3890e5b45929db47a (patch) | |
tree | 859f4e8bb525d8c2d5ec2569f1da498d8c14706f /src/party.cpp | |
parent | a1d38a0ab4095c192390dbf10bca949454fc4b59 (diff) | |
download | plus-c030596364968f86f88546d3890e5b45929db47a.tar.gz plus-c030596364968f86f88546d3890e5b45929db47a.tar.bz2 plus-c030596364968f86f88546d3890e5b45929db47a.tar.xz plus-c030596364968f86f88546d3890e5b45929db47a.zip |
Show message if some one join your party.
Diffstat (limited to 'src/party.cpp')
-rw-r--r-- | src/party.cpp | 12 |
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); |