1 /*
2 * The ManaPlus Client
3 * Copyright (C) 2004-2009 The Mana World Development Team
4 * Copyright (C) 2009-2010 The Mana Developers
5 * Copyright (C) 2011-2019 The ManaPlus Developers
6 * Copyright (C) 2019-2021 Andrei Karas
7 *
8 * This file is part of The ManaPlus Client.
9 *
10 * This program is free software; you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License as published by
12 * the Free Software Foundation; either version 2 of the License, or
13 * any later version.
14 *
15 * This program is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
19 *
20 * You should have received a copy of the GNU General Public License
21 * along with this program. If not, see <http://www.gnu.org/licenses/>.
22 */
23
24 #ifndef ENUMS_STATE_H
25 #define ENUMS_STATE_H
26
27 #include "enums/simpletypes/enumdefines.h"
28
29 #ifdef WIN32
30 #undef ERROR
31 #endif // WIN32
32
enumStart(State)33 enumStart(State)
34 {
35 ERROR = -1,
36 START,
37 CHOOSE_SERVER,
38 CONNECT_SERVER,
39 PRE_LOGIN,
40 LOGIN,
41 LOGIN_ATTEMPT,
42 WORLD_SELECT, // 5
43 WORLD_SELECT_ATTEMPT,
44 UPDATE,
45 LOAD_DATA,
46 GET_CHARACTERS,
47 CHAR_SELECT, // 10
48 CONNECT_GAME,
49 GAME,
50 CHANGE_MAP, // Switch map-server/gameserver
51 LOGIN_ERROR,
52 ACCOUNTCHANGE_ERROR, // 15
53 REGISTER_PREP,
54 REGISTER,
55 REGISTER_ATTEMPT,
56 CHANGEPASSWORD,
57 CHANGEPASSWORD_ATTEMPT, // 20
58 CHANGEPASSWORD_SUCCESS,
59 CHANGEEMAIL,
60 CHANGEEMAIL_ATTEMPT,
61 CHANGEEMAIL_SUCCESS,
62 SWITCH_SERVER,
63 SWITCH_LOGIN,
64 SWITCH_CHARACTER, // 30
65 LOGOUT_ATTEMPT,
66 WAIT,
67 EXIT,
68 FORCE_QUIT,
69 AUTORECONNECT_SERVER = 1000
70 }
71 enumEnd(State);
72
73 #endif // ENUMS_STATE_H
74