#include <partywindow.h>

Definition at line 55 of file partywindow.h.
Public Member Functions | |
| PartyWindow () | |
| ~PartyWindow () | |
| Release all the players created. | |
| void | draw (gcn::Graphics *graphics) |
| Draws the party window. | |
| PartyMember * | findMember (int id) const |
| Find a party member based on ID. | |
| int | findMember (const std::string &name) const |
| Returns the id of the first member found with the given name or -1 if it isn't found. | |
| void | updateMember (int id, const std::string &memberName, bool leader=false, bool online=true) |
| Update/add a party member. | |
| void | removeMember (int id) |
| Remove party member with the given id. | |
| void | removeMember (const std::string &name) |
| Remove party member with the given name. | |
| void | updateOnlne (int id, bool online) |
| Updates the online state of the member with the given id. | |
| void | showPartyInvite (const std::string &inviter, const std::string &partyName="") |
| Show party invite. | |
| void | action (const gcn::ActionEvent &event) |
| Handle events. | |
| void | clear () |
Private Types | |
| typedef std::map< int, PartyMember * > | PartyList |
Private Member Functions | |
| PartyMember * | findOrCreateMember (int id) |
| Find a party member based on ID. | |
Private Attributes | |
| PartyList | mMembers |
| std::string | mPartyInviter |
| ConfirmDialog * | acceptDialog |
typedef std::map<int, PartyMember*> PartyWindow::PartyList [private] |
Definition at line 121 of file partywindow.h.
| PartyWindow::PartyWindow | ( | ) |
Definition at line 33 of file partywindow.cpp.
| PartyWindow::~PartyWindow | ( | ) |
| void PartyWindow::draw | ( | gcn::Graphics * | graphics | ) |
| PartyMember * PartyWindow::findMember | ( | int | id | ) | const |
Find a party member based on ID.
Returns NULL if not found.
Definition at line 58 of file partywindow.cpp.
| int PartyWindow::findMember | ( | const std::string & | name | ) | const |
Returns the id of the first member found with the given name or -1 if it isn't found.
Definition at line 83 of file partywindow.cpp.
| void PartyWindow::updateMember | ( | int | id, | |
| const std::string & | memberName, | |||
| bool | leader = false, |
|||
| bool | online = true | |||
| ) |
| void PartyWindow::removeMember | ( | int | id | ) |
| void PartyWindow::removeMember | ( | const std::string & | name | ) |
| void PartyWindow::updateOnlne | ( | int | id, | |
| bool | online | |||
| ) |
Updates the online state of the member with the given id.
Definition at line 133 of file partywindow.cpp.
| void PartyWindow::showPartyInvite | ( | const std::string & | inviter, | |
| const std::string & | partyName = "" | |||
| ) |
| void PartyWindow::action | ( | const gcn::ActionEvent & | event | ) |
| void PartyWindow::clear | ( | ) |
Definition at line 192 of file partywindow.cpp.
| PartyMember * PartyWindow::findOrCreateMember | ( | int | id | ) | [private] |
Find a party member based on ID.
Creates if not found.
Definition at line 68 of file partywindow.cpp.
PartyList PartyWindow::mMembers [private] |
Definition at line 122 of file partywindow.h.
std::string PartyWindow::mPartyInviter [private] |
Definition at line 123 of file partywindow.h.
ConfirmDialog* PartyWindow::acceptDialog [private] |
Definition at line 124 of file partywindow.h.
1.5.5