X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=menu.h;h=75b68d18cc90ba1b15410276f8b8510a64aee35c;hb=87af6a50d2699bb3a46b4b7c47e952c040709949;hp=8b5a34e18278d095c5a97b720d33a0347a97f766;hpb=e411cc7d14dad08cbbe27f5b3af86700f7eb5184;p=xonotic%2Fdarkplaces.git diff --git a/menu.h b/menu.h index 8b5a34e1..75b68d18 100644 --- a/menu.h +++ b/menu.h @@ -18,6 +18,9 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ +#ifndef MENU_H +#define MENU_H + // // the net drivers should just set the apropriate bits in m_activenet, // instead of having the menu code look through their internal tables @@ -25,9 +28,31 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #define MNET_IPX 1 #define MNET_TCP 2 +enum m_state_e { + m_none, + m_main, + m_demo, + m_singleplayer, + m_load, + m_save, + m_multiplayer, + m_setup, + m_net, + m_options, + m_video, + m_keys, + m_help, + m_quit, + m_lanconfig, + m_gameoptions, + m_search, + m_slist, + m_options_effects +}; + extern int m_activenet; extern int m_return_state; -extern int m_state; +extern enum m_state_e m_state; extern qboolean m_return_onerror; extern char m_return_reason[32]; @@ -39,4 +64,5 @@ void M_Keydown (int key); void M_Draw (void); void M_ToggleMenu_f (void); +#endif