48 const std::string &str,
49 const std::string &def)
78 if (
guild->getServerGuild())
90 if (
guild->getServerGuild())
124 if (str.find(
"<PLAYER>") != std::string::npos)
132 if (target !=
nullptr)
137 if (str.find(
"<MONSTER>") != std::string::npos)
145 if (target !=
nullptr)
150 if (str.find(
"<PEOPLE>") != std::string::npos)
158 newStr.append(*it).append(
",");
162 if (newStr[newStr.size() - 1] ==
',')
163 newStr = newStr.substr(0, newStr.size() - 1);
171 if (str.find(
"<PARTY>") != std::string::npos)
179 party->getNames(names);
183 newStr.append(*it).append(
",");
187 if (newStr[newStr.size() - 1] ==
',')
188 newStr = newStr.substr(0, newStr.size() - 1);
ActorManager * actorManager
const bool AllowSort_true
Net::ChatHandler * chatHandler
std::string textToMe(const std::string &str)
void replaceVars(std::string &str)
void outStringNormal(ChatTab *const tab, const std::string &str, const std::string &def)
Net::ClanHandler * clanHandler
Being * findNearestLivingBeing(const int x, const int y, int maxTileDist, const ActorTypeT type, const Being *const excluded) const
void getPlayerNames(StringVect &names, const NpcNames npcNames) const
const Guild * getGuild(const std::string &guildName) const
const std::string & getName() const
ActorTypeT getType() const
ChatTabTypeT getType() const
void chatLog(std::string line, ChatMsgTypeT own, const IgnoreRecord ignoreRecord, const TryRemoveColors tryRemoveColors)
void chat(const std::string &msg)
Being * getTarget() const
virtual void talk(const std::string &text) const =0
virtual void privateMessage(const std::string &recipient, const std::string &text) const =0
virtual void chat(const std::string &text) const =0
virtual void chat(const std::string &text) const =0
virtual void chat(const std::string &text) const =0
const std::string & getNick() const
#define FOR_EACH(type, iter, array)
Net::GuildHandler * guildHandler
GuildManager * guildManager
LocalPlayer * localPlayer
ServerTypeT getNetworkType()
Net::PartyHandler * partyHandler
const bool NpcNames_false
std::string & replaceAll(std::string &context, const std::string &from, const std::string &to)
std::string strprintf(const char *const format,...)
StringVect::const_iterator StringVectCIter
std::vector< std::string > StringVect