41 if (p1 ==
nullptr || p2 ==
nullptr)
43 const int leader1 =
CAST_S32(p1->getLeader());
44 const int leader2 =
CAST_S32(p2->getLeader());
45 if (leader1 != leader2)
46 return leader1 >= leader2;
47 if (p1->getName() != p2->getName())
49 std::string s1 = p1->getName();
50 std::string s2 = p2->getName();
61 const std::string &name) :
75 mCanInviteUsers(false)
86 const std::string &name)
101 MemberList::const_iterator itr =
mMembers.begin();
102 const MemberList::const_iterator itr_end =
mMembers.end();
103 while (itr != itr_end)
105 if ((*itr)->mId ==
id)
115 MemberList::const_iterator itr =
mMembers.begin();
116 const MemberList::const_iterator itr_end =
mMembers.end();
117 while (itr != itr_end)
119 if (((*itr) !=
nullptr) && (*itr)->getName() == name)
130 if (member ==
nullptr)
137 MemberList::iterator itr =
mMembers.begin();
138 const MemberList::iterator itr_end =
mMembers.end();
139 while (itr != itr_end)
142 if ((m !=
nullptr) && m->
mId == member->
mId
161 MemberList::iterator itr =
mMembers.begin();
162 const MemberList::iterator itr_end =
mMembers.end();
163 while (itr != itr_end)
166 if ((member !=
nullptr) && member->
mId ==
id)
184 MemberList::iterator itr =
mMembers.begin();
185 const MemberList::iterator itr_end =
mMembers.end();
186 while (itr != itr_end)
189 if ((member !=
nullptr) && member->
getName() == name)
206 MemberList::const_iterator itr =
mMembers.begin();
207 const MemberList::const_iterator itr_end =
mMembers.end();
209 while (itr != itr_end)
232 if (member ==
nullptr)
235 if ((member->
mParty !=
nullptr) && member->
mParty !=
this)
238 MemberList::const_iterator itr =
mMembers.begin();
239 const MemberList::const_iterator itr_end =
mMembers.end();
240 while (itr != itr_end)
257 MemberList::const_iterator itr =
mMembers.begin();
258 const MemberList::const_iterator itr_end =
mMembers.end();
259 while (itr != itr_end)
262 if ((m !=
nullptr) && m->
mId ==
id)
272 MemberList::const_iterator itr =
mMembers.begin();
273 const MemberList::const_iterator itr_end =
mMembers.end();
274 while (itr != itr_end)
277 if ((m !=
nullptr) && m->
getName() == name)
288 MemberList::const_iterator it =
mMembers.begin();
289 const MemberList::const_iterator it_end =
mMembers.end();
302 MemberList::const_iterator it =
mMembers.begin();
303 const MemberList::const_iterator it_end =
mMembers.end();
315 const PartyMap::const_iterator it =
parties.find(
id);
330 PartyMap::iterator it =
parties.begin();
ActorManager * actorManager
Being * findBeing(const BeingId id) const
std::string getName() const
void setParty(Party *const party)
PartyMember(Party *const party, const BeingId id, const std::string &name)
bool isMember(const PartyMember *const member) const
std::map< int, Party * > PartyMap
void setRights(const int16_t rights)
Avatar * getAvatarAt(const int index)
void removeMember(const PartyMember *const member)
PartyMember * addMember(const BeingId id, const std::string &name)
PartyMember * getMember(const BeingId id) const
void getNamesSet(std::set< std::string > &names) const
static Party * getParty(const int16_t id)
void getNames(StringVect &names) const
static void clearParties()
#define A_DEFAULT_COPY(func)
std::string toLower(std::string const &s)
static class SortPartyFunctor partySorter
std::vector< std::string > StringVect