summaryrefslogtreecommitdiff
path: root/src/gui/char_select.h
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2005-09-23 23:47:32 +0000
committerBjørn Lindeijer <bjorn@lindeijer.nl>2005-09-23 23:47:32 +0000
commit7ca971f04907031b80ffbcb159e5af2f595e3af8 (patch)
treec7f0f210325acb35f63071797407d266ba7e9e35 /src/gui/char_select.h
parentc3d7827d18b725d2dff94e08a17474d607bb43dd (diff)
downloadmana-7ca971f04907031b80ffbcb159e5af2f595e3af8.tar.gz
mana-7ca971f04907031b80ffbcb159e5af2f595e3af8.tar.bz2
mana-7ca971f04907031b80ffbcb159e5af2f595e3af8.tar.xz
mana-7ca971f04907031b80ffbcb159e5af2f595e3af8.zip
Merged most of the changes in biggeruniverse's second memory cleanup patch.
Diffstat (limited to 'src/gui/char_select.h')
-rw-r--r--src/gui/char_select.h61
1 files changed, 32 insertions, 29 deletions
diff --git a/src/gui/char_select.h b/src/gui/char_select.h
index c4aac4b9..3751a440 100644
--- a/src/gui/char_select.h
+++ b/src/gui/char_select.h
@@ -29,16 +29,35 @@
#include "../guichanfwd.h"
+#include <SDL_events.h>
+
class PlayerBox;
struct PLAYER_INFO;
-struct SDL_KeyboardEvent;
/**
* Character selection dialog.
*
* \ingroup Interface
*/
-class CharSelectDialog : public Window, public gcn::ActionListener {
+class CharSelectDialog : public Window, public gcn::ActionListener
+{
+ public:
+ /**
+ * Constructor.
+ */
+ CharSelectDialog();
+
+ /**
+ * Destructor.
+ */
+ ~CharSelectDialog();
+
+ void action(const std::string& eventId);
+
+ void setPlayerInfo(PLAYER_INFO* pi);
+
+ void logic();
+
private:
gcn::Button *selectButton;
gcn::Button *cancelButton;
@@ -73,31 +92,30 @@ class CharSelectDialog : public Window, public gcn::ActionListener {
private:
CharSelectDialog *master;
};
+};
+/**
+ * Character creation dialog.
+ *
+ * \ingroup GUI
+ */
+class CharCreateDialog : public Window, public gcn::ActionListener
+{
public:
/**
* Constructor.
*/
- CharSelectDialog();
+ CharCreateDialog(Window *parent = NULL);
/**
* Destructor.
*/
- ~CharSelectDialog();
+ ~CharCreateDialog();
void action(const std::string& eventId);
- void setPlayerInfo(PLAYER_INFO* pi);
-
- void logic();
-};
+ std::string getName();
-/**
- * Character creation dialog.
- *
- * \ingroup GUI
- */
-class CharCreateDialog : public Window, public gcn::ActionListener {
private:
gcn::TextField *nameField;
gcn::Label *nameLabel;
@@ -117,21 +135,6 @@ class CharCreateDialog : public Window, public gcn::ActionListener {
* info.
*/
void serverCharCreate();
-
- public:
- /**
- * Constructor.
- */
- CharCreateDialog(Window *parent = NULL);
-
- /**
- * Destructor.
- */
- ~CharCreateDialog();
-
- void action(const std::string& eventId);
-
- std::string getName();
};
void charSelectInputHandler(SDL_KeyboardEvent *keyEvent);