Пример #1
0
        public static void init_display()
        {
            Game_Event.add_handler(Game_Event.Event_Type.ENTER_INIT, ui_enter_init, null);
            Game_Event.add_handler(Game_Event.Event_Type.LEAVE_INIT, ui_leave_init, null);

            Game_Event.add_handler(Game_Event.Event_Type.ENTER_GAME, ui_enter_game, null);
            Game_Event.add_handler(Game_Event.Event_Type.LEAVE_GAME, ui_leave_game, null);

            UIBirth.ui_init_birthstate_handlers();
        }
Пример #2
0
        public static int get_cmd(cmd_context context, bool wait)
        {
            if (context == cmd_context.CMD_BIRTH)
            {
                return(UIBirth.get_birth_command(wait));
            }
            else if (context == cmd_context.CMD_GAME)
            {
                TextUI.process_command(!wait);
            }

            /* If we've reached here, we haven't got a command. */
            return(1);
        }