ManaPlus
Typedefs | Variables
localplayer.cpp File Reference

(a946678)

#include "being/localplayer.h"
#include "actormanager.h"
#include "configuration.h"
#include "gamemodifiers.h"
#include "guild.h"
#include "party.h"
#include "settings.h"
#include "soundmanager.h"
#include "statuseffect.h"
#include "being/beingflag.h"
#include "being/crazymoves.h"
#include "being/playerinfo.h"
#include "being/playerrelations.h"
#include "const/sound.h"
#include "enums/equipslot.h"
#include "enums/being/beingdirection.h"
#include "enums/resources/map/blockmask.h"
#include "enums/resources/map/mapitemtype.h"
#include "particle/particleengine.h"
#include "input/keyboardconfig.h"
#include "gui/gui.h"
#include "gui/userpalette.h"
#include "gui/popupmanager.h"
#include "gui/windows/chatwindow.h"
#include "gui/windows/ministatuswindow.h"
#include "gui/windows/okdialog.h"
#include "gui/windows/outfitwindow.h"
#include "gui/windows/shopwindow.h"
#include "gui/windows/socialwindow.h"
#include "gui/windows/statuswindow.h"
#include "gui/windows/updaterwindow.h"
#include "gui/widgets/tabs/chat/whispertab.h"
#include "listeners/awaylistener.h"
#include "net/beinghandler.h"
#include "net/chathandler.h"
#include "net/inventoryhandler.h"
#include "net/net.h"
#include "net/packetlimiter.h"
#include "net/playerhandler.h"
#include "net/serverfeatures.h"
#include "resources/iteminfo.h"
#include "resources/db/weaponsdb.h"
#include "resources/item/item.h"
#include "resources/map/map.h"
#include "resources/map/mapitem.h"
#include "resources/map/speciallayer.h"
#include "resources/map/walklayer.h"
#include "resources/sprite/animatedsprite.h"
#include "utils/delete2.h"
#include "utils/foreach.h"
#include "utils/gettext.h"
#include "utils/timer.h"
#include <climits>
#include "debug.h"

Go to the source code of this file.

Typedefs

typedef std::map< int, Guild * >::const_iterator GuildMapCIter
 

Variables

static const int16_t awayLimitTimer = 60
 
static const int MAX_TICK_VALUE = 2147483647 / 2
 
LocalPlayerlocalPlayer = 0
 
OkDialogweightNotice
 
time_t weightNoticeTime
 

Typedef Documentation

◆ GuildMapCIter

typedef std::map<int, Guild*>::const_iterator GuildMapCIter

Definition at line 106 of file localplayer.cpp.

Variable Documentation

◆ awayLimitTimer

const int16_t awayLimitTimer = 60
static

Definition at line 103 of file localplayer.cpp.

Referenced by LocalPlayer::afkRespond().

◆ localPlayer

LocalPlayer* localPlayer = 0

Definition at line 108 of file localplayer.cpp.

Referenced by AwayListener::action(), PlayerPostDeathListener::action(), EquipmentWindow::action(), ShopWindow::action(), ShopWindow::addBuyItem(), PopupMenu::addGmCommands(), Being::addGuild(), PopupMenu::addParty(), PopupMenu::addPartyName(), SocialNavigationTab::addPortal(), ShopWindow::addSellItem(), PopupMenu::addSocialMenu(), Being::addToCache(), ChatWindow::addWhisper(), ChatWindow::addWhisperTab(), Game::adjustPerfomance(), GuildManager::afterRemove(), Setup_Relations::apply(), TmwAthena::BeingRecv::applyPlayerAction(), EAthena::BeingRecv::applyPlayerAction(), EAthena::ChatHandler::battleTalk(), Being::botLogic(), SocialGuildTab2::buildCounter(), SocialGuildTab::buildCounter(), SocialPartyTab::buildCounter(), ShopWindow::buyingStoreEnabled(), GameModifiers::changeAwayMode(), Game::changeMap(), GameModifiers::changeMoveType(), Actions::changeRelation(), EAthena::ClanHandler::chat(), GuildManager::chat(), EAthena::PartyHandler::chat(), EAthena::GuildHandler::chat(), ChatTab::chatLog(), ChatWindow::ChatWindow(), Game::checkKeys(), ActorManager::clear(), Being::clearGuilds(), Actions::closeMoveNpcDialog(), EAthena::GameHandler::connect(), TmwAthena::GameHandler::connect(), CrazyMoves::crazyMove1(), CrazyMoves::crazyMove2(), CrazyMoves::crazyMove3(), CrazyMoves::crazyMove4(), CrazyMoves::crazyMove5(), CrazyMoves::crazyMove6(), CrazyMoves::crazyMove7(), CrazyMoves::crazyMove8(), CrazyMoves::crazyMove9(), CrazyMoves::crazyMoveA(), CrazyMoves::crazyMoveAd(), CrazyMoves::crazyMoveAm(), CrazyMoves::crazyMoveAs(), ActorManager::createBeing(), createGuiWindows(), GuildManager::createTab(), ActorManager::destroy(), Actions::doSit(), AvatarListBox::draw(), DebugWindow::draw(), Map::draw(), Minimap::draw2(), MapLayer::drawFringe(), Being::drawHpBar(), Being::drawMonsterSpriteAt(), Viewport::drawPath(), Being::drawPlayerSpriteAt(), DropShortcut::dropFirst(), DropShortcut::dropItems(), ActorManager::erase(), Actions::findBeing(), ActorManager::findBeingByPixel(), ActorManager::findBeingsByPixel(), ActorManager::findMostDamagedPlayer(), ActorManager::findNearestByName(), ActorManager::findNearestLivingBeing(), ActorManager::findNearestPvpPlayer(), KillStats::gainXp(), Game::Game(), Actions::getAmountFromEvent(), PartyTab::getAutoCompleteList(), NotifyManager::getGuildTab(), Viewport::getMouseTile(), TmwAthena::NpcHandler::getNpc(), EAthena::NpcHandler::getNpc(), Actions::getPet(), ChatWindow::getWhisperTab(), EventsManager::handleActive(), Being::handleAttack(), WhisperTab::handleCommandStr(), EventsManager::handleEvents(), WhisperTab::handleInput(), WhoIsOnline::handleLink(), PopupMenu::handleLink(), Game::handleMove(), Being::handleSkill(), ActorManager::heal(), ActorManager::healTarget(), PopupMenu::initPopup(), TradeWindow::initTrade(), EAthena::PartyHandler::inviteResponse(), TmwAthena::PartyHandler::inviteResponse(), SpellManager::invoke(), PopupMenu::isAllowCommand(), PopupMenu::isAllowOtherCommand(), ActorManager::itenplz(), KillStats::KillStats(), EAthena::GuildHandler::leave(), EventsManager::logEvent(), MapDebugTab::logic(), TargetDebugTab::logic(), NetDebugTab::logic(), ActorManager::logic(), Being::logic(), MiniStatusWindow::mouseMoved(), AvatarListBox::mousePressed(), Minimap::mouseReleased(), EquipmentWindow::mouseReleased(), Viewport::moveCameraToActor(), Viewport::moveCameraToPosition(), Game::moveInDirection(), NotifyManager::notify(), Actions::outString(), outStringNormal(), SpellManager::parseCommand(), ChatWindow::parseGlobalsFilter(), ChatWindow::parseHighlights(), ActorManager::pickUpAll(), ActorManager::pickUpNearest(), SkillDialog::playRemoveEffect(), ItemSoundManager::playSfx(), SoundManager::playSfx(), SkillDialog::playUpdateEffect(), SocialWindow::postInit(), GuildManager::process(), EAthena::FamilyRecv::processAskForChild(), Ea::BeingRecv::processBeingAction(), EAthena::BeingRecv::processBeingAction2(), EAthena::BeingRecv::processBeingAttrs(), TmwAthena::BeingRecv::processBeingChangeDirection(), EAthena::BeingRecv::processBeingChangeDirection(), TmwAthena::BeingRecv::processBeingChangeLook(), TmwAthena::BeingRecv::processBeingChangeLook2(), EAthena::BeingRecv::processBeingChangeLook2(), TmwAthena::BeingRecv::processBeingChangeLookContinue(), EAthena::BeingRecv::processBeingChangeLookContinue(), Ea::BeingRecv::processBeingEmotion(), TmwAthena::BeingRecv::processBeingMove(), EAthena::BeingRecv::processBeingMove(), EAthena::BeingRecv::processBeingMove2(), Ea::BeingRecv::processBeingMove3(), Ea::BeingRecv::processBeingRemove(), TmwAthena::BeingRecv::processBeingResurrect(), EAthena::BeingRecv::processBeingResurrect(), EAthena::BeingRecv::processBeingSlide(), EAthena::BeingRecv::processBeingSpawn(), TmwAthena::BeingRecv::processBeingVisible(), EAthena::BeingRecv::processBeingVisible(), EAthena::BuyingStoreRecv::processBuyingStoreDeleteItem(), EAthena::BuyingStoreRecv::processBuyingStoreHideBoard(), EAthena::FamilyRecv::processCallPartner(), TmwAthena::CharServerRecv::processChangeMapServer(), EAthena::CharServerRecv::processChangeMapServer(), TmwAthena::CharServerRecv::processCharMapInfo(), EAthena::CharServerRecv::processCharMapInfo(), TmwAthena::ChatRecv::processChatContinue(), EAthena::ChatRecv::processChatContinue(), EAthena::ChatRecv::processChatRoomCreateAck(), EAthena::ChatRecv::processChatRoomJoinAck(), EAthena::ChatRecv::processChatRoomLeave(), EAthena::ChatRecv::processChatRoomSettings(), EAthena::ChatRecv::processColorChat(), EAthena::GuildRecv::processGuildExpulsionContinue(), EAthena::GuildRecv::processGuildLeave(), EAthena::GuildRecv::processGuildPositionInfo(), EAthena::VendingRecv::processHideBoard(), EAthena::HomunculusRecv::processHomunculusExp(), Ea::InventoryRecv::processItemUseResponse(), TmwAthena::GameRecv::processMapLogin(), EAthena::GameRecv::processMapLogin(), EAthena::MercenaryRecv::processMercenaryInfo(), Ea::BeingRecv::processNameResponse(), EAthena::BeingRecv::processNameResponse2(), TmwAthena::PartyRecv::processPartyInfo(), EAthena::PartyRecv::processPartyInfo(), Ea::PartyRecv::processPartyLeave(), Ea::InventoryRecv::processPlayerAttackRange(), EAthena::PlayerRecv::processPlayerAttrs(), EAthena::InventoryRecv::processPlayerCartAdd(), TmwAthena::InventoryRecv::processPlayerEquipment(), EAthena::InventoryRecv::processPlayerEquipment(), EAthena::PlayerRecv::processPlayerGetExp(), EAthena::PlayerRecv::processPlayerGetExp2(), EAthena::BeingRecv::processPlayerGuilPartyInfo(), EAthena::PlayerRecv::processPlayerHeal(), TmwAthena::InventoryRecv::processPlayerInventory(), EAthena::InventoryRecv::processPlayerInventory(), TmwAthena::InventoryRecv::processPlayerInventoryAdd(), EAthena::InventoryRecv::processPlayerInventoryAdd(), TmwAthena::InventoryRecv::processPlayerInventoryRemove(), EAthena::InventoryRecv::processPlayerInventoryRemove(), EAthena::InventoryRecv::processPlayerInventoryRemove2(), Ea::InventoryRecv::processPlayerInventoryUse(), EAthena::InventoryRecv::processPlayerItemRentalExpired(), TmwAthena::BeingRecv::processPlayerMove(), Ea::BeingRecv::processPlayerMoveToAttack(), Ea::PlayerRecv::processPlayerStatUpdate1(), Ea::BeingRecv::processPlayerStop(), TmwAthena::BeingRecv::processPlayerUpdate1(), TmwAthena::BeingRecv::processPlayerUpdate2(), Ea::PlayerRecv::processPlayerWarp(), ShopWindow::processRequest(), EAthena::BeingRecv::processSkillAutoCast(), EAthena::BeingRecv::processSkillCastingContinue(), EAthena::SkillRecv::processSkillFailed(), TmwAthena::SkillRecv::processSkillFailed(), EAthena::PlayerRecv::processWalkError(), TmwAthena::PlayerRecv::processWalkResponse(), EAthena::PlayerRecv::processWalkResponse(), QuestsWindow::rebuild(), Being::removeGuild(), SocialNavigationTab::removePortal(), replaceVars(), ChatWindow::resortChatLog(), Gm::runCharCommand(), AvatarListBox::safeDraw(), DebugWindow::safeDraw(), SocialNavigationTab::selectIndex(), EAthena::Mail2Handler::sendMail(), TmwAthena::setGm(), Being::setGuild(), PlayerInfo::setHomunculusBeing(), ActorManager::setMap(), PlayerInfo::setMercenaryBeing(), WhoIsOnline::setNeutralColor(), Being::setParty(), PlayerInfo::setPetBeing(), ActorManager::setPlayer(), Map::setPvpMode(), PlayerRelationsManager::setRelation(), EAthena::PlayerHandler::setStat(), TmwAthena::PlayerHandler::setStat(), Actions::setTarget(), PopupMenu::showAttackMonsterPopup(), PopupMenu::showChangePos(), PopupMenu::showChatPopup(), PopupMenu::showGMPopup(), ChatWindow::showGMTab(), Actions::showHideWindow(), Being::showName(), PopupMenu::showPickupItemPopup(), PopupMenu::showPlayerGMCommands(), PopupMenu::showPlayerPopup(), PopupMenu::showPopup(), DebugWindow::slowLogic(), Game::slowLogic(), Actions::splitWhisper(), Client::stateSwitchLogin1(), StatusWindow::StatusWindow(), ShopWindow::sumAmount(), Being::takeDamage(), TmwAthena::ChatHandler::talk(), EAthena::ChatHandler::talk(), ActorManager::undelete(), ShopWindow::updateButtonsAndLabels(), Being::updateColors(), InputManager::updateConditionMask(), Setup_Relations::updatedPlayer(), Being::updateGuild(), SocialWindow::updateGuildCounter(), Game::updateHistory(), StatusWindow::updateLevelLabel(), GuildManager::updateList(), SocialNavigationTab::updateList(), ChatWindow::updateOnline(), SocialWindow::updateParty(), ActorSprite::updateStatusEffect(), EmoteShortcut::useEmote(), SkillDialog::useSkill(), SkillDialog::useSkillDefault(), SkillDialog::useSkillPosition(), SkillDialog::useSkillTarget(), ActorManager::validateBeing(), ShopWindow::vendingEnabled(), ActorSprite::~ActorSprite(), and Game::~Game().

◆ MAX_TICK_VALUE

const int MAX_TICK_VALUE = 2147483647 / 2
static

Definition at line 104 of file localplayer.cpp.

Referenced by LocalPlayer::getPingTime().

◆ weightNotice

OkDialog* weightNotice

Definition at line 62 of file dialogsmanager.cpp.

◆ weightNoticeTime

time_t weightNoticeTime

Definition at line 63 of file dialogsmanager.cpp.

Referenced by DialogsManager::attributeChanged(), and LocalPlayer::slowLogic().