summaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorThorbjørn Lindeijer <bjorn@lindeijer.nl>2009-10-06 23:40:55 +0200
committerThorbjørn Lindeijer <bjorn@lindeijer.nl>2009-10-06 23:43:40 +0200
commit64a37da4cb8d74a29f369e96e8c3669275516394 (patch)
treecaa0eb0d05ab5674b6b6ac822d151aa2585721e8 /src/main.cpp
parent610dc30ceecdfe538f71826689630e0f28c278cc (diff)
downloadmana-64a37da4cb8d74a29f369e96e8c3669275516394.tar.gz
mana-64a37da4cb8d74a29f369e96e8c3669275516394.tar.bz2
mana-64a37da4cb8d74a29f369e96e8c3669275516394.tar.xz
mana-64a37da4cb8d74a29f369e96e8c3669275516394.zip
Some cleanup regarding keeping track of gender for eAthena
LoginHandler now owns the world list and the token, instead of having them as global variables with pointers to the 'sex' member of the token from the GUI.
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 82e8ff50..c1715fd1 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -123,8 +123,9 @@
namespace
{
- struct SetupListener : public gcn::ActionListener
+ class SetupListener : public gcn::ActionListener
{
+ public:
/**
* Called when receiving actions from widget.
*/
@@ -661,24 +662,27 @@ static void loadUpdates()
}
}
-struct ErrorListener : public gcn::ActionListener
+class ErrorListener : public gcn::ActionListener
{
+public:
void action(const gcn::ActionEvent &event)
{
state = STATE_CHOOSE_SERVER;
}
} errorListener;
-struct AccountListener : public gcn::ActionListener
+class AccountListener : public gcn::ActionListener
{
+public:
void action(const gcn::ActionEvent &event)
{
state = STATE_CHAR_SELECT;
}
} accountListener;
-struct LoginListener : public gcn::ActionListener
+class LoginListener : public gcn::ActionListener
{
+public:
void action(const gcn::ActionEvent &event)
{
state = STATE_LOGIN;