summaryrefslogtreecommitdiff
path: root/src/main.h
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2006-08-20 00:56:23 +0000
committerBjørn Lindeijer <bjorn@lindeijer.nl>2006-08-20 00:56:23 +0000
commit01591924a4f33d5a5e4a86db6c256c8ce797a820 (patch)
treea1fe33f8a28a19fddd9f4ccdf7816f85636c4bcb /src/main.h
parent0841d65d15e4c318ad8f5fe4b7e257d963ef7841 (diff)
downloadmana-01591924a4f33d5a5e4a86db6c256c8ce797a820.tar.gz
mana-01591924a4f33d5a5e4a86db6c256c8ce797a820.tar.bz2
mana-01591924a4f33d5a5e4a86db6c256c8ce797a820.tar.xz
mana-01591924a4f33d5a5e4a86db6c256c8ce797a820.zip
The Network can now connect to the three servers and affected methods now take
the server type as a parameter. The MessageOut gained a convenience constructor (same as was added server side). The game states during login sequence have been renamed and redone in order to ensure no communication is attempted to unconnected servers. This allowed the removal of the outgoing message queue. Connecting to the account server has been moved before the login/register phase (dialogs will still need to be updated). Quite a few things are expected to be broken since I'm rather tired at the moment. I've left many TODO entries in the code.
Diffstat (limited to 'src/main.h')
-rw-r--r--src/main.h30
1 files changed, 15 insertions, 15 deletions
diff --git a/src/main.h b/src/main.h
index 035b0ec7..47c650af 100644
--- a/src/main.h
+++ b/src/main.h
@@ -39,20 +39,20 @@
enum {
- EXIT_STATE,
- LOGIN_STATE,
- ACCOUNT_STATE,
- REGISTER_STATE,
- REGISTER_ACCOUNT_STATE,
- CHAR_CONNECT_STATE,
- CHAR_SERVER_STATE,
- CHAR_SELECT_STATE,
- CHAR_NEW_STATE,
- CHAR_DEL_STATE,
- GAME_STATE,
- ERROR_STATE,
- UPDATE_STATE,
- CONNECTING_STATE
+ STATE_CHOOSE_SERVER,
+ STATE_CONNECT_ACCOUNT,
+ STATE_UPDATE,
+ STATE_LOGIN,
+ STATE_LOGIN_ATTEMPT,
+ STATE_REGISTER,
+ STATE_REGISTER_ATTEMPT,
+ STATE_CHAR_SELECT,
+ STATE_CHAR_NEW,
+ STATE_CHAR_DELETE,
+ STATE_ERROR,
+ STATE_CONNECT_GAME,
+ STATE_GAME,
+ STATE_EXIT
};
/* length definitions for several char[]s in order
@@ -66,7 +66,7 @@ enum {
LEN_MIN_PASSWORD = 4
};
-extern char n_server, n_character;
+extern char n_character;
extern unsigned char state;
extern std::string errorMessage;