summaryrefslogtreecommitdiff
path: root/src/gui/partywindow.h
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2009-05-10 20:29:14 +0200
committerBjørn Lindeijer <bjorn@lindeijer.nl>2009-05-10 21:24:20 +0200
commit3c912139aef92a3e070ade966c91c297b7a5310c (patch)
tree2628e66b9cfe3cd494bb33641ac995db949c01fb /src/gui/partywindow.h
parent6e3a3c345a2cad8308738b8b7b5292b9002c1a6e (diff)
downloadmana-3c912139aef92a3e070ade966c91c297b7a5310c.tar.gz
mana-3c912139aef92a3e070ade966c91c297b7a5310c.tar.bz2
mana-3c912139aef92a3e070ade966c91c297b7a5310c.tar.xz
mana-3c912139aef92a3e070ade966c91c297b7a5310c.zip
Fixed the resize grip of the party window
It wasn't re-added after doing a clear. Also, don't leak all the PartyMember and Avatar instances.
Diffstat (limited to 'src/gui/partywindow.h')
-rw-r--r--src/gui/partywindow.h22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/gui/partywindow.h b/src/gui/partywindow.h
index 6a8cc4fc..65e8d772 100644
--- a/src/gui/partywindow.h
+++ b/src/gui/partywindow.h
@@ -37,14 +37,19 @@
* Party Member
* Used for storing players in the party
*/
-struct PartyMember
+class PartyMember
{
- std::string name;
- bool leader;
- bool online;
- Avatar *avatar;
+ public:
+ PartyMember();
+ ~PartyMember();
+
+ std::string name;
+ bool leader;
+ bool online;
+ Avatar *avatar;
};
+
/**
* Party window.
*
@@ -61,11 +66,6 @@ class PartyWindow : public Window, gcn::ActionListener
~PartyWindow();
/**
- * Draws the party window.
- */
- void draw(gcn::Graphics *graphics);
-
- /**
* Find a party member based on ID. Returns NULL if not found.
*/
PartyMember *findMember(int id) const;
@@ -113,7 +113,7 @@ class PartyWindow : public Window, gcn::ActionListener
*/
void action(const gcn::ActionEvent &event);
- void clear();
+ void clearMembers();
private:
/**