#ifndef COMPILE_H
#include "COMPILE.H"
#endif
#ifdef MEDIA042_S10EA_S10EB_S11E_S12E_S12G_S13FA_S13FB_S20E_S21E_G14ED_G20E_G21E_A20ED_A20E_A20F_A20G_A21E_A22E_A22G_F20E_F20J_X30J_P20JA_P20JB_I34E_I34M_A36M_A31E_A31M_A33M_A35E_A35M_F31E_F31J_X31J_P31J
void F0395_MENUS_DrawMovementArrows(
#ifdef MEDIA529_F20E_F20J_X30J_P20JA_P20JB_I34E_I34M_A36M_A31E_A31M_A33M_A35E_A35M_F31E_F31J_X31J_P31J
void
#endif
)
{
        F0077_MOUSE_EnableScreenUpdate_CPSE();
#ifdef MEDIA009_S10EA_S10EB_S11E_S12E_S12G_S13FA_S13FB_S20E_S21E_G14ED_G20E_G21E_A20ED_A20E_A20F_A20G_A21E_A22E_A22G
        M520_F0021_MAIN_BlitToScreen(F0489_MEMORY_GetNativeBitmapOrGraphic(C013_GRAPHIC_MOVEMENT_ARROWS), G0002_ai_Graphic562_Box_MovementArrows, C048_BYTE_WIDTH, CM1_COLOR_NO_TRANSPARENCY, 45);
#endif
#ifdef MEDIA529_F20E_F20J_X30J_P20JA_P20JB_I34E_I34M_A36M_A31E_A31M_A33M_A35E_A35M_F31E_F31J_X31J_P31J
        F0660_(C013_GRAPHIC_MOVEMENT_ARROWS, C009_ZONE_MOVEMENT_ARROWS, CM1_COLOR_NO_TRANSPARENCY);
#endif
        F0078_MOUSE_DisableScreenUpdate();
}

#ifdef MEDIA413_A20ED_A20E_A20F_A20G_A21E_A22E_A22G
void F0517_MENUS_AllocateSpellAreaBitmaps(
)
{
        G1069_puc_Bitmap_SpellAreaLine = F0468_MEMORY_Allocate((long)M075_BITMAP_BYTE_COUNT(96, 12), C1_ALLOCATION_PERMANENT);
        G1070_puc_Bitmap_SpellAreaLines = F0468_MEMORY_Allocate((long)(3 * M075_BITMAP_BYTE_COUNT(96, 12)), C1_ALLOCATION_PERMANENT);
}
#endif

#ifdef MEDIA009_S10EA_S10EB_S11E_S12E_S12G_S13FA_S13FB_S20E_S21E_G14ED_G20E_G21E_A20ED_A20E_A20F_A20G_A21E_A22E_A22G
void F0396_MENUS_LoadSpellAreaLinesBitmap(
)
{
#ifdef MEDIA008_S10EA_S10EB_S11E_S12E_S12G_S13FA_S13FB_S20E_S21E_G14ED_G20E_G21E
        F0490_MEMORY_LoadDecompressAndExpandGraphic(C011_GRAPHIC_MENU_SPELL_AREA_LINES, G0516_aaui_Bitmap_SpellAreaLines, 0, 0);
#endif
#ifdef MEDIA413_A20ED_A20E_A20F_A20G_A21E_A22E_A22G
        F0490_MEMORY_LoadDecompressAndExpandGraphic(C011_GRAPHIC_MENU_SPELL_AREA_LINES, G1070_puc_Bitmap_SpellAreaLines, 0, 0);
#endif
}
#endif

#ifdef MEDIA529_F20E_F20J_X30J_P20JA_P20JB_I34E_I34M_A36M_A31E_A31M_A33M_A35E_A35M_F31E_F31J_X31J_P31J
#include "SPELDRAW.C"
#endif

void F0397_MENUS_DrawAvailableSymbols(
#ifdef MEDIA009_S10EA_S10EB_S11E_S12E_S12G_S13FA_S13FB_S20E_S21E_G14ED_G20E_G21E_A20ED_A20E_A20F_A20G_A21E_A22E_A22G
P0766_ui_SymbolStep)
#endif
unsigned int16_t P0766_ui_SymbolStep FINAL_SEPARATOR
{
        REGISTER unsigned int16_t L1214_ui_Counter;
#ifdef MEDIA009_S10EA_S10EB_S11E_S12E_S12G_S13FA_S13FB_S20E_S21E_G14ED_G20E_G21E_A20ED_A20E_A20F_A20G_A21E_A22E_A22G
        REGISTER int16_t L1215_i_X;
#endif
#ifdef MEDIA529_F20E_F20J_X30J_P20JA_P20JB_I34E_I34M_A36M_A31E_A31M_A33M_A35E_A35M_F31E_F31J_X31J_P31J
        REGISTER int16_t L3015_i_ZoneIndex;
#endif
        REGISTER char L1216_c_Character;
        char L1217_ac_String[2];


        L1217_ac_String[1] = '\0';
        L1216_c_Character = 96 + 6 * P0766_ui_SymbolStep;
#ifdef MEDIA009_S10EA_S10EB_S11E_S12E_S12G_S13FA_S13FB_S20E_S21E_G14ED_G20E_G21E_A20ED_A20E_A20F_A20G_A21E_A22E_A22G
        L1215_i_X = 225;
#endif
#ifdef MEDIA529_F20E_F20J_X30J_P20JA_P20JB_I34E_I34M_A36M_A31E_A31M_A33M_A35E_A35M_F31E_F31J_X31J_P31J
        L3015_i_ZoneIndex = C255_ZONE_SPELL_AREA_AVAILABLE_SYMBOL_0;
#endif
        for (L1214_ui_Counter = 0; L1214_ui_Counter < 6; L1214_ui_Counter++) {
                L1217_ac_String[0] = L1216_c_Character++;
#ifdef MEDIA009_S10EA_S10EB_S11E_S12E_S12G_S13FA_S13FB_S20E_S21E_G14ED_G20E_G21E_A20ED_A20E_A20F_A20G_A21E_A22E_A22G
                F0053_TEXT_PrintToLogicalScreen(L1215_i_X += 14, 58, C04_COLOR_CYAN, C00_COLOR_BLACK, L1217_ac_String);
#endif
#ifdef MEDIA529_F20E_F20J_X30J_P20JA_P20JB_I34E_I34M_A36M_A31E_A31M_A33M_A35E_A35M_F31E_F31J_X31J_P31J
                F0650_PrintCenteredTextToScreenZone(L3015_i_ZoneIndex++, C04_COLOR_CYAN, C00_COLOR_BLACK, L1217_ac_String);
#endif
        }
}

void F0398_MENUS_DrawChampionSymbols(
#ifdef MEDIA009_S10EA_S10EB_S11E_S12E_S12G_S13FA_S13FB_S20E_S21E_G14ED_G20E_G21E_A20ED_A20E_A20F_A20G_A21E_A22E_A22G
P0767_ps_Champion)
#endif
REGISTER CHAMPION* P0767_ps_Champion FINAL_SEPARATOR
{
        REGISTER unsigned int16_t L1218_ui_SymbolIndex;
#ifdef MEDIA009_S10EA_S10EB_S11E_S12E_S12G_S13FA_S13FB_S20E_S21E_G14ED_G20E_G21E_A20ED_A20E_A20F_A20G_A21E_A22E_A22G
        REGISTER int16_t L1219_i_X;
#endif
#ifdef MEDIA529_F20E_F20J_X30J_P20JA_P20JB_I34E_I34M_A36M_A31E_A31M_A33M_A35E_A35M_F31E_F31J_X31J_P31J
        REGISTER int16_t L3016_i_ZoneIndex;
#endif
        REGISTER unsigned int16_t L1220_ui_SymbolCount;
        char L1221_ac_String[2];


#ifdef MEDIA009_S10EA_S10EB_S11E_S12E_S12G_S13FA_S13FB_S20E_S21E_G14ED_G20E_G21E_A20ED_A20E_A20F_A20G_A21E_A22E_A22G
        L1220_ui_SymbolCount = strlen(P0767_ps_Champion->Symbols);
        L1219_i_X = 232;
#endif
        L1221_ac_String[1] = '\0';
#ifdef MEDIA529_F20E_F20J_X30J_P20JA_P20JB_I34E_I34M_A36M_A31E_A31M_A33M_A35E_A35M_F31E_F31J_X31J_P31J
        L1220_ui_SymbolCount = M544_STRLEN(M772_CAST_PC(P0767_ps_Champion->Symbols));
        L3016_i_ZoneIndex = C261_ZONE_SPELL_AREA_CHAMPION_SYMBOL_0;
#endif
        for (L1218_ui_SymbolIndex = 0; L1218_ui_SymbolIndex < 4; L1218_ui_SymbolIndex++) {
                if (L1218_ui_SymbolIndex >= L1220_ui_SymbolCount) {
                        L1221_ac_String[0] = ' ';
                } else {
                        L1221_ac_String[0] = P0767_ps_Champion->Symbols[L1218_ui_SymbolIndex];
                }
#ifdef MEDIA009_S10EA_S10EB_S11E_S12E_S12G_S13FA_S13FB_S20E_S21E_G14ED_G20E_G21E_A20ED_A20E_A20F_A20G_A21E_A22E_A22G
                F0053_TEXT_PrintToLogicalScreen(L1219_i_X += 9, 70, C04_COLOR_CYAN, C00_COLOR_BLACK, L1221_ac_String);
#endif
#ifdef MEDIA529_F20E_F20J_X30J_P20JA_P20JB_I34E_I34M_A36M_A31E_A31M_A33M_A35E_A35M_F31E_F31J_X31J_P31J
                F0650_PrintCenteredTextToScreenZone(L3016_i_ZoneIndex++, C04_COLOR_CYAN, C00_COLOR_BLACK, L1221_ac_String);
#endif
        }
}

#ifdef MEDIA529_F20E_F20J_X30J_P20JA_P20JB_I34E_I34M_A36M_A31E_A31M_A33M_A35E_A35M_F31E_F31J_X31J_P31J
#include "CASTER.C"
#include "ACTIDRAW.C"
#include "SPELFAIL.C"
#endif
#endif
