ManaPlus
Namespaces | Functions | Variables
skilldialog.cpp File Reference

(986a3bf)

#include "gui/windows/skilldialog.h"
#include "configuration.h"
#include "effectmanager.h"
#include "spellmanager.h"
#include "being/localplayer.h"
#include "being/playerinfo.h"
#include "const/resources/spriteaction.h"
#include "enums/resources/skill/skillsettype.h"
#include "gui/shortcut/itemshortcut.h"
#include "gui/windows/setupwindow.h"
#include "gui/windows/shortcutwindow.h"
#include "gui/widgets/button.h"
#include "gui/widgets/createwidget.h"
#include "gui/widgets/label.h"
#include "gui/widgets/scrollarea.h"
#include "gui/widgets/tabbedarea.h"
#include "gui/widgets/tabs/skilltab.h"
#include "gui/windows/textdialog.h"
#include "listeners/textskilllistener.h"
#include "net/playerhandler.h"
#include "net/skillhandler.h"
#include "utils/checkutils.h"
#include "utils/dtor.h"
#include "utils/gettext.h"
#include "utils/timer.h"
#include "resources/beingcommon.h"
#include "debug.h"

Go to the source code of this file.

Namespaces

 anonymous_namespace{skilldialog.cpp}
 

Functions

static SkillOwner::Type parseOwner (const std::string &str)
 

Variables

SkillDialogskillDialog = 0
 
TextSkillListener anonymous_namespace{skilldialog.cpp}::textSkillListener
 

Function Documentation

◆ parseOwner()

static SkillOwner::Type parseOwner ( const std::string &  str)
static

Definition at line 73 of file skilldialog.cpp.

74 {
75  if (str == "player")
76  return SkillOwner::Player;
77  else if (str == "mercenary")
78  return SkillOwner::Mercenary;
79  else if (str == "homunculus")
81  return SkillOwner::Player;
82 }

References SkillOwner::Homunculus, SkillOwner::Mercenary, and SkillOwner::Player.

Referenced by SkillDialog::loadSkill().

Variable Documentation

◆ skillDialog

SkillDialog* skillDialog = 0

Definition at line 66 of file skilldialog.cpp.

Referenced by Being::addCast(), createGuiWindows(), WindowManager::createValidateWindows(), WindowManager::deleteValidateWindows(), destroyGuiWindows(), ItemShortcutContainer::draw(), EAthena::GeneralHandler::gameStarted(), TmwAthena::GeneralHandler::gameStarted(), Being::getHitEffect(), EAthena::MercenaryRecv::handleMercenaryMessage(), Being::handleSkill(), Being::handleSkillCasting(), ItemShortcutContainer::mouseDragged(), ItemShortcutContainer::mouseMoved(), EAthena::QuestRecv::processAddQuest(), EAthena::QuestRecv::processAddQuest2(), EAthena::QuestRecv::processAddQuests(), EAthena::QuestRecv::processAddQuests2(), EAthena::GuildRecv::processGuildSkillInfo(), EAthena::HomunculusRecv::processHomunculusSkills(), EAthena::HomunculusRecv::processHomunculusSkillUp(), EAthena::MercenaryRecv::processMercenarySkills(), TmwAthena::QuestRecv::processPlayerQuests(), EAthena::SkillRecv::processPlayerSkills(), TmwAthena::SkillRecv::processPlayerSkills(), Ea::SkillRecv::processPlayerSkillUp(), EAthena::QuestRecv::processRemoveQuest(), TmwAthena::QuestRecv::processSetQuestVar(), EAthena::SkillRecv::processSkillAdd(), EAthena::SkillRecv::processSkillAdd2(), EAthena::BeingRecv::processSkillCastingContinue(), EAthena::SkillRecv::processSkillCoolDown(), EAthena::SkillRecv::processSkillCoolDownList(), EAthena::SkillRecv::processSkillDelete(), EAthena::SkillRecv::processSkillFailed(), EAthena::SkillRecv::processSkillUpdate(), EAthena::SkillRecv::processSkillUpdate2(), ItemShortcutContainer::safeDraw(), Being::setAction(), SkillTab::setCurrent(), EAthena::PlayerHandler::setStat(), TmwAthena::PlayerHandler::setStat(), Game::slowLogic(), ItemShortcut::useItem(), SkillDialog::useSkill(), and WindowMenu::WindowMenu().