ManaPlus
|
#include "utils/chatutils.h"
#include "actormanager.h"
#include "party.h"
#include "being/localplayer.h"
#include "gui/widgets/tabs/chat/whispertab.h"
#include "net/chathandler.h"
#include "net/clanhandler.h"
#include "net/guildhandler.h"
#include "net/partyhandler.h"
#include "net/net.h"
#include "net/tmwa/guildmanager.h"
#include "utils/foreach.h"
#include "utils/stringutils.h"
#include "debug.h"
Go to the source code of this file.
Functions | |
void | outStringNormal (ChatTab *const tab, const std::string &str, const std::string &def) |
void | replaceVars (std::string &str) |
std::string | textToMe (const std::string &str) |
void outStringNormal | ( | ChatTab *const | tab, |
const std::string & | str, | ||
const std::string & | def | ||
) |
Definition at line 47 of file chatutils.cpp.
References ChatTabType::BATTLE, ChatTabType::CHANNEL, GuildManager::chat(), Net::ClanHandler::chat(), Net::GuildHandler::chat(), Net::PartyHandler::chat(), chatHandler, ChatTab::chatLog(), ChatTabType::CLAN, clanHandler, ChatTabType::DEBUG, Being::getGuild(), Being::getName(), Net::getNetworkType(), WhisperTab::getNick(), ChatTab::getType(), ChatTabType::GM, ChatTabType::GUILD, guild, guildHandler, guildManager, ChatTabType::INPUT, ChatTabType::LANG, localPlayer, ChatTabType::PARTY, partyHandler, Net::ChatHandler::privateMessage(), Net::ChatHandler::talk(), ServerType::TMWATHENA, ChatTabType::TRADE, ChatTabType::UNKNOWN, and ChatTabType::WHISPER.
Referenced by Actions::uploadUpdate().
void replaceVars | ( | std::string & | str | ) |
Definition at line 119 of file chatutils.cpp.
References actorManager, AllowSort_true, ActorManager::findNearestLivingBeing(), FOR_EACH, Being::getName(), Being::getParty(), ActorManager::getPlayerNames(), LocalPlayer::getTarget(), Being::getType(), Being::isInParty(), localPlayer, ActorType::Monster, NpcNames_false, party, ActorType::Player, and replaceAll().
std::string textToMe | ( | const std::string & | str | ) |
Definition at line 203 of file chatutils.cpp.
References strprintf().
Referenced by WhisperTab::handleCommandStr().