ManaPlus
|
#include <textskilllistener.h>
Public Member Functions | |
TextSkillListener () | |
void | action (const ActionEvent &event) |
void | setSkill (const int skillId, const int x, const int y, const int level) |
void | setDialog (TextDialog *dialog) |
Public Member Functions inherited from ActionListener | |
virtual | ~ActionListener () |
Private Attributes | |
TextDialog * | mDialog |
int | mSkillId |
int | mX |
int | mY |
int | mLevel |
Additional Inherited Members | |
Protected Member Functions inherited from ActionListener | |
ActionListener () | |
Definition at line 31 of file textskilllistener.h.
TextSkillListener::TextSkillListener | ( | ) |
Definition at line 30 of file textskilllistener.cpp.
|
virtual |
Called when an action is recieved from a widget. It is used to be able to recieve a notification that an action has occured.
actionEvent | The event of the action. |
Implements ActionListener.
Definition at line 51 of file textskilllistener.cpp.
References ActionEvent::getId(), TextDialog::getText(), mDialog, mLevel, mSkillId, mX, mY, skillHandler, and Net::SkillHandler::usePos().
|
inline |
Definition at line 45 of file textskilllistener.h.
References mDialog.
Referenced by SkillDialog::useSkillDefault(), SkillDialog::useSkillPosition(), and SkillDialog::useSkillTarget().
void TextSkillListener::setSkill | ( | const int | skillId, |
const int | x, | ||
const int | y, | ||
const int | level | ||
) |
Definition at line 40 of file textskilllistener.cpp.
References mLevel, mSkillId, mX, mY, x, and y.
Referenced by SkillDialog::useSkillDefault(), SkillDialog::useSkillPosition(), and SkillDialog::useSkillTarget().
|
private |
Definition at line 49 of file textskilllistener.h.
Referenced by action(), and setDialog().
|
private |
Definition at line 53 of file textskilllistener.h.
Referenced by action(), and setSkill().
|
private |
Definition at line 50 of file textskilllistener.h.
Referenced by action(), and setSkill().
|
private |
Definition at line 51 of file textskilllistener.h.
Referenced by action(), and setSkill().
|
private |
Definition at line 52 of file textskilllistener.h.
Referenced by action(), and setSkill().