indexing description: "[ THIS CLASS WAS AUTO-GENERATED WITH THE COMMAND em_resource_generator resources.xml DO NOT EDIT THIS CLASS Class to load and access resources ]" date: "$Date$" revision: "$Revision$" class RESOURCES inherit EM_SHARED_FILE_LOADER export {NONE} all end create make feature -- Initialization make is do reset_error create error_files.make file_loader.set_ignore_missing_file (true) end feature -- Attributes -- Resources for Section loadingscene sprite_init_em: EM_SPRITE num_of_loadingscene_resources: INTEGER is 1 loadingscene_progress: INTEGER loadingscene_is_loaded: BOOLEAN -- Resources for Section fonts bmp_font_vera: EM_BMP_FONT ttf_font_vera: EM_COLOR_TTF_FONT num_of_fonts_resources: INTEGER is 2 fonts_progress: INTEGER fonts_is_loaded: BOOLEAN -- Resources for Section audio music_main: EM_MUSIC sfx_drum: EM_SOUND num_of_audio_resources: INTEGER is 2 audio_progress: INTEGER audio_is_loaded: BOOLEAN -- Resources for Section mainscene image_29hello_world: EM_BITMAP image_29earth: EM_BITMAP image_29art: EM_BITMAP image_28hello_world: EM_BITMAP image_28earth: EM_BITMAP image_28art: EM_BITMAP image_27hello_world: EM_BITMAP image_27earth: EM_BITMAP image_27art: EM_BITMAP image_26hello_world: EM_BITMAP image_26earth: EM_BITMAP image_26art: EM_BITMAP image_25hello_world: EM_BITMAP image_25earth: EM_BITMAP image_25art: EM_BITMAP image_24hello_world: EM_BITMAP image_24earth: EM_BITMAP image_24art: EM_BITMAP image_23hello_world: EM_BITMAP image_23earth: EM_BITMAP image_23art: EM_BITMAP image_22hello_world: EM_BITMAP image_22earth: EM_BITMAP image_22art: EM_BITMAP image_21hello_world: EM_BITMAP image_21earth: EM_BITMAP image_21art: EM_BITMAP image_20hello_world: EM_BITMAP image_20earth: EM_BITMAP image_20art: EM_BITMAP image_19hello_world: EM_BITMAP image_19earth: EM_BITMAP image_19art: EM_BITMAP image_18hello_world: EM_BITMAP image_18earth: EM_BITMAP image_18art: EM_BITMAP image_17hello_world: EM_BITMAP image_17earth: EM_BITMAP image_17art: EM_BITMAP image_16hello_world: EM_BITMAP image_16earth: EM_BITMAP image_16art: EM_BITMAP image_15hello_world: EM_BITMAP image_15earth: EM_BITMAP image_15art: EM_BITMAP image_14hello_world: EM_BITMAP image_14earth: EM_BITMAP image_14art: EM_BITMAP image_13hello_world: EM_BITMAP image_13earth: EM_BITMAP image_13art: EM_BITMAP image_12hello_world: EM_BITMAP image_12earth: EM_BITMAP image_12art: EM_BITMAP image_11hello_world: EM_BITMAP image_11earth: EM_BITMAP image_11art: EM_BITMAP image_10hello_world: EM_BITMAP image_10earth: EM_BITMAP image_10art: EM_BITMAP image_9hello_world: EM_BITMAP image_9earth: EM_BITMAP image_9art: EM_BITMAP image_8hello_world: EM_BITMAP image_8earth: EM_BITMAP image_8art: EM_BITMAP image_7hello_world: EM_BITMAP image_7earth: EM_BITMAP image_7art: EM_BITMAP image_6hello_world: EM_BITMAP image_6earth: EM_BITMAP image_6art: EM_BITMAP image_5hello_world: EM_BITMAP image_5earth: EM_BITMAP image_5art: EM_BITMAP image_4hello_world: EM_BITMAP image_4earth: EM_BITMAP image_4art: EM_BITMAP image_3hello_world: EM_BITMAP image_3earth: EM_BITMAP image_3art: EM_BITMAP image_2hello_world: EM_BITMAP image_2earth: EM_BITMAP image_2art: EM_BITMAP image_1hello_world: EM_BITMAP image_1earth: EM_BITMAP image_1art: EM_BITMAP sprite_29em: EM_SPRITE sprite_28em: EM_SPRITE sprite_27em: EM_SPRITE sprite_26em: EM_SPRITE sprite_25em: EM_SPRITE sprite_24em: EM_SPRITE sprite_23em: EM_SPRITE sprite_22em: EM_SPRITE sprite_21em: EM_SPRITE sprite_20em: EM_SPRITE sprite_19em: EM_SPRITE sprite_18em: EM_SPRITE sprite_17em: EM_SPRITE sprite_16em: EM_SPRITE sprite_15em: EM_SPRITE sprite_14em: EM_SPRITE sprite_13em: EM_SPRITE sprite_12em: EM_SPRITE sprite_11em: EM_SPRITE sprite_10em: EM_SPRITE sprite_9em: EM_SPRITE sprite_8em: EM_SPRITE sprite_7em: EM_SPRITE sprite_6em: EM_SPRITE sprite_5em: EM_SPRITE sprite_4em: EM_SPRITE sprite_3em: EM_SPRITE sprite_2em: EM_SPRITE sprite_1em: EM_SPRITE sprite_em: EM_SPRITE image_car: EM_BITMAP image_hello_world: EM_BITMAP image_earth: EM_BITMAP image_art: EM_BITMAP num_of_mainscene_resources: INTEGER is 121 mainscene_progress: INTEGER mainscene_is_loaded: BOOLEAN num_of_all_resources: INTEGER is 126 all_progress: INTEGER all_is_loaded: BOOLEAN feature -- Paths -- Paths for Section loadingscene path_sprite_init_em: STRING is "images/animations/em.anim" -- Paths for Section fonts path_bmp_font_vera: STRING is "fonts/vera512.gif" path_ttf_font_vera: STRING is "fonts/Vera.ttf" -- Paths for Section audio path_music_main: STRING is "../resources/music/sorry.ogg" path_sfx_drum: STRING is "../resources/sound/channel_0.ogg" -- Paths for Section mainscene path_image_29hello_world: STRING is "images/hello_world.gif" path_image_29earth: STRING is "images/earth.gif" path_image_29art: STRING is "images/art.gif" path_image_28hello_world: STRING is "images/hello_world.gif" path_image_28earth: STRING is "images/earth.gif" path_image_28art: STRING is "images/art.gif" path_image_27hello_world: STRING is "images/hello_world.gif" path_image_27earth: STRING is "images/earth.gif" path_image_27art: STRING is "images/art.gif" path_image_26hello_world: STRING is "images/hello_world.gif" path_image_26earth: STRING is "images/earth.gif" path_image_26art: STRING is "images/art.gif" path_image_25hello_world: STRING is "images/hello_world.gif" path_image_25earth: STRING is "images/earth.gif" path_image_25art: STRING is "images/art.gif" path_image_24hello_world: STRING is "images/hello_world.gif" path_image_24earth: STRING is "images/earth.gif" path_image_24art: STRING is "images/art.gif" path_image_23hello_world: STRING is "images/hello_world.gif" path_image_23earth: STRING is "images/earth.gif" path_image_23art: STRING is "images/art.gif" path_image_22hello_world: STRING is "images/hello_world.gif" path_image_22earth: STRING is "images/earth.gif" path_image_22art: STRING is "images/art.gif" path_image_21hello_world: STRING is "images/hello_world.gif" path_image_21earth: STRING is "images/earth.gif" path_image_21art: STRING is "images/art.gif" path_image_20hello_world: STRING is "images/hello_world.gif" path_image_20earth: STRING is "images/earth.gif" path_image_20art: STRING is "images/art.gif" path_image_19hello_world: STRING is "images/hello_world.gif" path_image_19earth: STRING is "images/earth.gif" path_image_19art: STRING is "images/art.gif" path_image_18hello_world: STRING is "images/hello_world.gif" path_image_18earth: STRING is "images/earth.gif" path_image_18art: STRING is "images/art.gif" path_image_17hello_world: STRING is "images/hello_world.gif" path_image_17earth: STRING is "images/earth.gif" path_image_17art: STRING is "images/art.gif" path_image_16hello_world: STRING is "images/hello_world.gif" path_image_16earth: STRING is "images/earth.gif" path_image_16art: STRING is "images/art.gif" path_image_15hello_world: STRING is "images/hello_world.gif" path_image_15earth: STRING is "images/earth.gif" path_image_15art: STRING is "images/art.gif" path_image_14hello_world: STRING is "images/hello_world.gif" path_image_14earth: STRING is "images/earth.gif" path_image_14art: STRING is "images/art.gif" path_image_13hello_world: STRING is "images/hello_world.gif" path_image_13earth: STRING is "images/earth.gif" path_image_13art: STRING is "images/art.gif" path_image_12hello_world: STRING is "images/hello_world.gif" path_image_12earth: STRING is "images/earth.gif" path_image_12art: STRING is "images/art.gif" path_image_11hello_world: STRING is "images/hello_world.gif" path_image_11earth: STRING is "images/earth.gif" path_image_11art: STRING is "images/art.gif" path_image_10hello_world: STRING is "images/hello_world.gif" path_image_10earth: STRING is "images/earth.gif" path_image_10art: STRING is "images/art.gif" path_image_9hello_world: STRING is "images/hello_world.gif" path_image_9earth: STRING is "images/earth.gif" path_image_9art: STRING is "images/art.gif" path_image_8hello_world: STRING is "images/hello_world.gif" path_image_8earth: STRING is "images/earth.gif" path_image_8art: STRING is "images/art.gif" path_image_7hello_world: STRING is "images/hello_world.gif" path_image_7earth: STRING is "images/earth.gif" path_image_7art: STRING is "images/art.gif" path_image_6hello_world: STRING is "images/hello_world.gif" path_image_6earth: STRING is "images/earth.gif" path_image_6art: STRING is "images/art.gif" path_image_5hello_world: STRING is "images/hello_world.gif" path_image_5earth: STRING is "images/earth.gif" path_image_5art: STRING is "images/art.gif" path_image_4hello_world: STRING is "images/hello_world.gif" path_image_4earth: STRING is "images/earth.gif" path_image_4art: STRING is "images/art.gif" path_image_3hello_world: STRING is "images/hello_world.gif" path_image_3earth: STRING is "images/earth.gif" path_image_3art: STRING is "images/art.gif" path_image_2hello_world: STRING is "images/hello_world.gif" path_image_2earth: STRING is "images/earth.gif" path_image_2art: STRING is "images/art.gif" path_image_1hello_world: STRING is "images/hello_world.gif" path_image_1earth: STRING is "images/earth.gif" path_image_1art: STRING is "images/art.gif" path_sprite_29em: STRING is "images/animations/em.anim" path_sprite_28em: STRING is "images/animations/em.anim" path_sprite_27em: STRING is "images/animations/em.anim" path_sprite_26em: STRING is "images/animations/em.anim" path_sprite_25em: STRING is "images/animations/em.anim" path_sprite_24em: STRING is "images/animations/em.anim" path_sprite_23em: STRING is "images/animations/em.anim" path_sprite_22em: STRING is "images/animations/em.anim" path_sprite_21em: STRING is "images/animations/em.anim" path_sprite_20em: STRING is "images/animations/em.anim" path_sprite_19em: STRING is "images/animations/em.anim" path_sprite_18em: STRING is "images/animations/em.anim" path_sprite_17em: STRING is "images/animations/em.anim" path_sprite_16em: STRING is "images/animations/em.anim" path_sprite_15em: STRING is "images/animations/em.anim" path_sprite_14em: STRING is "images/animations/em.anim" path_sprite_13em: STRING is "images/animations/em.anim" path_sprite_12em: STRING is "images/animations/em.anim" path_sprite_11em: STRING is "images/animations/em.anim" path_sprite_10em: STRING is "images/animations/em.anim" path_sprite_9em: STRING is "images/animations/em.anim" path_sprite_8em: STRING is "images/animations/em.anim" path_sprite_7em: STRING is "images/animations/em.anim" path_sprite_6em: STRING is "images/animations/em.anim" path_sprite_5em: STRING is "images/animations/em.anim" path_sprite_4em: STRING is "images/animations/em.anim" path_sprite_3em: STRING is "images/animations/em.anim" path_sprite_2em: STRING is "images/animations/em.anim" path_sprite_1em: STRING is "images/animations/em.anim" path_sprite_em: STRING is "images/animations/em.anim" path_image_car: STRING is "images/car.gif" path_image_hello_world: STRING is "images/hello_world.gif" path_image_earth: STRING is "images/earth.gif" path_image_art: STRING is "images/art.gif" feature -- Load resources sections load_all is -- loading procedure for all resources do from start_loading_all until all_is_loaded loop load_next_all_resource end end load_loadingscene is -- loading procedure for loadingscene resources do from start_loading_loadingscene until loadingscene_is_loaded loop load_next_loadingscene_resource end end load_fonts is -- loading procedure for fonts resources do from start_loading_fonts until fonts_is_loaded loop load_next_fonts_resource end end load_audio is -- loading procedure for audio resources do from start_loading_audio until audio_is_loaded loop load_next_audio_resource end end load_mainscene is -- loading procedure for mainscene resources do from start_loading_mainscene until mainscene_is_loaded loop load_next_mainscene_resource end end feature -- Load resources load_next_all_resource is -- loading procedure for all resources do inspect all_progress when 0 then sprite_init_em := get_sprite (path_sprite_init_em) when 1 then bmp_font_vera := get_bmp_font (path_bmp_font_vera) when 2 then ttf_font_vera := get_ttf_font (path_ttf_font_vera, 20) when 3 then music_main := get_music (path_music_main) when 4 then sfx_drum := get_sound (path_sfx_drum) when 5 then image_29hello_world := get_bitmap (path_image_29hello_world) when 6 then image_29earth := get_bitmap (path_image_29earth) when 7 then image_29art := get_bitmap (path_image_29art) when 8 then image_28hello_world := get_bitmap (path_image_28hello_world) when 9 then image_28earth := get_bitmap (path_image_28earth) when 10 then image_28art := get_bitmap (path_image_28art) when 11 then image_27hello_world := get_bitmap (path_image_27hello_world) when 12 then image_27earth := get_bitmap (path_image_27earth) when 13 then image_27art := get_bitmap (path_image_27art) when 14 then image_26hello_world := get_bitmap (path_image_26hello_world) when 15 then image_26earth := get_bitmap (path_image_26earth) when 16 then image_26art := get_bitmap (path_image_26art) when 17 then image_25hello_world := get_bitmap (path_image_25hello_world) when 18 then image_25earth := get_bitmap (path_image_25earth) when 19 then image_25art := get_bitmap (path_image_25art) when 20 then image_24hello_world := get_bitmap (path_image_24hello_world) when 21 then image_24earth := get_bitmap (path_image_24earth) when 22 then image_24art := get_bitmap (path_image_24art) when 23 then image_23hello_world := get_bitmap (path_image_23hello_world) when 24 then image_23earth := get_bitmap (path_image_23earth) when 25 then image_23art := get_bitmap (path_image_23art) when 26 then image_22hello_world := get_bitmap (path_image_22hello_world) when 27 then image_22earth := get_bitmap (path_image_22earth) when 28 then image_22art := get_bitmap (path_image_22art) when 29 then image_21hello_world := get_bitmap (path_image_21hello_world) when 30 then image_21earth := get_bitmap (path_image_21earth) when 31 then image_21art := get_bitmap (path_image_21art) when 32 then image_20hello_world := get_bitmap (path_image_20hello_world) when 33 then image_20earth := get_bitmap (path_image_20earth) when 34 then image_20art := get_bitmap (path_image_20art) when 35 then image_19hello_world := get_bitmap (path_image_19hello_world) when 36 then image_19earth := get_bitmap (path_image_19earth) when 37 then image_19art := get_bitmap (path_image_19art) when 38 then image_18hello_world := get_bitmap (path_image_18hello_world) when 39 then image_18earth := get_bitmap (path_image_18earth) when 40 then image_18art := get_bitmap (path_image_18art) when 41 then image_17hello_world := get_bitmap (path_image_17hello_world) when 42 then image_17earth := get_bitmap (path_image_17earth) when 43 then image_17art := get_bitmap (path_image_17art) when 44 then image_16hello_world := get_bitmap (path_image_16hello_world) when 45 then image_16earth := get_bitmap (path_image_16earth) when 46 then image_16art := get_bitmap (path_image_16art) when 47 then image_15hello_world := get_bitmap (path_image_15hello_world) when 48 then image_15earth := get_bitmap (path_image_15earth) when 49 then image_15art := get_bitmap (path_image_15art) when 50 then image_14hello_world := get_bitmap (path_image_14hello_world) when 51 then image_14earth := get_bitmap (path_image_14earth) when 52 then image_14art := get_bitmap (path_image_14art) when 53 then image_13hello_world := get_bitmap (path_image_13hello_world) when 54 then image_13earth := get_bitmap (path_image_13earth) when 55 then image_13art := get_bitmap (path_image_13art) when 56 then image_12hello_world := get_bitmap (path_image_12hello_world) when 57 then image_12earth := get_bitmap (path_image_12earth) when 58 then image_12art := get_bitmap (path_image_12art) when 59 then image_11hello_world := get_bitmap (path_image_11hello_world) when 60 then image_11earth := get_bitmap (path_image_11earth) when 61 then image_11art := get_bitmap (path_image_11art) when 62 then image_10hello_world := get_bitmap (path_image_10hello_world) when 63 then image_10earth := get_bitmap (path_image_10earth) when 64 then image_10art := get_bitmap (path_image_10art) when 65 then image_9hello_world := get_bitmap (path_image_9hello_world) when 66 then image_9earth := get_bitmap (path_image_9earth) when 67 then image_9art := get_bitmap (path_image_9art) when 68 then image_8hello_world := get_bitmap (path_image_8hello_world) when 69 then image_8earth := get_bitmap (path_image_8earth) when 70 then image_8art := get_bitmap (path_image_8art) when 71 then image_7hello_world := get_bitmap (path_image_7hello_world) when 72 then image_7earth := get_bitmap (path_image_7earth) when 73 then image_7art := get_bitmap (path_image_7art) when 74 then image_6hello_world := get_bitmap (path_image_6hello_world) when 75 then image_6earth := get_bitmap (path_image_6earth) when 76 then image_6art := get_bitmap (path_image_6art) when 77 then image_5hello_world := get_bitmap (path_image_5hello_world) when 78 then image_5earth := get_bitmap (path_image_5earth) when 79 then image_5art := get_bitmap (path_image_5art) when 80 then image_4hello_world := get_bitmap (path_image_4hello_world) when 81 then image_4earth := get_bitmap (path_image_4earth) when 82 then image_4art := get_bitmap (path_image_4art) when 83 then image_3hello_world := get_bitmap (path_image_3hello_world) when 84 then image_3earth := get_bitmap (path_image_3earth) when 85 then image_3art := get_bitmap (path_image_3art) when 86 then image_2hello_world := get_bitmap (path_image_2hello_world) when 87 then image_2earth := get_bitmap (path_image_2earth) when 88 then image_2art := get_bitmap (path_image_2art) when 89 then image_1hello_world := get_bitmap (path_image_1hello_world) when 90 then image_1earth := get_bitmap (path_image_1earth) when 91 then image_1art := get_bitmap (path_image_1art) when 92 then sprite_29em := get_sprite (path_sprite_29em) when 93 then sprite_28em := get_sprite (path_sprite_28em) when 94 then sprite_27em := get_sprite (path_sprite_27em) when 95 then sprite_26em := get_sprite (path_sprite_26em) when 96 then sprite_25em := get_sprite (path_sprite_25em) when 97 then sprite_24em := get_sprite (path_sprite_24em) when 98 then sprite_23em := get_sprite (path_sprite_23em) when 99 then sprite_22em := get_sprite (path_sprite_22em) when 100 then sprite_21em := get_sprite (path_sprite_21em) when 101 then sprite_20em := get_sprite (path_sprite_20em) when 102 then sprite_19em := get_sprite (path_sprite_19em) when 103 then sprite_18em := get_sprite (path_sprite_18em) when 104 then sprite_17em := get_sprite (path_sprite_17em) when 105 then sprite_16em := get_sprite (path_sprite_16em) when 106 then sprite_15em := get_sprite (path_sprite_15em) when 107 then sprite_14em := get_sprite (path_sprite_14em) when 108 then sprite_13em := get_sprite (path_sprite_13em) when 109 then sprite_12em := get_sprite (path_sprite_12em) when 110 then sprite_11em := get_sprite (path_sprite_11em) when 111 then sprite_10em := get_sprite (path_sprite_10em) when 112 then sprite_9em := get_sprite (path_sprite_9em) when 113 then sprite_8em := get_sprite (path_sprite_8em) when 114 then sprite_7em := get_sprite (path_sprite_7em) when 115 then sprite_6em := get_sprite (path_sprite_6em) when 116 then sprite_5em := get_sprite (path_sprite_5em) when 117 then sprite_4em := get_sprite (path_sprite_4em) when 118 then sprite_3em := get_sprite (path_sprite_3em) when 119 then sprite_2em := get_sprite (path_sprite_2em) when 120 then sprite_1em := get_sprite (path_sprite_1em) when 121 then sprite_em := get_sprite (path_sprite_em) when 122 then image_car := get_bitmap (path_image_car) when 123 then image_hello_world := get_bitmap (path_image_hello_world) when 124 then image_earth := get_bitmap (path_image_earth) when 125 then image_art := get_bitmap (path_image_art) end all_progress := all_progress + 1 if all_progress = num_of_all_resources then all_is_loaded := true end end load_next_loadingscene_resource is -- loading procedure for loadingscene do inspect loadingscene_progress when 0 then sprite_init_em := get_sprite (path_sprite_init_em) end loadingscene_progress := loadingscene_progress + 1 if loadingscene_progress = num_of_loadingscene_resources then loadingscene_is_loaded := true if loadingscene_is_loaded and loadingscene_is_loaded and loadingscene_is_loaded and loadingscene_is_loaded then all_is_loaded := true end end end load_next_fonts_resource is -- loading procedure for fonts do inspect fonts_progress when 0 then bmp_font_vera := get_bmp_font (path_bmp_font_vera) when 1 then ttf_font_vera := get_ttf_font (path_ttf_font_vera, 20) end fonts_progress := fonts_progress + 1 if fonts_progress = num_of_fonts_resources then fonts_is_loaded := true if fonts_is_loaded and fonts_is_loaded and fonts_is_loaded and fonts_is_loaded then all_is_loaded := true end end end load_next_audio_resource is -- loading procedure for audio do inspect audio_progress when 0 then music_main := get_music (path_music_main) when 1 then sfx_drum := get_sound (path_sfx_drum) end audio_progress := audio_progress + 1 if audio_progress = num_of_audio_resources then audio_is_loaded := true if audio_is_loaded and audio_is_loaded and audio_is_loaded and audio_is_loaded then all_is_loaded := true end end end load_next_mainscene_resource is -- loading procedure for mainscene do inspect mainscene_progress when 0 then image_29hello_world := get_bitmap (path_image_29hello_world) when 1 then image_29earth := get_bitmap (path_image_29earth) when 2 then image_29art := get_bitmap (path_image_29art) when 3 then image_28hello_world := get_bitmap (path_image_28hello_world) when 4 then image_28earth := get_bitmap (path_image_28earth) when 5 then image_28art := get_bitmap (path_image_28art) when 6 then image_27hello_world := get_bitmap (path_image_27hello_world) when 7 then image_27earth := get_bitmap (path_image_27earth) when 8 then image_27art := get_bitmap (path_image_27art) when 9 then image_26hello_world := get_bitmap (path_image_26hello_world) when 10 then image_26earth := get_bitmap (path_image_26earth) when 11 then image_26art := get_bitmap (path_image_26art) when 12 then image_25hello_world := get_bitmap (path_image_25hello_world) when 13 then image_25earth := get_bitmap (path_image_25earth) when 14 then image_25art := get_bitmap (path_image_25art) when 15 then image_24hello_world := get_bitmap (path_image_24hello_world) when 16 then image_24earth := get_bitmap (path_image_24earth) when 17 then image_24art := get_bitmap (path_image_24art) when 18 then image_23hello_world := get_bitmap (path_image_23hello_world) when 19 then image_23earth := get_bitmap (path_image_23earth) when 20 then image_23art := get_bitmap (path_image_23art) when 21 then image_22hello_world := get_bitmap (path_image_22hello_world) when 22 then image_22earth := get_bitmap (path_image_22earth) when 23 then image_22art := get_bitmap (path_image_22art) when 24 then image_21hello_world := get_bitmap (path_image_21hello_world) when 25 then image_21earth := get_bitmap (path_image_21earth) when 26 then image_21art := get_bitmap (path_image_21art) when 27 then image_20hello_world := get_bitmap (path_image_20hello_world) when 28 then image_20earth := get_bitmap (path_image_20earth) when 29 then image_20art := get_bitmap (path_image_20art) when 30 then image_19hello_world := get_bitmap (path_image_19hello_world) when 31 then image_19earth := get_bitmap (path_image_19earth) when 32 then image_19art := get_bitmap (path_image_19art) when 33 then image_18hello_world := get_bitmap (path_image_18hello_world) when 34 then image_18earth := get_bitmap (path_image_18earth) when 35 then image_18art := get_bitmap (path_image_18art) when 36 then image_17hello_world := get_bitmap (path_image_17hello_world) when 37 then image_17earth := get_bitmap (path_image_17earth) when 38 then image_17art := get_bitmap (path_image_17art) when 39 then image_16hello_world := get_bitmap (path_image_16hello_world) when 40 then image_16earth := get_bitmap (path_image_16earth) when 41 then image_16art := get_bitmap (path_image_16art) when 42 then image_15hello_world := get_bitmap (path_image_15hello_world) when 43 then image_15earth := get_bitmap (path_image_15earth) when 44 then image_15art := get_bitmap (path_image_15art) when 45 then image_14hello_world := get_bitmap (path_image_14hello_world) when 46 then image_14earth := get_bitmap (path_image_14earth) when 47 then image_14art := get_bitmap (path_image_14art) when 48 then image_13hello_world := get_bitmap (path_image_13hello_world) when 49 then image_13earth := get_bitmap (path_image_13earth) when 50 then image_13art := get_bitmap (path_image_13art) when 51 then image_12hello_world := get_bitmap (path_image_12hello_world) when 52 then image_12earth := get_bitmap (path_image_12earth) when 53 then image_12art := get_bitmap (path_image_12art) when 54 then image_11hello_world := get_bitmap (path_image_11hello_world) when 55 then image_11earth := get_bitmap (path_image_11earth) when 56 then image_11art := get_bitmap (path_image_11art) when 57 then image_10hello_world := get_bitmap (path_image_10hello_world) when 58 then image_10earth := get_bitmap (path_image_10earth) when 59 then image_10art := get_bitmap (path_image_10art) when 60 then image_9hello_world := get_bitmap (path_image_9hello_world) when 61 then image_9earth := get_bitmap (path_image_9earth) when 62 then image_9art := get_bitmap (path_image_9art) when 63 then image_8hello_world := get_bitmap (path_image_8hello_world) when 64 then image_8earth := get_bitmap (path_image_8earth) when 65 then image_8art := get_bitmap (path_image_8art) when 66 then image_7hello_world := get_bitmap (path_image_7hello_world) when 67 then image_7earth := get_bitmap (path_image_7earth) when 68 then image_7art := get_bitmap (path_image_7art) when 69 then image_6hello_world := get_bitmap (path_image_6hello_world) when 70 then image_6earth := get_bitmap (path_image_6earth) when 71 then image_6art := get_bitmap (path_image_6art) when 72 then image_5hello_world := get_bitmap (path_image_5hello_world) when 73 then image_5earth := get_bitmap (path_image_5earth) when 74 then image_5art := get_bitmap (path_image_5art) when 75 then image_4hello_world := get_bitmap (path_image_4hello_world) when 76 then image_4earth := get_bitmap (path_image_4earth) when 77 then image_4art := get_bitmap (path_image_4art) when 78 then image_3hello_world := get_bitmap (path_image_3hello_world) when 79 then image_3earth := get_bitmap (path_image_3earth) when 80 then image_3art := get_bitmap (path_image_3art) when 81 then image_2hello_world := get_bitmap (path_image_2hello_world) when 82 then image_2earth := get_bitmap (path_image_2earth) when 83 then image_2art := get_bitmap (path_image_2art) when 84 then image_1hello_world := get_bitmap (path_image_1hello_world) when 85 then image_1earth := get_bitmap (path_image_1earth) when 86 then image_1art := get_bitmap (path_image_1art) when 87 then sprite_29em := get_sprite (path_sprite_29em) when 88 then sprite_28em := get_sprite (path_sprite_28em) when 89 then sprite_27em := get_sprite (path_sprite_27em) when 90 then sprite_26em := get_sprite (path_sprite_26em) when 91 then sprite_25em := get_sprite (path_sprite_25em) when 92 then sprite_24em := get_sprite (path_sprite_24em) when 93 then sprite_23em := get_sprite (path_sprite_23em) when 94 then sprite_22em := get_sprite (path_sprite_22em) when 95 then sprite_21em := get_sprite (path_sprite_21em) when 96 then sprite_20em := get_sprite (path_sprite_20em) when 97 then sprite_19em := get_sprite (path_sprite_19em) when 98 then sprite_18em := get_sprite (path_sprite_18em) when 99 then sprite_17em := get_sprite (path_sprite_17em) when 100 then sprite_16em := get_sprite (path_sprite_16em) when 101 then sprite_15em := get_sprite (path_sprite_15em) when 102 then sprite_14em := get_sprite (path_sprite_14em) when 103 then sprite_13em := get_sprite (path_sprite_13em) when 104 then sprite_12em := get_sprite (path_sprite_12em) when 105 then sprite_11em := get_sprite (path_sprite_11em) when 106 then sprite_10em := get_sprite (path_sprite_10em) when 107 then sprite_9em := get_sprite (path_sprite_9em) when 108 then sprite_8em := get_sprite (path_sprite_8em) when 109 then sprite_7em := get_sprite (path_sprite_7em) when 110 then sprite_6em := get_sprite (path_sprite_6em) when 111 then sprite_5em := get_sprite (path_sprite_5em) when 112 then sprite_4em := get_sprite (path_sprite_4em) when 113 then sprite_3em := get_sprite (path_sprite_3em) when 114 then sprite_2em := get_sprite (path_sprite_2em) when 115 then sprite_1em := get_sprite (path_sprite_1em) when 116 then sprite_em := get_sprite (path_sprite_em) when 117 then image_car := get_bitmap (path_image_car) when 118 then image_hello_world := get_bitmap (path_image_hello_world) when 119 then image_earth := get_bitmap (path_image_earth) when 120 then image_art := get_bitmap (path_image_art) end mainscene_progress := mainscene_progress + 1 if mainscene_progress = num_of_mainscene_resources then mainscene_is_loaded := true if mainscene_is_loaded and mainscene_is_loaded and mainscene_is_loaded and mainscene_is_loaded then all_is_loaded := true end end end start_loading_all is do all_progress := 0 all_is_loaded := false end start_loading_loadingscene is do loadingscene_progress := 0 loadingscene_is_loaded := false end start_loading_fonts is do fonts_progress := 0 fonts_is_loaded := false end start_loading_audio is do audio_progress := 0 audio_is_loaded := false end start_loading_mainscene is do mainscene_progress := 0 mainscene_is_loaded := false end feature -- Free resources free_all is -- freeing procedure for all resources do all_progress := 0 all_is_loaded := false free_loadingscene free_fonts free_audio free_mainscene end free_loadingscene is -- freeing procedure for loadingscene do loadingscene_progress := 0 loadingscene_is_loaded := false all_is_loaded := false sprite_init_em := void end free_fonts is -- freeing procedure for fonts do fonts_progress := 0 fonts_is_loaded := false all_is_loaded := false bmp_font_vera := void ttf_font_vera := void end free_audio is -- freeing procedure for audio do audio_progress := 0 audio_is_loaded := false all_is_loaded := false music_main := void sfx_drum := void end free_mainscene is -- freeing procedure for mainscene do mainscene_progress := 0 mainscene_is_loaded := false all_is_loaded := false image_29hello_world := void image_29earth := void image_29art := void image_28hello_world := void image_28earth := void image_28art := void image_27hello_world := void image_27earth := void image_27art := void image_26hello_world := void image_26earth := void image_26art := void image_25hello_world := void image_25earth := void image_25art := void image_24hello_world := void image_24earth := void image_24art := void image_23hello_world := void image_23earth := void image_23art := void image_22hello_world := void image_22earth := void image_22art := void image_21hello_world := void image_21earth := void image_21art := void image_20hello_world := void image_20earth := void image_20art := void image_19hello_world := void image_19earth := void image_19art := void image_18hello_world := void image_18earth := void image_18art := void image_17hello_world := void image_17earth := void image_17art := void image_16hello_world := void image_16earth := void image_16art := void image_15hello_world := void image_15earth := void image_15art := void image_14hello_world := void image_14earth := void image_14art := void image_13hello_world := void image_13earth := void image_13art := void image_12hello_world := void image_12earth := void image_12art := void image_11hello_world := void image_11earth := void image_11art := void image_10hello_world := void image_10earth := void image_10art := void image_9hello_world := void image_9earth := void image_9art := void image_8hello_world := void image_8earth := void image_8art := void image_7hello_world := void image_7earth := void image_7art := void image_6hello_world := void image_6earth := void image_6art := void image_5hello_world := void image_5earth := void image_5art := void image_4hello_world := void image_4earth := void image_4art := void image_3hello_world := void image_3earth := void image_3art := void image_2hello_world := void image_2earth := void image_2art := void image_1hello_world := void image_1earth := void image_1art := void sprite_29em := void sprite_28em := void sprite_27em := void sprite_26em := void sprite_25em := void sprite_24em := void sprite_23em := void sprite_22em := void sprite_21em := void sprite_20em := void sprite_19em := void sprite_18em := void sprite_17em := void sprite_16em := void sprite_15em := void sprite_14em := void sprite_13em := void sprite_12em := void sprite_11em := void sprite_10em := void sprite_9em := void sprite_8em := void sprite_7em := void sprite_6em := void sprite_5em := void sprite_4em := void sprite_3em := void sprite_2em := void sprite_1em := void sprite_em := void image_car := void image_hello_world := void image_earth := void image_art := void end feature -- Error handling has_error: BOOLEAN reset_error is -- set 'has_error' to false do has_error := false end error_files: DS_LINKED_LIST[STRING] feature -- Getter get_bitmap (a_path: STRING): EM_BITMAP is do file_loader.reset_error file_loader.load_bitmap (a_path) if not file_loader.has_error then Result := file_loader.last_bitmap else has_error := true error_files.put_first (a_path) end end get_animation (a_path: STRING): EM_ANIMATION is do file_loader.reset_error file_loader.load_animation (a_path) if not file_loader.has_error then Result := file_loader.last_animation else has_error := true error_files.put_first (a_path) end end get_sprite (a_path: STRING): EM_SPRITE is do file_loader.reset_error file_loader.load_sprite (a_path, 0, 0) if not file_loader.has_error then Result := file_loader.last_sprite else has_error := true error_files.put_first (a_path) end end get_sound (a_path: STRING): EM_SOUND is do file_loader.reset_error file_loader.load_sound_file (a_path) if not file_loader.has_error then Result := file_loader.last_sound else has_error := true error_files.put_first (a_path) end end get_music (a_path: STRING): EM_MUSIC is do file_loader.reset_error file_loader.load_music_file (a_path) if not file_loader.has_error then Result := file_loader.last_music else has_error := true error_files.put_first (a_path) end end get_bmp_font (a_path: STRING): EM_BMP_FONT is do file_loader.reset_error file_loader.load_bmp_font (a_path) if not file_loader.has_error then Result := file_loader.last_bmp_font else has_error := true error_files.put_first (a_path) end end get_ttf_font (a_path: STRING; a_point_size: INTEGER): EM_COLOR_TTF_FONT is do file_loader.reset_error file_loader.load_ttf_font (a_path, a_point_size) if not file_loader.has_error then Result := file_loader.last_ttf_font else has_error := true error_files.put_first (a_path) end end end