ManaPlus
|
#include <playerlistener.h>
Public Member Functions | |
PlayerListener () | |
void | action (const ActionEvent &event) |
void | setNick (const std::string &name) |
void | setDialog (TextDialog *const dialog) |
void | setType (const ActorTypeT type) |
Public Member Functions inherited from ActionListener | |
virtual | ~ActionListener () |
Private Attributes | |
std::string | mNick |
TextDialog * | mDialog |
ActorTypeT | mType |
Additional Inherited Members | |
Protected Member Functions inherited from ActionListener | |
ActionListener () | |
Definition at line 33 of file playerlistener.h.
PlayerListener::PlayerListener | ( | ) |
Definition at line 32 of file playerlistener.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 40 of file playerlistener.cpp.
References actorManager, ActorManager::findBeingByName(), ActionEvent::getId(), TextDialog::getText(), mDialog, mNick, mType, Being::saveComment(), and Being::setComment().
|
inline |
Definition at line 45 of file playerlistener.h.
References mDialog.
Referenced by PopupMenu::handleLink(), and PopupMenu::PopupMenu().
|
inline |
Definition at line 42 of file playerlistener.h.
References mNick.
Referenced by PopupMenu::handleLink(), and PopupMenu::PopupMenu().
|
inline |
Definition at line 48 of file playerlistener.h.
References mType.
Referenced by PopupMenu::handleLink(), and PopupMenu::PopupMenu().
|
private |
Definition at line 53 of file playerlistener.h.
Referenced by action(), and setDialog().
|
private |
Definition at line 52 of file playerlistener.h.
|
private |
Definition at line 54 of file playerlistener.h.