![]() |
ManaPlus
|
#include <skilldialog.h>
Public Member Functions | |
| SkillDialog () | |
| ~SkillDialog () | |
| void | postInit () |
| void | action (const ActionEvent &event) |
| std::string | update (const int id) |
| void | update () |
| void | updateModels () |
| void | updateModelsHidden () |
| void | loadXmlFile (const std::string &fileName, const SkipError skipError) |
| void | clearSkills () |
| void | hideSkills (const SkillOwner::Type owner) |
| void | loadSkills () |
| bool | updateSkill (const int id, const int range, const Modifiable modifiable, const SkillType::SkillType type, const int sp) |
| void | addSkill (const SkillOwner::Type owner, const int id, const std::string &name, const int level, const int range, const Modifiable modifiable, const SkillType::SkillType type, const int sp) |
| SkillInfo * | getSkill (const int id) const |
| SkillInfo * | getSkillByItem (const int itemId) const |
| void | setSkillDuration (const SkillOwner::Type owner, const int id, const int duration) |
| bool | hasSkills () const |
| void | widgetResized (const Event &event) |
| void | useItem (const int itemId, const AutoTarget autoTarget, const int level, const std::string &data) const |
| void | updateTabSelection () |
| void | updateQuest (const int var, const int val1, const int val2, const int val3, const int time1) |
| void | playUpdateEffect (const int id) const |
| void | playRemoveEffect (const int id) const |
| void | playCastingDstTileEffect (const int id, const int level, const int x, const int y, const int delay) const |
| void | slowLogic () |
| void | removeSkill (const int id) |
| SkillData * | getSkillData (const int id) const |
| SkillData * | getSkillDataByLevel (const int id, const int level) const |
| void | selectSkillLevel (const int skillId, const int level) |
| void | selectSkillCastType (const int skillId, const CastTypeT type) |
| void | setSkillOffsetX (const int skillId, const int offset) |
| void | setSkillOffsetY (const int skillId, const int offset) |
Public Member Functions inherited from Window | |
| Window (const std::string &caption, const Modal modal, Window *const parent, std::string skin) | |
| ~Window () | |
| void | draw (Graphics *const graphics) |
| void | safeDraw (Graphics *const graphics) |
| void | setContentSize (int width, int height) |
| void | setLocationRelativeTo (const Widget *const widget) |
| void | setLocationHorisontallyRelativeTo (const Widget *const widget) |
| void | setLocationRelativeTo (const ImagePosition::Type &position, int offsetX, int offsetY) |
| void | setResizable (const bool resize) |
| void | redraw () |
| void | widgetMoved (const Event &event) |
| void | widgetHidden (const Event &event) |
| void | setCloseButton (const bool flag) |
| bool | getCloseButton () const |
| void | setAllowClose (const bool b) |
| bool | getAlowClose () const |
| bool | isResizable () const |
| void | setMinWidth (const int width) |
| int | getMinWidth () const |
| void | setMinHeight (const int height) |
| int | getMinHeight () const |
| void | setMaxWidth (const int width) |
| int | getMaxWidth () const |
| void | setMaxHeight (const int height) |
| int | getMaxHeight () const |
| void | setShowTitle (bool flag) |
| void | setStickyButton (const bool flag) |
| void | setSticky (const bool sticky) |
| bool | isSticky () const |
| void | setStickyButtonLock (const bool sticky) |
| bool | isStickyButtonLock () const |
| virtual void | setVisible (Visible visible) |
| void | setVisible (const Visible visible, const bool forceSticky) |
| bool | isDefaultVisible () const |
| void | setDefaultVisible (const bool save) |
| bool | willSaveVisible () const |
| void | setSaveVisible (const bool save) |
| Window * | getParentWindow () const |
| virtual void | scheduleDelete () |
| void | mousePressed (MouseEvent &event) |
| void | mouseDragged (MouseEvent &event) |
| void | mouseMoved (MouseEvent &event) |
| void | mouseReleased (MouseEvent &event) |
| void | mouseExited (MouseEvent &event) |
| void | mouseEntered (MouseEvent &event) |
| void | updateResizeHandler (MouseEvent &event) |
| void | setWindowName (const std::string &name) |
| const std::string & | getWindowName () const |
| void | loadWindowState () |
| void | saveWindowState () |
| void | setDefaultSize (const int defaultX, const int defaultY, int defaultWidth, int defaultHeight) |
| void | setDefaultSize () |
| void | setDefaultSize (const int defaultWidth, const int defaultHeight, const ImagePosition::Type &position, const int offsetx, const int offsetY) |
| virtual void | resetToDefaultSize () |
| void | adjustPositionAfterResize (const int oldScreenWidth, const int oldScreenHeight) |
| Layout & | getLayout () |
| void | clearLayout () |
| void | reflowLayout (int w, int h) |
| LayoutCell & | place (const int x, const int y, Widget *const wg, const int w, const int h) |
| ContainerPlacer | getPlacer (const int x, const int y) |
| void | center () |
| void | centerHorisontally () |
| virtual void | close () |
| void | setModal (const Modal modal) |
| Rect | getWindowArea () const |
| bool | isResizeAllowed (const MouseEvent &event) const |
| void | setCaptionFont (Font *font) |
| void | enableVisibleSound (bool b) |
| bool | isWindowVisible () const |
| void | setPadding (int padding) |
| int | getPadding () const |
| void | setTitleBarHeight (unsigned int height) |
| unsigned int | getTitleBarHeight () const |
| void | setCaption (const std::string &caption) |
| const std::string & | getCaption () const |
| void | setAlignment (Graphics::Alignment alignment) |
| Graphics::Alignment | getAlignment () const |
| void | setMovable (Move movable) |
| bool | isMovable () const |
| Rect | getChildrenArea () |
| virtual void | resizeToContent () |
Public Member Functions inherited from BasicContainer2 | |
| BasicContainer2 (const Widget2 *const widget) | |
| ~BasicContainer2 () | |
| void | setOpaque (Opaque opaque) |
| bool | isOpaque () const |
| virtual void | add (Widget *const widget) |
| void | addXY (Widget *const widget, const int x, const int y) |
Public Member Functions inherited from BasicContainer | |
| BasicContainer (const Widget2 *const widget) | |
| ~BasicContainer () | |
| void | showWidgetPart (Widget *const widget, const Rect &area) |
| void | moveToTop (Widget *const widget) |
| void | moveToBottom (Widget *const widget) |
| void | focusNext () |
| void | focusPrevious () |
| void | logic () |
| void | setFocusHandler (FocusHandler *const focusHandler) |
| void | setInternalFocusHandler (FocusHandler *const focusHandler) |
| Widget * | getWidgetAt (int x, int y) |
| void | death (const Event &event) |
| Widget * | findFirstWidget (const std::set< Widget * > &list) |
| void | add (Widget *const widget) |
| virtual void | remove (Widget *const widget) |
| virtual void | clear () |
Public Member Functions inherited from Widget | |
| Widget (const Widget2 *const widget) | |
| ~Widget () | |
| virtual void | drawFrame (Graphics *graphics) |
| virtual void | safeDrawFrame (Graphics *graphics) |
| void | setFrameSize (const unsigned int frameSize) |
| unsigned int | getFrameSize () const |
| Widget * | getParent () const |
| void | setWidth (const int width) |
| int | getWidth () const |
| void | setHeight (const int height) |
| int | getHeight () const |
| void | setSize (const int width, const int height) |
| void | setX (const int x) |
| int | getX () const |
| void | setY (const int y) |
| int | getY () const |
| void | setPosition (const int x, const int y) |
| void | setDimension (const Rect &dimension) |
| const Rect & | getDimension () const |
| void | setFocusable (const bool focusable) |
| bool | isFocusable () const |
| virtual bool | isFocused () const |
| void | setEnabled (const bool enabled) |
| bool | isEnabled () const |
| void | setVisible (Visible visible) |
| bool | isVisible () const |
| void | setBaseColor (const Color &color) |
| const Color & | getBaseColor () const |
| void | setForegroundColor (const Color &color) |
| const Color & | getForegroundColor () const |
| void | setBackgroundColor (const Color &color) |
| const Color & | getBackgroundColor () const |
| virtual void | requestFocus () |
| virtual void | requestMoveToTop () |
| virtual void | requestMoveToBottom () |
| FocusHandler * | getFocusHandler () |
| void | addActionListener (ActionListener *const actionListener) |
| void | removeActionListener (ActionListener *const actionListener) |
| void | addDeathListener (WidgetDeathListener *const deathListener) |
| void | removeDeathListener (WidgetDeathListener *const deathListener) |
| void | addMouseListener (MouseListener *const mouseListener) |
| void | removeMouseListener (MouseListener *const mouseListener) |
| void | addKeyListener (KeyListener *const keyListener) |
| void | removeKeyListener (KeyListener *const keyListener) |
| void | addFocusListener (FocusListener *const focusListener) |
| void | removeFocusListener (FocusListener *const focusListener) |
| void | addWidgetListener (WidgetListener *const widgetListener) |
| void | removeWidgetListener (WidgetListener *const widgetListener) |
| void | setActionEventId (const std::string &actionEventId) |
| const std::string & | getActionEventId () const |
| virtual void | getAbsolutePosition (int &x, int &y) const |
| virtual void | setParent (Widget *parent) |
| Font * | getFont () const |
| void | setFont (Font *const font) |
| virtual void | fontChanged () |
| bool | isTabInEnabled () const |
| void | setTabInEnabled (const bool enabled) |
| bool | isTabOutEnabled () const |
| void | setTabOutEnabled (const bool enabled) |
| void | requestModalFocus () |
| virtual void | requestModalMouseInputFocus () |
| virtual void | releaseModalFocus () |
| virtual void | releaseModalMouseInputFocus () |
| virtual bool | isModalFocused () const |
| virtual bool | isModalMouseInputFocused () const |
| const std::list< MouseListener * > & | getMouseListeners () const A_CONST |
| const std::list< KeyListener * > & | getKeyListeners () const A_CONST |
| const std::list< FocusListener * > & | getFocusListeners () const A_CONST |
| virtual FocusHandler * | getInternalFocusHandler () |
| void | setInternalFocusHandler (FocusHandler *const internalFocusHandler) |
| void | setId (const std::string &id) |
| const std::string & | getId () const |
| virtual void | showPart (const Rect &rectangle) |
| bool | isAllowLogic () const |
| void | setMouseConsume (const bool b) |
| bool | isMouseConsume () const |
| void | setRedraw (const bool b) |
| virtual bool | isSelectable () const |
| void | setSelectable (const bool selectable) |
| void | windowResized () |
Public Member Functions inherited from Widget2 | |
| virtual | ~Widget2 () |
| const Color & | getThemeColor (const ThemeColorIdT type, const unsigned int alpha) const A_INLINE |
| const Color & | getThemeCharColor (const signed char c, bool &valid) const A_INLINE |
| virtual void | setWidget2 (const Widget2 *const widget) |
| void | setPalette (int palette) |
| void | checkPalette () |
| void | setForegroundColor2 (const Color &color) |
| Widget * | getWindow () const |
| virtual void | setWindow (Widget *const window) |
Public Member Functions inherited from WidgetDeathListener | |
| virtual | ~WidgetDeathListener () |
Public Member Functions inherited from MouseListener | |
| virtual | ~MouseListener () |
| virtual void | mouseClicked (MouseEvent &event) |
| virtual void | mouseWheelMovedUp (MouseEvent &event) |
| virtual void | mouseWheelMovedDown (MouseEvent &event) |
Public Member Functions inherited from WidgetListener | |
| virtual | ~WidgetListener () |
| virtual void | widgetShown (const Event &event) |
Public Member Functions inherited from ActionListener | |
| virtual | ~ActionListener () |
Static Public Member Functions | |
| static void | useSkill (const int skillId, const AutoTarget autoTarget, int level, const bool withText, const std::string &text, CastTypeT castType, const int offsetX, const int offsetY) |
| static void | useSkill (const SkillInfo *const info, const AutoTarget autoTarget, int level, const bool withText, const std::string &text, const CastTypeT castType, const int offsetX, const int offsetY) |
Static Public Member Functions inherited from Window | |
| static void | setWindowContainer (WindowContainer *const windowContainer) |
Static Public Member Functions inherited from Widget | |
| static void | setGlobalFont (Font *const font) |
| static Font * | getGloablFont () |
| static void | cleanGlobalFont () |
| static bool | widgetExists (const Widget *const widget) |
| static void | distributeWindowResizeEvent () |
| static Widget * | callPostInit (Widget *const widget) |
Private Types | |
| typedef std::map< int, SkillInfo * > | SkillMap |
Private Member Functions | |
| void | addSkillDuration (SkillInfo *const skill) |
| SkillInfo * | loadSkill (const xmlNodePtr node, SkillModel *const model) |
| void | addDefaultTab () |
Static Private Member Functions | |
| static void | useSkillDefault (const SkillInfo *const info, const AutoTarget autoTarget, int level, const bool withText, const std::string &text, int offsetX, int offsetY) |
| static void | useSkillTarget (const SkillInfo *const info, const AutoTarget autoTarget, int level, const bool withText, const std::string &text, const Being *being, int offsetX, int offsetY) |
| static void | useSkillPosition (const SkillInfo *const info, int level, const bool withText, const std::string &text, const int x, const int y, int offsetX, int offsetY) |
| static std::string | getDefaultSkillIcon (const SkillType::SkillType type) |
| static void | loadSkillData (const xmlNodePtr node, SkillInfo *const skill) |
Private Attributes | |
| SkillMap | mSkills |
| std::vector< SkillInfo * > | mDurations |
| TabbedArea * | mTabs |
| std::list< Tab * > | mDeleteTabs |
| Label * | mPointsLabel |
| Button * | mUseButton |
| Button * | mIncreaseButton |
| SkillModel * | mDefaultModel |
| SkillTab * | mDefaultTab |
Additional Inherited Members | |
Data Fields inherited from Widget | |
| Visible | mVisible |
Protected Types inherited from BasicContainer | |
| typedef std::vector< Widget * > | WidgetList |
| typedef WidgetList::iterator | WidgetListIterator |
| typedef WidgetList::const_iterator | WidgetListConstIterator |
| typedef WidgetList::reverse_iterator | WidgetListReverseIterator |
| typedef WidgetList::const_reverse_iterator | WidgetListCReverseIterator |
Protected Types inherited from Widget | |
| typedef std::list< MouseListener * > | MouseListenerList |
| typedef MouseListenerList::iterator | MouseListenerIterator |
| typedef std::list< KeyListener * > | KeyListenerList |
| typedef KeyListenerList::iterator | KeyListenerIterator |
| typedef std::list< ActionListener * > | ActionListenerList |
| typedef ActionListenerList::iterator | ActionListenerIterator |
| typedef std::list< WidgetDeathListener * > | WidgetDeathListenerList |
| typedef WidgetDeathListenerList::iterator | WidgetDeathListenerIterator |
| typedef std::list< FocusListener * > | FocusListenerList |
| typedef FocusListenerList::iterator | FocusListenerIterator |
| typedef std::list< WidgetListener * > | WidgetListenerList |
| typedef WidgetListenerList::iterator | WidgetListenerIterator |
Protected Member Functions inherited from Window | |
| bool | canMove () const |
| int | getOption (const std::string &name, const int def) const |
| bool | getOptionBool (const std::string &name, const bool def) const |
| void | setTitlePadding (const int p) |
| int | getTitlePadding () const |
Protected Member Functions inherited from BasicContainer | |
| virtual void | drawChildren (Graphics *const graphics) |
| virtual void | safeDrawChildren (Graphics *const graphics) |
| virtual void | logicChildren () |
Protected Member Functions inherited from Widget | |
| void | distributeActionEvent () |
| void | distributeResizedEvent () |
| void | distributeMovedEvent () |
| void | distributeHiddenEvent () |
| void | distributeShownEvent () |
Protected Member Functions inherited from Widget2 | |
| Widget2 (const Widget2 *const widget) | |
Protected Member Functions inherited from WidgetDeathListener | |
| WidgetDeathListener () | |
Protected Member Functions inherited from MouseListener | |
| MouseListener () | |
Protected Member Functions inherited from WidgetListener | |
| WidgetListener () | |
Protected Member Functions inherited from ActionListener | |
| ActionListener () | |
Protected Attributes inherited from Window | |
| std::string | mCaption |
| Graphics::Alignment | mAlignment |
| int | mPadding |
| unsigned int | mTitleBarHeight |
| Move | mMovable |
| int | mDragOffsetX |
| int | mDragOffsetY |
| bool | mMoved |
| Skin * | mSkin |
| int | mDefaultX |
| int | mDefaultY |
| int | mDefaultWidth |
| int | mDefaultHeight |
| int | mCaptionOffsetX |
| int | mCaptionOffsetY |
| bool | mShowTitle |
| bool | mLastRedraw |
Protected Attributes inherited from BasicContainer2 | |
| Opaque | mOpaque |
Protected Attributes inherited from BasicContainer | |
| WidgetList | mWidgets |
| WidgetList | mLogicWidgets |
Protected Attributes inherited from Widget | |
| MouseListenerList | mMouseListeners |
| KeyListenerList | mKeyListeners |
| ActionListenerList | mActionListeners |
| WidgetDeathListenerList | mDeathListeners |
| FocusListenerList | mFocusListeners |
| WidgetListenerList | mWidgetListeners |
| Color | mForegroundColor |
| Color | mBackgroundColor |
| Color | mBaseColor |
| Rect | mDimension |
| std::string | mActionEventId |
| std::string | mId |
| FocusHandler * | mFocusHandler |
| FocusHandler * | mInternalFocusHandler |
| Widget * | mParent |
| Font * | mCurrentFont |
| unsigned int | mFrameSize |
| bool | mFocusable |
| bool | mTabIn |
| bool | mTabOut |
| bool | mEnabled |
| bool | mAllowLogic |
| bool | mMouseConsume |
| bool | mRedraw |
| bool | mSelectable |
Protected Attributes inherited from Widget2 | |
| int | mPaletteOffset |
| Widget * | mWindow |
| Color | mForegroundColor2 |
Static Protected Attributes inherited from Widget | |
| static Font * | mGlobalFont = 0 |
The skill dialog.
Definition at line 56 of file skilldialog.h.
|
private |
Definition at line 226 of file skilldialog.h.
| SkillDialog::SkillDialog | ( | ) |
Definition at line 84 of file skilldialog.cpp.
References TabbedArea::getTabContainer(), TabbedArea::getWidgetContainer(), Widget::getWidth(), mIncreaseButton, mPointsLabel, mTabs, mUseButton, Window::place(), SetupWindow::registerWindowForReset(), Window::setCloseButton(), Window::setDefaultSize(), Widget::setEnabled(), Window::setResizable(), Window::setSaveVisible(), Widget::setSelectable(), Window::setStickyButtonLock(), setupWindow, Window::setWindowName(), and windowContainer.
| SkillDialog::~SkillDialog | ( | ) |
|
virtual |
Called when receiving actions from widget.
Implements ActionListener.
Definition at line 156 of file skilldialog.cpp.
References _, CAST_S32, CAST_U16, config, fromBool, Configuration::getBoolValue(), SkillTab::getSelectedInfo(), TabbedArea::getSelectedTab(), ShortcutWindow::getTabIndex(), Net::PlayerHandler::increaseSkill(), Actions::info(), itemShortcut, itemShortcutWindow, mIncreaseButton, mTabs, mUseButton, playerHandler, Button::setCaption(), Widget::setEnabled(), ItemShortcut::setItemSelected(), Window::setVisible(), SHORTCUT_TABS, SKILL_MIN_ID, SKILL_VAR_MIN_ID, useSkill(), and Visible_false.
|
private |
Definition at line 134 of file skilldialog.cpp.
References _, Widget::addActionListener(), TabbedArea::addTab(), TabbedArea::adjustTabPositions(), mDefaultModel, mDefaultTab, mDeleteTabs, mTabs, Opaque_false, Widget::setActionEventId(), ScrollArea::setHorizontalScrollPolicy(), TabbedArea::setSelectedTabDefault(), ScrollArea::setVerticalScrollPolicy(), Widget::setVisible(), ScrollArea::SHOW_ALWAYS, ScrollArea::SHOW_NEVER, and Visible_false.
Referenced by loadSkills().
| void SkillDialog::addSkill | ( | const SkillOwner::Type | owner, |
| const int | id, | ||
| const std::string & | name, | ||
| const int | level, | ||
| const int | range, | ||
| const Modifiable | modifiable, | ||
| const SkillType::SkillType | type, | ||
| const int | sp | ||
| ) |
Definition at line 738 of file skilldialog.cpp.
References _, SkillModel::addSkill(), TabbedArea::adjustTabPositions(), CAST_U32, data, getDefaultSkillIcon(), Configuration::getStringValue(), mDefaultModel, mDefaultTab, mSkills, mTabs, paths, TabbedArea::setSelectedTabDefault(), settings, Widget::setVisible(), Actions::skill(), strprintf(), Catch::toString(), Settings::unknownSkillsAutoTab, SkillModel::updateVisibilities(), Visible_false, and Visible_true.
Referenced by EAthena::GuildRecv::processGuildSkillInfo(), EAthena::HomunculusRecv::processHomunculusSkills(), EAthena::HomunculusRecv::processHomunculusSkillUp(), EAthena::MercenaryRecv::processMercenarySkills(), EAthena::SkillRecv::processPlayerSkills(), TmwAthena::SkillRecv::processPlayerSkills(), Ea::SkillRecv::processPlayerSkillUp(), EAthena::SkillRecv::processSkillAdd(), EAthena::SkillRecv::processSkillAdd2(), EAthena::SkillRecv::processSkillUpdate(), EAthena::SkillRecv::processSkillUpdate2(), and setSkillDuration().
|
private |
Definition at line 1386 of file skilldialog.cpp.
References FOR_EACH, mDurations, and Actions::skill().
Referenced by setSkillDuration().
| void SkillDialog::clearSkills | ( | ) |
Definition at line 331 of file skilldialog.cpp.
References delete_all(), mDefaultModel, mDefaultTab, mDeleteTabs, mDurations, mSkills, mTabs, and TabbedArea::removeAll().
Referenced by loadSkills(), and ~SkillDialog().
|
staticprivate |
Definition at line 706 of file skilldialog.cpp.
References SkillType::Attack, Configuration::getStringValue(), SkillType::Ground, paths, SkillType::Self, SkillType::Support, SkillType::TargetTrap, SkillType::Unknown, and SkillType::Unused.
Referenced by addSkill().
| SkillInfo * SkillDialog::getSkill | ( | const int | id | ) | const |
Definition at line 803 of file skilldialog.cpp.
References mSkills.
Referenced by ItemShortcutContainer::draw(), Being::handleSkill(), loadSkill(), EAthena::SkillRecv::processSkillFailed(), ItemShortcutContainer::safeDraw(), selectSkillCastType(), selectSkillLevel(), Being::setAction(), setSkillOffsetX(), setSkillOffsetY(), and useSkill().
| SkillInfo * SkillDialog::getSkillByItem | ( | const int | itemId | ) | const |
Definition at line 811 of file skilldialog.cpp.
References mSkills, and SKILL_MIN_ID.
Referenced by ItemShortcutContainer::mouseDragged(), and ItemShortcutContainer::mouseMoved().
| SkillData * SkillDialog::getSkillData | ( | const int | id | ) | const |
Definition at line 930 of file skilldialog.cpp.
References Actions::info(), and mSkills.
Referenced by playRemoveEffect(), and playUpdateEffect().
| SkillData * SkillDialog::getSkillDataByLevel | ( | const int | id, |
| const int | level | ||
| ) | const |
Definition at line 942 of file skilldialog.cpp.
References Actions::info(), and mSkills.
Referenced by Being::addCast(), Being::getHitEffect(), Being::handleSkillCasting(), and playCastingDstTileEffect().
|
inline |
Definition at line 119 of file skilldialog.h.
References mSkills.
Referenced by WindowMenu::WindowMenu().
| void SkillDialog::hideSkills | ( | const SkillOwner::Type | owner | ) |
Definition at line 343 of file skilldialog.cpp.
References FOR_EACH, Actions::info(), mSkills, PlayerInfo::setSkillLevel(), and Visible_false.
Referenced by EAthena::MercenaryRecv::handleMercenaryMessage(), EAthena::GuildRecv::processGuildSkillInfo(), EAthena::HomunculusRecv::processHomunculusSkills(), EAthena::MercenaryRecv::processMercenarySkills(), and EAthena::SkillRecv::processPlayerSkills().
|
private |
Definition at line 496 of file skilldialog.cpp.
References _, SkillModel::addSkill(), SpriteAction::CAST(), CAST_U32, SpriteAction::CASTRIDE(), SpriteAction::CASTSKY(), SpriteAction::CASTWATER(), fromBool, XML::getBoolProperty(), XML::getIntProperty(), XML::getProperty(), getSkill(), XML::langProperty(), loadSkillData(), Modifiable_false, mSkills, parseOwner(), Actions::skill(), SKILL_VAR_MIN_ID, and strprintf().
Referenced by loadXmlFile().
|
staticprivate |
Definition at line 552 of file skilldialog.cpp.
References _, data, MissileInfo::dieDistance, XML::getBoolProperty(), XML::getFloatProperty(), XML::getProperty(), Configuration::getStringValue(), XML::langProperty(), MissileInfo::lifeTime, MissileInfo::particle, paths, Actions::skill(), SKILL_VAR_MIN_ID, MissileInfo::speed, strprintf(), Visible_true, and MissileInfo::z.
Referenced by loadSkill(), and loadXmlFile().
| void SkillDialog::loadSkills | ( | ) |
Definition at line 357 of file skilldialog.cpp.
References addDefaultTab(), clearSkills(), Configuration::getStringValue(), loadXmlDir, loadXmlFile(), mSkills, paths, SkipError_false, SkipError_true, and update().
Referenced by WindowManager::createValidateWindows(), EAthena::GeneralHandler::gameStarted(), and TmwAthena::GeneralHandler::gameStarted().
| void SkillDialog::loadXmlFile | ( | const std::string & | fileName, |
| const SkipError | skipError | ||
| ) |
Definition at line 370 of file skilldialog.cpp.
References _, Widget::addActionListener(), TabbedArea::addTab(), fileName, for_each_xml_child_node, XML::getProperty(), loadSkill(), loadSkillData(), Logger::log(), logger, mDefaultModel, mDefaultTab, mDeleteTabs, mTabs, Opaque_false, SkillSetType::Rectangle, reportAlways, XML::Document::rootNode(), Widget::setActionEventId(), ScrollArea::setHorizontalScrollPolicy(), ScrollArea::setVerticalScrollPolicy(), Widget::setVisible(), ScrollArea::SHOW_ALWAYS, ScrollArea::SHOW_NEVER, Actions::skill(), strprintf(), SkillModel::updateVisibilities(), UseVirtFs_true, SkillSetType::VerticalList, Visible_false, and Visible_true.
Referenced by loadSkills().
| void SkillDialog::playCastingDstTileEffect | ( | const int | id, |
| const int | level, | ||
| const int | x, | ||
| const int | y, | ||
| const int | delay | ||
| ) | const |
Definition at line 979 of file skilldialog.cpp.
References cur_time, data, effectManager, Configuration::getIntValue(), getSkillDataByLevel(), paths, EffectManager::triggerDefault(), x, and y.
Referenced by EAthena::BeingRecv::processSkillCastingContinue().
| void SkillDialog::playRemoveEffect | ( | const int | id | ) | const |
Definition at line 967 of file skilldialog.cpp.
References data, effectManager, Configuration::getIntValue(), getSkillData(), localPlayer, paths, and EffectManager::triggerDefault().
Referenced by EAthena::SkillRecv::processSkillDelete().
| void SkillDialog::playUpdateEffect | ( | const int | id | ) | const |
Definition at line 955 of file skilldialog.cpp.
References data, effectManager, Configuration::getIntValue(), getSkillData(), localPlayer, paths, and EffectManager::triggerDefault().
Referenced by EAthena::QuestRecv::processAddQuest(), EAthena::QuestRecv::processAddQuest2(), EAthena::HomunculusRecv::processHomunculusSkillUp(), EAthena::SkillRecv::processPlayerSkills(), TmwAthena::SkillRecv::processPlayerSkills(), Ea::SkillRecv::processPlayerSkillUp(), EAthena::QuestRecv::processRemoveQuest(), TmwAthena::QuestRecv::processSetQuestVar(), EAthena::SkillRecv::processSkillAdd(), EAthena::SkillRecv::processSkillAdd2(), EAthena::SkillRecv::processSkillUpdate(), and EAthena::SkillRecv::processSkillUpdate2().
|
virtual |
Reimplemented from Window.
Definition at line 121 of file skilldialog.cpp.
References Window::enableVisibleSound(), Widget::getParent(), Window::loadWindowState(), Window::postInit(), and Window::setLocationRelativeTo().
| void SkillDialog::removeSkill | ( | const int | id | ) |
Definition at line 658 of file skilldialog.cpp.
References Actions::info(), mSkills, PlayerInfo::setSkillLevel(), and Visible_false.
Referenced by EAthena::SkillRecv::processSkillDelete().
| void SkillDialog::selectSkillCastType | ( | const int | skillId, |
| const CastTypeT | type | ||
| ) |
| void SkillDialog::selectSkillLevel | ( | const int | skillId, |
| const int | level | ||
| ) |
| void SkillDialog::setSkillDuration | ( | const SkillOwner::Type | owner, |
| const int | id, | ||
| const int | duration | ||
| ) |
Definition at line 819 of file skilldialog.cpp.
References addSkill(), addSkillDuration(), Actions::info(), Modifiable_false, mSkills, tick_time, and SkillType::Unknown.
Referenced by EAthena::SkillRecv::processSkillCoolDown(), and EAthena::SkillRecv::processSkillCoolDownList().
| void SkillDialog::setSkillOffsetX | ( | const int | skillId, |
| const int | offset | ||
| ) |
| void SkillDialog::setSkillOffsetY | ( | const int | skillId, |
| const int | offset | ||
| ) |
| void SkillDialog::slowLogic | ( | ) |
Definition at line 1399 of file skilldialog.cpp.
References FOR_EACH_SAFE, get_elapsed_time(), mDurations, and Actions::skill().
Referenced by Game::slowLogic().
| void SkillDialog::update | ( | ) |
Update other parts of the display
Definition at line 241 of file skilldialog.cpp.
References _, Label::adjustSize(), SkillType::Attack, ItemShortcut::clear(), FOR_EACH, fromInt, PlayerInfo::getAttribute(), SkillType::Ground, Actions::info(), itemShortcut, Modifiable_true, mPointsLabel, mSkills, Attributes::PLAYER_SKILL_POINTS, SkillPopup::reset(), SkillType::Self, Label::setCaption(), ItemShortcut::setItemData(), ItemShortcut::setItemFast(), SHORTCUT_AUTO_TAB, SHORTCUT_ITEMS, SKILL_MIN_ID, skillPopup, strprintf(), SkillType::Support, and Visible_false.
Referenced by loadSkills().
| std::string SkillDialog::update | ( | const int | id | ) |
Update the given skill's display
Definition at line 224 of file skilldialog.cpp.
References Actions::info(), and mSkills.
Referenced by EAthena::SkillRecv::processPlayerSkills(), TmwAthena::SkillRecv::processPlayerSkills(), EAthena::SkillRecv::processSkillAdd(), EAthena::SkillRecv::processSkillAdd2(), EAthena::SkillRecv::processSkillDelete(), EAthena::SkillRecv::processSkillUpdate(), EAthena::SkillRecv::processSkillUpdate2(), EAthena::PlayerHandler::setStat(), and TmwAthena::PlayerHandler::setStat().
| void SkillDialog::updateModels | ( | ) |
Definition at line 284 of file skilldialog.cpp.
References FOR_EACH, Actions::info(), mSkills, and SkillModel::updateVisibilities().
Referenced by EAthena::MercenaryRecv::handleMercenaryMessage(), EAthena::GuildRecv::processGuildSkillInfo(), EAthena::HomunculusRecv::processHomunculusSkills(), and EAthena::MercenaryRecv::processMercenarySkills().
| void SkillDialog::updateModelsHidden | ( | ) |
Definition at line 306 of file skilldialog.cpp.
References FOR_EACH, Actions::info(), mSkills, SkillModel::updateVisibilities(), and Visible_false.
Referenced by EAthena::SkillRecv::processPlayerSkills().
| void SkillDialog::updateQuest | ( | const int | var, |
| const int | val1, | ||
| const int | val2, | ||
| const int | val3, | ||
| const int | time1 | ||
| ) |
Definition at line 909 of file skilldialog.cpp.
References Actions::info(), mSkills, PlayerInfo::setSkillLevel(), and SKILL_VAR_MIN_ID.
Referenced by EAthena::QuestRecv::processAddQuest(), EAthena::QuestRecv::processAddQuest2(), EAthena::QuestRecv::processAddQuests(), EAthena::QuestRecv::processAddQuests2(), TmwAthena::QuestRecv::processPlayerQuests(), EAthena::QuestRecv::processRemoveQuest(), and TmwAthena::QuestRecv::processSetQuestVar().
| bool SkillDialog::updateSkill | ( | const int | id, |
| const int | range, | ||
| const Modifiable | modifiable, | ||
| const SkillType::SkillType | type, | ||
| const int | sp | ||
| ) |
Definition at line 676 of file skilldialog.cpp.
References TabbedArea::adjustTabPositions(), Actions::info(), mSkills, mTabs, TabbedArea::setSelectedTabDefault(), and Visible_true.
Referenced by EAthena::GuildRecv::processGuildSkillInfo(), EAthena::HomunculusRecv::processHomunculusSkills(), EAthena::HomunculusRecv::processHomunculusSkillUp(), EAthena::MercenaryRecv::processMercenarySkills(), EAthena::SkillRecv::processPlayerSkills(), TmwAthena::SkillRecv::processPlayerSkills(), Ea::SkillRecv::processPlayerSkillUp(), EAthena::SkillRecv::processSkillAdd(), EAthena::SkillRecv::processSkillAdd2(), EAthena::SkillRecv::processSkillUpdate(), and EAthena::SkillRecv::processSkillUpdate2().
| void SkillDialog::updateTabSelection | ( | ) |
Definition at line 888 of file skilldialog.cpp.
References _, SkillTab::getSelectedInfo(), TabbedArea::getSelectedTab(), Actions::info(), mIncreaseButton, mTabs, mUseButton, Button::setCaption(), Widget::setEnabled(), and SKILL_VAR_MIN_ID.
Referenced by SkillTab::setCurrent().
| void SkillDialog::useItem | ( | const int | itemId, |
| const AutoTarget | autoTarget, | ||
| const int | level, | ||
| const std::string & | data | ||
| ) | const |
Definition at line 850 of file skilldialog.cpp.
References data, CastType::Default, Actions::info(), mSkills, SKILL_MIN_ID, splitToIntVector(), and useSkill().
Referenced by ItemShortcut::useItem().
|
static |
Definition at line 997 of file skilldialog.cpp.
References CastType::Default, getSkill(), Actions::info(), and skillDialog.
|
static |
Definition at line 1021 of file skilldialog.cpp.
References data, CastType::Default, Viewport::getMouseTile(), LocalPlayer::getTarget(), Actions::info(), SpellManager::invokeCommand(), localPlayer, CastType::Position, CastType::Self, CastType::Target, useSkillDefault(), useSkillPosition(), useSkillTarget(), viewport, x, and y.
|
staticprivate |
Definition at line 1284 of file skilldialog.cpp.
References _, Widget::addActionListener(), AllowSort_true, SkillType::Attack, AutoTarget_true, CREATEWIDGETR, data, Being::fixDirectionOffsets(), ActorSprite::getId(), Viewport::getMouseTile(), LocalPlayer::getTarget(), SkillType::Ground, Actions::info(), localPlayer, Modal_true, ActorType::Monster, reportAlways, SkillType::Self, Widget::setActionEventId(), TextSkillListener::setDialog(), Window::setModal(), LocalPlayer::setNewTarget(), TextSkillListener::setSkill(), skillHandler, strprintf(), SkillType::Support, SkillType::TargetTrap, anonymous_namespace{skilldialog.cpp}::textSkillListener, SkillType::Unknown, SkillType::Unused, Net::SkillHandler::useBeing(), Net::SkillHandler::usePos(), viewport, x, and y.
Referenced by useSkill().
|
staticprivate |
Definition at line 1199 of file skilldialog.cpp.
References _, Widget::addActionListener(), SkillType::Attack, CREATEWIDGETR, data, Being::fixDirectionOffsets(), ActorSprite::getId(), SkillType::Ground, Actions::info(), localPlayer, Modal_true, reportAlways, SkillType::Self, Widget::setActionEventId(), TextSkillListener::setDialog(), Window::setModal(), TextSkillListener::setSkill(), skillHandler, strprintf(), SkillType::Support, SkillType::TargetTrap, anonymous_namespace{skilldialog.cpp}::textSkillListener, SkillType::Unknown, SkillType::Unused, Net::SkillHandler::useBeing(), Net::SkillHandler::usePos(), x, and y.
Referenced by useSkill().
|
staticprivate |
Definition at line 1096 of file skilldialog.cpp.
References _, Widget::addActionListener(), AllowSort_true, SkillType::Attack, AutoTarget_true, CREATEWIDGETR, data, Being::fixDirectionOffsets(), ActorSprite::getId(), Being::getTileX(), Being::getTileY(), SkillType::Ground, Actions::info(), localPlayer, Modal_true, ActorType::Monster, reportAlways, SkillType::Self, Widget::setActionEventId(), TextSkillListener::setDialog(), Window::setModal(), LocalPlayer::setNewTarget(), TextSkillListener::setSkill(), skillHandler, strprintf(), SkillType::Support, SkillType::TargetTrap, anonymous_namespace{skilldialog.cpp}::textSkillListener, SkillType::Unknown, SkillType::Unused, Net::SkillHandler::useBeing(), Net::SkillHandler::usePos(), x, and y.
Referenced by useSkill().
|
virtual |
Called whenever the widget changes size.
Reimplemented from Window.
Definition at line 842 of file skilldialog.cpp.
References TabbedArea::adjustSize(), mTabs, and Window::widgetResized().
|
private |
Definition at line 234 of file skilldialog.h.
Referenced by addDefaultTab(), addSkill(), clearSkills(), and loadXmlFile().
|
private |
Definition at line 235 of file skilldialog.h.
Referenced by addDefaultTab(), addSkill(), clearSkills(), and loadXmlFile().
|
private |
Definition at line 230 of file skilldialog.h.
Referenced by addDefaultTab(), clearSkills(), and loadXmlFile().
|
private |
Definition at line 228 of file skilldialog.h.
Referenced by addSkillDuration(), clearSkills(), and slowLogic().
|
private |
Definition at line 233 of file skilldialog.h.
Referenced by action(), SkillDialog(), and updateTabSelection().
|
private |
Definition at line 231 of file skilldialog.h.
Referenced by SkillDialog(), and update().
|
private |
Definition at line 227 of file skilldialog.h.
Referenced by addSkill(), clearSkills(), getSkill(), getSkillByItem(), getSkillData(), getSkillDataByLevel(), hasSkills(), hideSkills(), loadSkill(), loadSkills(), removeSkill(), setSkillDuration(), update(), updateModels(), updateModelsHidden(), updateQuest(), updateSkill(), and useItem().
|
private |
Definition at line 229 of file skilldialog.h.
Referenced by action(), addDefaultTab(), addSkill(), clearSkills(), loadXmlFile(), SkillDialog(), updateSkill(), updateTabSelection(), and widgetResized().
|
private |
Definition at line 232 of file skilldialog.h.
Referenced by action(), SkillDialog(), and updateTabSelection().