ManaPlus
Typedefs | Variables
localplayer.cpp File Reference

(986a3bf)

#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 107 of file localplayer.cpp.

Variable Documentation

◆ awayLimitTimer

const int16_t awayLimitTimer = 60
static

Definition at line 104 of file localplayer.cpp.

Referenced by LocalPlayer::afkRespond().

◆ localPlayer

LocalPlayer* localPlayer = 0

Definition at line 109 of file localplayer.cpp.

Referenced by EquipmentWindow::action(), ShopWindow::action(), AwayListener::action(), PlayerPostDeathListener::action(), ShopWindow::addBuyItem(), ActorManager::addChar(), 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(), EAthena::BeingRecv::applyPlayerAction(), TmwAthena::BeingRecv::applyPlayerAction(), EAthena::ChatHandler::battleTalk(), Being::botLogic(), SocialGuildTab::buildCounter(), SocialGuildTab2::buildCounter(), SocialPartyTab::buildCounter(), ShopWindow::buyingStoreEnabled(), GameModifiers::changeAwayMode(), Game::changeMap(), GameModifiers::changeMoveType(), GuildManager::chat(), EAthena::ClanHandler::chat(), EAthena::GuildHandler::chat(), EAthena::PartyHandler::chat(), ChatTab::chatLog(), ChatWindow::ChatWindow(), Game::checkKeys(), ActorManager::clear(), Being::clearGuilds(), 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(), DebugWindow::draw(), Map::draw(), AvatarListBox::draw(), Minimap::draw2(), MapLayer::drawFringe(), Being::drawHpBar(), Being::drawMonsterSpriteAt(), 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(), PartyTab::getAutoCompleteList(), NotifyManager::getGuildTab(), EAthena::NpcHandler::getNpc(), TmwAthena::NpcHandler::getNpc(), ChatWindow::getWhisperTab(), EventsManager::handleActive(), Being::handleAttack(), WhisperTab::handleCommandStr(), EventsManager::handleEvents(), WhisperTab::handleInput(), PopupMenu::handleLink(), WhoIsOnline::handleLink(), Game::handleMove(), Being::handleSkill(), ActorManager::heal(), ActorManager::healTarget(), PopupMenu::initPopup(), TradeWindow::initTrade(), EAthena::PartyHandler::inviteResponse(), TmwAthena::PartyHandler::inviteResponse(), SpellManager::invoke(), PopupMenu::isAllowCommand(), GroupDb::isAllowCommand(), PopupMenu::isAllowOtherCommand(), ActorManager::itenplz(), KillStats::KillStats(), EAthena::GuildHandler::leave(), ActorManager::logic(), Being::logic(), MapDebugTab::logic(), NetDebugTab::logic(), TargetDebugTab::logic(), MiniStatusWindow::mouseMoved(), AvatarListBox::mousePressed(), EquipmentWindow::mouseReleased(), Minimap::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(), EAthena::BeingRecv::processBeingChangeDirection(), TmwAthena::BeingRecv::processBeingChangeDirection(), TmwAthena::BeingRecv::processBeingChangeLook(), EAthena::BeingRecv::processBeingChangeLook2(), TmwAthena::BeingRecv::processBeingChangeLook2(), TmwAthena::BeingRecv::processBeingChangeLookContinue(), EAthena::BeingRecv::processBeingChangeLookContinue(), Ea::BeingRecv::processBeingEmotion(), EAthena::BeingRecv::processBeingMove(), TmwAthena::BeingRecv::processBeingMove(), EAthena::BeingRecv::processBeingMove2(), Ea::BeingRecv::processBeingMove3(), Ea::BeingRecv::processBeingRemove(), EAthena::BeingRecv::processBeingResurrect(), TmwAthena::BeingRecv::processBeingResurrect(), EAthena::BeingRecv::processBeingSlide(), EAthena::BeingRecv::processBeingSpawn(), EAthena::BeingRecv::processBeingVisible(), TmwAthena::BeingRecv::processBeingVisible(), EAthena::BuyingStoreRecv::processBuyingStoreDeleteItem(), EAthena::BuyingStoreRecv::processBuyingStoreHideBoard(), EAthena::FamilyRecv::processCallPartner(), EAthena::CharServerRecv::processChangeMapServer(), TmwAthena::CharServerRecv::processChangeMapServer(), EAthena::CharServerRecv::processCharMapInfo(), TmwAthena::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::processGuildLeave2(), EAthena::GuildRecv::processGuildPositionInfo(), EAthena::VendingRecv::processHideBoard(), EAthena::HomunculusRecv::processHomunculusExp(), EAthena::InventoryRecv::processItemMoveFailed(), Ea::InventoryRecv::processItemUseResponse(), EAthena::GameRecv::processMapLogin(), TmwAthena::GameRecv::processMapLogin(), EAthena::MercenaryRecv::processMercenaryInfo(), Ea::BeingRecv::processNameResponse(), EAthena::BeingRecv::processNameResponse2(), EAthena::BeingRecv::processNameResponseTitle(), EAthena::PartyRecv::processPartyInfo(), TmwAthena::PartyRecv::processPartyInfo(), Ea::PartyRecv::processPartyLeave(), Ea::InventoryRecv::processPlayerAttackRange(), EAthena::PlayerRecv::processPlayerAttrs(), EAthena::InventoryRecv::processPlayerCartAdd(), EAthena::InventoryRecv::processPlayerEquipment(), TmwAthena::InventoryRecv::processPlayerEquipment(), EAthena::PlayerRecv::processPlayerGetExp(), EAthena::PlayerRecv::processPlayerGetExp2(), EAthena::BeingRecv::processPlayerGuilPartyInfo(), EAthena::BeingRecv::processPlayerGuilPartyInfo2(), EAthena::PlayerRecv::processPlayerHeal(), EAthena::InventoryRecv::processPlayerInventory(), TmwAthena::InventoryRecv::processPlayerInventory(), EAthena::InventoryRecv::processPlayerInventoryAdd(), TmwAthena::InventoryRecv::processPlayerInventoryAdd(), EAthena::InventoryRecv::processPlayerInventoryRemove(), TmwAthena::InventoryRecv::processPlayerInventoryRemove(), EAthena::InventoryRecv::processPlayerInventoryRemove2(), EAthena::InventoryRecv::processPlayerInventoryUse(), TmwAthena::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(), EAthena::PlayerRecv::processWalkResponse(), TmwAthena::PlayerRecv::processWalkResponse(), QuestsWindow::rebuild(), Being::removeGuild(), SocialNavigationTab::removePortal(), replaceVars(), ChatWindow::resortChatLog(), Gm::runCharCommand(), DebugWindow::safeDraw(), AvatarListBox::safeDraw(), SocialNavigationTab::selectIndex(), EAthena::Mail2Handler::sendMail(), TmwAthena::setGm(), Being::setGuild(), PlayerInfo::setHomunculusBeing(), ActorManager::setMap(), PlayerInfo::setMercenaryBeing(), WhoIsOnline::setNeutralColor(), LocalPlayer::setNewTarget(), 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(), Being::showName(), PopupMenu::showPickupItemPopup(), PopupMenu::showPlayerGMCommands(), PopupMenu::showPlayerPopup(), PopupMenu::showPopup(), Game::slowLogic(), DebugWindow::slowLogic(), Actions::splitWhisper(), StatusWindow::StatusWindow(), ShopWindow::sumAmount(), Being::takeDamage(), EAthena::ChatHandler::talk(), TmwAthena::ChatHandler::talk(), ActorManager::undelete(), ShopWindow::updateButtonsAndLabels(), Being::updateColors(), InputManager::updateConditionMask(), Setup_Relations::updatedPlayer(), Being::updateGuild(), SocialWindow::updateGuildCounter(), Game::updateHistory(), StatusWindow::updateLevelLabel(), SocialNavigationTab::updateList(), GuildManager::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 105 of file localplayer.cpp.

Referenced by LocalPlayer::getPingTime().

◆ weightNotice

OkDialog* weightNotice
extern

Definition at line 64 of file dialogsmanager.cpp.

Referenced by LocalPlayer::slowLogic().

◆ weightNoticeTime

time_t weightNoticeTime
extern

Definition at line 65 of file dialogsmanager.cpp.

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