ManaPlus
|
#include <guildmanager.h>
Public Member Functions | |
GuildManager () | |
~GuildManager () | |
void | chat (const std::string &msg) |
void | requestGuildInfo () |
void | updateList () |
void | createTab (Guild *const guild) |
void | reload () |
bool | afterRemove () |
void | slowLogic () |
bool | havePower () const |
ChatTab * | getTab () |
bool | processGuildMessage (const std::string &msg) |
Static Public Member Functions | |
static void | init () |
static void | send (const std::string &msg) |
static void | getNames (StringVect &names) |
static bool | getEnableGuildBot () |
static void | kick (const std::string &msg) |
static void | invite (const std::string &msg) |
static void | leave () |
static void | notice (const std::string &msg) |
static Guild * | createGuild () |
static void | clear () |
static void | inviteResponse (const bool response) |
Private Member Functions | |
bool | process (std::string msg) |
Private Attributes | |
bool | mGotInfo |
bool | mGotName |
bool | mSentInfoRequest |
bool | mSentNameRequest |
bool | mHavePower |
StringVect | mTempList |
EmulateGuildTab * | mTab |
bool | mRequest |
time_t | mRequestTime |
bool | mGotOnlineInfo |
Static Private Attributes | |
static bool | mEnableGuildBot = false |
Definition at line 35 of file guildmanager.h.
GuildManager::GuildManager | ( | ) |
GuildManager::~GuildManager | ( | ) |
Definition at line 68 of file guildmanager.cpp.
bool GuildManager::afterRemove | ( | ) |
Definition at line 519 of file guildmanager.cpp.
References actorManager, Being::clearGuilds(), createGuild(), delete2, guild, NotifyTypes::GUILD_LEFT, localPlayer, mTab, NotifyManager::notify(), reload(), SocialWindow::removeTab(), Being::setGuildName(), socialWindow, ActorManager::updatePlayerColors(), and ActorManager::updatePlayerGuild().
Referenced by process().
void GuildManager::chat | ( | const std::string & | msg | ) |
Definition at line 124 of file guildmanager.cpp.
References chatHandler, ChatTab::chatLog(), Being::getName(), localPlayer, Actions::msg(), mTab, and Net::ChatHandler::privateMessage().
Referenced by EmulateGuildTab::handleInput(), Actions::outString(), and outStringNormal().
|
static |
Definition at line 501 of file guildmanager.cpp.
References Guild::getGuild(), guild, SocialWindow::removeTab(), and socialWindow.
Referenced by destroyGuiWindows().
|
static |
Definition at line 244 of file guildmanager.cpp.
References Guild::getGuild(), and guild.
Referenced by afterRemove(), getNames(), and process().
void GuildManager::createTab | ( | Guild *const | guild | ) |
Definition at line 232 of file guildmanager.cpp.
References Being::addGuild(), chatWindow, config, Configuration::getBoolValue(), guild, ChatTab::loadFromLogFile(), localPlayer, and mTab.
Referenced by process(), and updateList().
|
inlinestatic |
Definition at line 56 of file guildmanager.h.
References mEnableGuildBot.
Referenced by SocialWindow::action(), destroyGuiWindows(), Game::Game(), TmwAthena::BeingRecv::processPlayerGuilPartyInfo(), TmwAthena::BeingRecv::processPlayerMove(), TmwAthena::BeingRecv::processPlayerUpdate1(), TmwAthena::BeingRecv::processPlayerUpdate2(), and TmwAthena::ChatRecv::processWhisperContinue().
|
static |
Definition at line 133 of file guildmanager.cpp.
References createGuild(), and guild.
Referenced by EmulateGuildTab::getAutoCompleteList().
ChatTab * GuildManager::getTab | ( | ) |
Definition at line 545 of file guildmanager.cpp.
References mTab.
Referenced by NotifyManager::getGuildTab().
|
inline |
Definition at line 81 of file guildmanager.h.
References mHavePower.
Referenced by PopupMenu::showChatPopup(), PopupMenu::showPlayerPopup(), and PopupMenu::showPopup().
|
static |
Definition at line 73 of file guildmanager.cpp.
References delete2, ConfigurationObject::getValue(), guildManager, GuildManager(), Client::isTmw(), mEnableGuildBot, reload(), serverConfig, and Configuration::setValue().
Referenced by initEngines(), and Client::stateConnectServer1().
|
static |
Definition at line 483 of file guildmanager.cpp.
References Actions::msg(), and send().
Referenced by EmulateGuildTab::handleCommand().
|
static |
Definition at line 511 of file guildmanager.cpp.
References send().
Referenced by SocialWindow::action().
|
static |
Definition at line 478 of file guildmanager.cpp.
References Actions::msg(), and send().
Referenced by EmulateGuildTab::handleCommand().
|
static |
Definition at line 488 of file guildmanager.cpp.
References send().
Referenced by EmulateGuildTab::handleCommand().
|
static |
Definition at line 493 of file guildmanager.cpp.
References Actions::msg(), and send().
Referenced by EmulateGuildTab::handleCommand().
|
private |
Definition at line 264 of file guildmanager.cpp.
References actorManager, afterRemove(), ChatMsgType::BY_SERVER, ChatTab::chatLog(), Being::clearGuilds(), createGuild(), createTab(), ActorManager::findBeingByName(), findCutFirst(), findCutLast(), guild, IgnoreRecord_false, localPlayer, mGotName, mGotOnlineInfo, mHavePower, mRequest, mSentNameRequest, Actions::msg(), mTab, mTempList, Online_false, Online_true, ActorType::Player, Being::setGuildName(), Avatar::setOnline(), SocialWindow::showGuildInvite(), ChatTab::showOnline(), socialWindow, splitToStringVector(), Catch::trim(), TryRemoveColors_true, Being::updateColors(), SocialWindow::updateGuildCounter(), and updateList().
Referenced by processGuildMessage().
bool GuildManager::processGuildMessage | ( | const std::string & | msg | ) |
Definition at line 254 of file guildmanager.cpp.
References mRequest, Actions::msg(), process(), and requestGuildInfo().
Referenced by TmwAthena::ChatRecv::processWhisperContinue().
void GuildManager::reload | ( | ) |
Definition at line 98 of file guildmanager.cpp.
References delete2, Guild::getGuild(), guild, mGotInfo, mGotName, mGotOnlineInfo, mHavePower, mRequest, mRequestTime, mSentInfoRequest, mSentNameRequest, mTab, mTempList, SocialWindow::removeTab(), and socialWindow.
Referenced by afterRemove(), destroyGuiWindows(), and init().
void GuildManager::requestGuildInfo | ( | ) |
Definition at line 140 of file guildmanager.cpp.
References cur_time, PacketLimiter::limitPackets(), mGotInfo, mGotName, mRequest, mRequestTime, mSentInfoRequest, mSentNameRequest, PacketType::PACKET_WHISPER, requestTimeout, send(), tick_time, and Catch::toString().
Referenced by Game::Game(), and processGuildMessage().
|
static |
Definition at line 119 of file guildmanager.cpp.
References chatHandler, Actions::msg(), and Net::ChatHandler::privateMessage().
Referenced by invite(), inviteResponse(), kick(), leave(), notice(), requestGuildInfo(), and slowLogic().
void GuildManager::slowLogic | ( | ) |
Definition at line 165 of file guildmanager.cpp.
References cur_time, PacketLimiter::limitPackets(), mGotName, mGotOnlineInfo, mRequest, mRequestTime, mSentInfoRequest, PacketType::PACKET_WHISPER, requestTimeout, send(), tick_time, and Catch::toString().
Referenced by Game::slowLogic().
void GuildManager::updateList | ( | ) |
Definition at line 178 of file guildmanager.cpp.
References actorManager, createTab(), fromInt, Guild::getGuild(), Being::getName(), guild, localPlayer, mGotInfo, mHavePower, mSentInfoRequest, mTempList, Avatar::setGender(), Avatar::setOnline(), GuildMember::setPos(), socialWindow, Gender::UNSPECIFIED, SocialWindow::updateGuildCounter(), ActorManager::updatePlayerColors(), and ActorManager::updatePlayerGuild().
Referenced by process().
|
staticprivate |
Definition at line 91 of file guildmanager.h.
Referenced by getEnableGuildBot(), and init().
|
private |
Definition at line 92 of file guildmanager.h.
Referenced by reload(), requestGuildInfo(), and updateList().
|
private |
Definition at line 93 of file guildmanager.h.
Referenced by process(), reload(), requestGuildInfo(), and slowLogic().
|
private |
Definition at line 101 of file guildmanager.h.
Referenced by process(), reload(), and slowLogic().
|
private |
Definition at line 96 of file guildmanager.h.
Referenced by havePower(), process(), reload(), and updateList().
|
private |
Definition at line 99 of file guildmanager.h.
Referenced by process(), processGuildMessage(), reload(), requestGuildInfo(), and slowLogic().
|
private |
Definition at line 100 of file guildmanager.h.
Referenced by reload(), requestGuildInfo(), and slowLogic().
|
private |
Definition at line 94 of file guildmanager.h.
Referenced by reload(), requestGuildInfo(), slowLogic(), and updateList().
|
private |
Definition at line 95 of file guildmanager.h.
Referenced by process(), reload(), and requestGuildInfo().
|
private |
Definition at line 98 of file guildmanager.h.
Referenced by afterRemove(), chat(), createTab(), getTab(), process(), reload(), and ~GuildManager().
|
private |
Definition at line 97 of file guildmanager.h.
Referenced by process(), reload(), and updateList().