From 64a37da4cb8d74a29f369e96e8c3669275516394 Mon Sep 17 00:00:00 2001 From: Thorbjørn Lindeijer Date: Tue, 6 Oct 2009 23:40:55 +0200 Subject: 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. --- src/main.cpp | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'src/main.cpp') 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; -- cgit v1.2.3-70-g09d2