22 #ifndef GUI_WIDGETS_TABS_SOCIALPLAYERSTAB_H
23 #define GUI_WIDGETS_TABS_SOCIALPLAYERSTAB_H
47 const std::string &name,
48 const Opaque showBackground) :
80 if (avatar ==
nullptr)
86 if ((pm !=
nullptr) && pm->
getMaxHp() > 0)
102 BLOCK_END(
"SocialPlayersTab::updateAvatar")
111 if (avatar ==
nullptr)
117 if (being !=
nullptr)
125 STD_VECTOR<Avatar*>::const_iterator i = avatars->begin();
126 const STD_VECTOR<Avatar*>::const_iterator i_end = avatars->end();
130 if ((ava !=
nullptr) && ava->
getName() == name)
136 avatars->push_back(ava);
148 STD_VECTOR<Avatar*>::iterator ai = avatars->begin();
149 while (ai != avatars->end())
152 const Avatar *
const ava = (*ai);
160 if (ava->
getName() == (*i) && !(*i).empty())
171 ai = avatars->erase(ai);
ActorManager * actorManager
Being * findBeingByName(const std::string &name, const ActorTypeT type) const
void getPlayerNames(StringVect &names, const NpcNames npcNames) const
void setOnline(const bool online)
void setMaxHp(const int maxHp)
void setGender(const GenderT g)
void setPoison(const bool b)
void setIp(const std::string &ip)
void setLevel(const int level)
void setDamageHp(const int damageHp)
std::string getName() const
virtual int getLevel() const
void setDamageTaken(const int damage)
const std::string & getIp() const
GenderT getGender() const
int getDamageTaken() const
std::vector< Avatar * > * getMembers()
PartyMember * getMember(const BeingId id) const
static Party * getParty(const int16_t id)
SocialPlayersTab(const Widget2 *const widget, const std::string &name, const Opaque showBackground)
BeingsListModel * mBeings
void resetDamage(const std::string &name)
void updateAvatar(const std::string &name)
Avatar * findAvatarbyName(const std::string &name)
void createControls(AvatarListModel *const listModel, const Opaque showBackground)
void updateCounter() const
std::string mCounterString
void setCaption(const std::string &caption)
#define A_DELETE_COPY(func)
const bool NpcNames_false
#define BLOCK_START(name)
std::string strprintf(const char *const format,...)
StringVect::const_iterator StringVectCIter
std::vector< std::string > StringVect