diff --git a/EII_jeu/Classes_XML_log b/EII_jeu/Classes_XML_log new file mode 100644 index 0000000000000000000000000000000000000000..18a226f7bdaa5db7755353c3d6fe6814eccfc9d5 --- /dev/null +++ b/EII_jeu/Classes_XML_log @@ -0,0 +1,414 @@ +Fichier decrivant le deroulement de la procedure d'aquisition des classes + +I) Chargement du fichier XML - Definition des noeuds +Le fichier contient 5 classes +II) Chargement des classes +1) Memoire allouee avec succes +La memoire allouee fait 9680 octets + +Chargement des caractéristiques de la classe numero 1 +Id : C_MAGE +Nom : Mage +PV : 100 +PM : 150 +MV : 2 +DESC : Le feu, ça brûle + +Chargement des skins de la classe numero 1 + + default : ../resources/Skins/mage.bmp + selected : ../resources/Skins/mage_selected.bmp + healed : ../resources/Skins/mage_healed.bmp + damaged : ../resources/Skins/mage_damaged.bmp + + +Chargement des attaques de la classe numero 1 + +Attaque numero 1 : + + ID : S_FIREBALL + Name : Boule du feu + RG : 4 + MN : 30 + + +Effet numero 1 : + + ID : E_FB_1 + Name : + Duree : 0 + DM : : 4 + DM_DUR : 0 + HL : : 0 + HL_DUR : 0 + PARA : 0 + + +Effet numero 2 : + + ID : E_FB_2 + Name : + Duree : 0 + DM : : 4 + DM_DUR : 0 + HL : : 0 + HL_DUR : 0 + PARA : 0 + + +Attaque numero 2 : + + ID : S_FREEZE + Name : Gel + RG : 4 + MN : 30 + + +Effet numero 1 : + + ID : + Name : + Duree : 0 + DM : : 4 + DM_DUR : 0 + HL : : 0 + HL_DUR : 0 + PARA : 0 + + +Attaque numero 3 : + + ID : S_MANA + Name : Vol de mana + RG : 4 + MN : 30 + + +Effet numero 1 : + + ID : + Name : + Duree : 0 + DM : : 4 + DM_DUR : 0 + HL : : 0 + HL_DUR : 0 + PARA : 0 + +Insertion de la classe 1 dans le tableau + +Chargement des caractéristiques de la classe numero 2 +Id : C_WAR +Nom : Guerrier +PV : 200 +PM : 150 +MV : 2 +DESC : Aime beaucoup le street art + +Chargement des skins de la classe numero 2 + + default : ../resources/Skins/guerrier.bmp + selected : ../resources/Skins/guerrier_selected.bmp + healed : ../resources/Skins/guerrier_healed.bmp + damaged : ../resources/Skins/guerrier_damaged.bmp + + +Chargement des attaques de la classe numero 2 + +Attaque numero 1 : + + ID : S_BASH + Name : Coup d'épée + RG : 0 + MN : 0 + + +Effet numero 1 : + + ID : + Name : + Duree : 0 + DM : : 0 + DM_DUR : 0 + HL : : 0 + HL_DUR : 0 + PARA : 0 + + +Attaque numero 2 : + + ID : S_SHIELD + Name : Renforcement + RG : 0 + MN : 0 + + +Effet numero 1 : + + ID : + Name : + Duree : 0 + DM : : 0 + DM_DUR : 0 + HL : : 0 + HL_DUR : 0 + PARA : 0 + + +Attaque numero 3 : + + ID : S_SKIN + Name : Ecorchement + RG : 0 + MN : 0 + + +Effet numero 1 : + + ID : + Name : + Duree : 0 + DM : : 0 + DM_DUR : 0 + HL : : 0 + HL_DUR : 0 + PARA : 0 + +Insertion de la classe 2 dans le tableau + +Chargement des caractéristiques de la classe numero 3 +Id : C_HEAL +Nom : Guerrisseur +PV : 100 +PM : 150 +MV : 2 +DESC : Heal est des notres + +Chargement des skins de la classe numero 3 + + default : ../resources/Skins/guerisseur.bmp + selected : ../resources/Skins/guerisseur_selected.bmp + healed : ../resources/Skins/guerisseur_healed.bmp + damaged : ../resources/Skins/guerisseur_damaged.bmp + + +Chargement des attaques de la classe numero 3 + +Attaque numero 1 : + + ID : S_HEAL + Name : Soin + RG : 0 + MN : 0 + + +Effet numero 1 : + + ID : + Name : + Duree : 0 + DM : : 0 + DM_DUR : 0 + HL : : 0 + HL_DUR : 0 + PARA : 0 + + +Attaque numero 2 : + + ID : S_RECOV + Name : Recouvrement + RG : 0 + MN : 0 + + +Effet numero 1 : + + ID : + Name : + Duree : 0 + DM : : 0 + DM_DUR : 0 + HL : : 0 + HL_DUR : 0 + PARA : 0 + + +Attaque numero 3 : + + ID : S_PURIFY + Name : Purifier + RG : 0 + MN : 0 + + +Effet numero 1 : + + ID : + Name : + Duree : 0 + DM : : 0 + DM_DUR : 0 + HL : : 0 + HL_DUR : 0 + PARA : 0 + +Insertion de la classe 3 dans le tableau + +Chargement des caractéristiques de la classe numero 4 +Id : C_ROGUE +Nom : Voleur +PV : 100 +PM : 150 +MV : 2 +DESC : 60 minutes, ça vaut l'heure + +Chargement des skins de la classe numero 4 + + default : ../resources/Skins/voleur.bmp + selected : ../resources/Skins/voleur_selected.bmp + healed : ../resources/Skins/voleur_healed.bmp + damaged : ../resources/Skins/voleur_damaged.bmp + + +Chargement des attaques de la classe numero 4 + +Attaque numero 1 : + + ID : S_EVIS + Name : Eviscération + RG : 0 + MN : 0 + + +Effet numero 1 : + + ID : + Name : + Duree : 0 + DM : : 0 + DM_DUR : 0 + HL : : 0 + HL_DUR : 0 + PARA : 0 + + +Attaque numero 2 : + + ID : S_POISON + Name : Lame empoisonnée + RG : 0 + MN : 0 + + +Effet numero 1 : + + ID : + Name : + Duree : 0 + DM : : 0 + DM_DUR : 0 + HL : : 0 + HL_DUR : 0 + PARA : 0 + + +Attaque numero 3 : + + ID : S_CONCEAL + Name : Camouflage + RG : 0 + MN : 0 + + +Effet numero 1 : + + ID : + Name : + Duree : 0 + DM : : 0 + DM_DUR : 0 + HL : : 0 + HL_DUR : 0 + PARA : 0 + +Insertion de la classe 4 dans le tableau + +Chargement des caractéristiques de la classe numero 5 +Id : C_ARCHER +Nom : Archer +PV : 100 +PM : 150 +MV : 2 +DESC : Gérard, de son prénom + +Chargement des skins de la classe numero 5 + + default : ../resources/Skins/voleurarcher.bmp + selected : ../resources/Skins/archer_selected.bmp + healed : ../resources/Skins/archer_healed.bmp + damaged : ../resources/Skins/archer_damaged.bmp + + +Chargement des attaques de la classe numero 5 + +Attaque numero 1 : + + ID : S_SHOT + Name : Tir puissant + RG : 0 + MN : 0 + + +Effet numero 1 : + + ID : + Name : + Duree : 0 + DM : : 0 + DM_DUR : 0 + HL : : 0 + HL_DUR : 0 + PARA : 0 + + +Attaque numero 2 : + + ID : S_FLAME + Name : Tir emflammé + RG : 0 + MN : 0 + + +Effet numero 1 : + + ID : + Name : + Duree : 0 + DM : : 0 + DM_DUR : 0 + HL : : 0 + HL_DUR : 0 + PARA : 0 + + +Attaque numero 3 : + + ID : S_PARA + Name : Tir paralysant + RG : 0 + MN : 0 + + +Effet numero 1 : + + ID : + Name : + Duree : 0 + DM : : 0 + DM_DUR : 0 + HL : : 0 + HL_DUR : 0 + PARA : 0 + +Insertion de la classe 5 dans le tableau diff --git a/EII_jeu/EII_jeu.cbp b/EII_jeu/EII_jeu.cbp new file mode 100644 index 0000000000000000000000000000000000000000..2d8c7e789a31dedd45627e526b793ea762bd2b67 --- /dev/null +++ b/EII_jeu/EII_jeu.cbp @@ -0,0 +1,53 @@ +<?xml version="1.0" encoding="UTF-8" standalone="yes" ?> +<CodeBlocks_project_file> + <FileVersion major="1" minor="6" /> + <Project> + <Option title="EII_jeu" /> + <Option pch_mode="2" /> + <Option compiler="gcc" /> + <Build> + <Target title="Debug"> + <Option output="bin/Debug/EII_jeu" prefix_auto="1" extension_auto="1" /> + <Option object_output="obj/Debug/" /> + <Option type="1" /> + <Option compiler="gcc" /> + <Compiler> + <Add option="-g" /> + </Compiler> + </Target> + <Target title="Release"> + <Option output="bin/Release/EII_jeu" prefix_auto="1" extension_auto="1" /> + <Option object_output="obj/Release/" /> + <Option type="0" /> + <Option compiler="gcc" /> + <Compiler> + <Add option="-O2" /> + </Compiler> + <Linker> + <Add option="-s" /> + </Linker> + </Target> + </Build> + <Compiler> + <Add option="-Wall" /> + <Add directory="C:/Users/henri/Desktop/workspace-jeuC/lemeilleurjeudumonde/Libs/SDL-1.2.15/include" /> + </Compiler> + <Linker> + <Add library="mingw32" /> + <Add library="SDLmain" /> + <Add library="SDL.dll" /> + <Add library="user32" /> + <Add library="gdi32" /> + <Add library="winmm" /> + <Add library="dxguid" /> + <Add directory="C:/Users/henri/Desktop/workspace-jeuC/lemeilleurjeudumonde/Libs/SDL-1.2.15/lib" /> + </Linker> + <Unit filename="cb.bmp" /> + <Unit filename="main.cpp" /> + <Extensions> + <code_completion /> + <envvars /> + <debugger /> + </Extensions> + </Project> +</CodeBlocks_project_file> diff --git a/EII_jeu/EII_jeu.depend b/EII_jeu/EII_jeu.depend new file mode 100644 index 0000000000000000000000000000000000000000..5c62e9a3d7e3120431793693c9173384c79fe3eb --- /dev/null +++ b/EII_jeu/EII_jeu.depend @@ -0,0 +1,445 @@ +# depslib dependency file v1.0 +1460459876 source:c:\users\henri\desktop\workspace-jeuc\lemeilleurjeudumonde\src\affichageconsole.c + <stdio.h> + <stdlib.h> + <string.h> + "AffichageConsole.h" + "partie.h" + "joueur.h" + "joueurList.h" + "personnage.h" + "case.h" + +1460459876 c:\users\henri\desktop\workspace-jeuc\lemeilleurjeudumonde\src\affichageconsole.h + "structures.h" + +1462278696 c:\users\henri\desktop\workspace-jeuc\lemeilleurjeudumonde\src\structures.h + +1462278681 c:\users\henri\desktop\workspace-jeuc\lemeilleurjeudumonde\src\partie.h + "structures.h" + +1459764934 c:\users\henri\desktop\workspace-jeuc\lemeilleurjeudumonde\src\joueur.h + "structures.h" + +1459764960 c:\users\henri\desktop\workspace-jeuc\lemeilleurjeudumonde\src\joueurlist.h + "structures.h" + +1461253159 c:\users\henri\desktop\workspace-jeuc\lemeilleurjeudumonde\src\personnage.h + +1462138721 c:\users\henri\desktop\workspace-jeuc\lemeilleurjeudumonde\src\case.h + "structures.h" + +1460725190 source:c:\users\henri\desktop\workspace-jeuc\lemeilleurjeudumonde\src\affichageconsole2.c + <stdio.h> + <stdlib.h> + +1462138721 source:c:\users\henri\desktop\workspace-jeuc\lemeilleurjeudumonde\src\carte.c + <stdio.h> + <stdlib.h> + <string.h> + "carte.h" + "structures.h" + <roxml.h> + +1462138721 c:\users\henri\desktop\workspace-jeuc\lemeilleurjeudumonde\src\carte.h + "structures.h" + +1459762040 c:\users\henri\desktop\workspace-jeuc\lemeilleurjeudumonde\libs\libroxml-2.3.0\src\roxml.h + <stdio.h> + <stdlib.h> + <string.h> + +1462138721 source:c:\users\henri\desktop\workspace-jeuc\lemeilleurjeudumonde\src\case.c + <stdio.h> + <stdlib.h> + <string.h> + "terrain.h" + "structures.h" + "personnage.h" + "deplacements.h" + +1462138721 c:\users\henri\desktop\workspace-jeuc\lemeilleurjeudumonde\src\terrain.h + "structures.h" + "personnage.h" + "deplacements.h" + "roxml.h" + "TerrainsXML.h" + +1461279123 c:\users\henri\desktop\workspace-jeuc\lemeilleurjeudumonde\src\deplacements.h + +1462138721 c:\users\henri\desktop\workspace-jeuc\lemeilleurjeudumonde\src\terrainsxml.h + <roxml.h> + "structures.h" + +1462138721 source:c:\users\henri\desktop\workspace-jeuc\lemeilleurjeudumonde\src\classe.c + <stdio.h> + <stdlib.h> + <roxml.h> + "classe.h" + +1462138721 c:\users\henri\desktop\workspace-jeuc\lemeilleurjeudumonde\src\classe.h + "structures.h" + "ClassesXML.h" + +1462138721 c:\users\henri\desktop\workspace-jeuc\lemeilleurjeudumonde\src\classesxml.h + <roxml.h> + "structures.h" + "classe.h" + "structures.h" + +1462138721 source:c:\users\henri\desktop\workspace-jeuc\lemeilleurjeudumonde\src\classesxml.c + <stdio.h> + <stdlib.h> + <roxml.h> + "ClassesXML.h" + +1462278696 source:c:\users\henri\desktop\workspace-jeuc\lemeilleurjeudumonde\src\competence.c + <stdio.h> + <stdlib.h> + <roxml.h> + "structures.h" + "competence.h" + +1462278696 c:\users\henri\desktop\workspace-jeuc\lemeilleurjeudumonde\src\competence.h + +1461253159 source:c:\users\henri\desktop\workspace-jeuc\lemeilleurjeudumonde\src\controleur.c + <stdio.h> + <stdlib.h> + "partie.h" + "joueur.h" + "affichageConsole2.h" + "joueurList.h" + "case.h" + "personnage.h" + "classe.h" + +1460725190 c:\users\henri\desktop\workspace-jeuc\lemeilleurjeudumonde\src\affichageconsole2.h + +1462278681 source:c:\users\henri\desktop\workspace-jeuc\lemeilleurjeudumonde\src\controleursdl.c + <stdlib.h> + <SDL/SDL.h> + "structures.h" + "partie.h" + "joueur.h" + "joueurList.h" + "personnage.h" + "case.h" + "deplacements.h" + "SDL.h" + "controleurSDL.h" + +1325742239 c:\users\henri\desktop\workspace-jeuc\lemeilleurjeudumonde\libs\sdl-1.2.15\include\sdl\sdl.h + "SDL_main.h" + "SDL_stdinc.h" + "SDL_audio.h" + "SDL_cdrom.h" + "SDL_cpuinfo.h" + "SDL_endian.h" + "SDL_error.h" + "SDL_events.h" + "SDL_loadso.h" + "SDL_mutex.h" + "SDL_rwops.h" + "SDL_thread.h" + "SDL_timer.h" + "SDL_video.h" + "SDL_version.h" + "begin_code.h" + "close_code.h" + +1325742239 c:\users\henri\desktop\workspace-jeuc\lemeilleurjeudumonde\libs\sdl-1.2.15\include\sdl\sdl_main.h + "SDL_stdinc.h" + "begin_code.h" + "close_code.h" + "begin_code.h" + "close_code.h" + +1325742239 c:\users\henri\desktop\workspace-jeuc\lemeilleurjeudumonde\libs\sdl-1.2.15\include\sdl\sdl_stdinc.h + "SDL_config.h" + <sys/types.h> + <stdio.h> + <stdlib.h> + <stddef.h> + <stdarg.h> + <stdlib.h> + <malloc.h> + <stddef.h> + <stdarg.h> + <memory.h> + <string.h> + <strings.h> + <inttypes.h> + <stdint.h> + <ctype.h> + <iconv.h> + "begin_code.h" + <alloca.h> + <malloc.h> + <malloc.h> + <malloc.h> + <stdlib.h> + "close_code.h" + +1326114587 c:\users\henri\desktop\workspace-jeuc\lemeilleurjeudumonde\libs\sdl-1.2.15\include\sdl\sdl_config.h + "SDL_platform.h" + "SDL_config_dreamcast.h" + "SDL_config_macos.h" + "SDL_config_macosx.h" + "SDL_config_symbian.h" + "SDL_config_win32.h" + "SDL_config_os2.h" + "SDL_config_minimal.h" + +1325742239 c:\users\henri\desktop\workspace-jeuc\lemeilleurjeudumonde\libs\sdl-1.2.15\include\sdl\sdl_platform.h + +1326114594 c:\users\henri\desktop\workspace-jeuc\lemeilleurjeudumonde\libs\sdl-1.2.15\include\sdl\sdl_config_win32.h + "SDL_platform.h" + +1326114600 c:\users\henri\desktop\workspace-jeuc\lemeilleurjeudumonde\libs\sdl-1.2.15\include\sdl\begin_code.h + +1325742239 c:\users\henri\desktop\workspace-jeuc\lemeilleurjeudumonde\libs\sdl-1.2.15\include\sdl\close_code.h + +1325742239 c:\users\henri\desktop\workspace-jeuc\lemeilleurjeudumonde\libs\sdl-1.2.15\include\sdl\sdl_audio.h + "SDL_stdinc.h" + "SDL_error.h" + "SDL_endian.h" + "SDL_mutex.h" + "SDL_thread.h" + "SDL_rwops.h" + "begin_code.h" + "close_code.h" + +1325742239 c:\users\henri\desktop\workspace-jeuc\lemeilleurjeudumonde\libs\sdl-1.2.15\include\sdl\sdl_error.h + "SDL_stdinc.h" + "begin_code.h" + "close_code.h" + +1325742239 c:\users\henri\desktop\workspace-jeuc\lemeilleurjeudumonde\libs\sdl-1.2.15\include\sdl\sdl_endian.h + "SDL_stdinc.h" + <endian.h> + "begin_code.h" + "close_code.h" + +1325742239 c:\users\henri\desktop\workspace-jeuc\lemeilleurjeudumonde\libs\sdl-1.2.15\include\sdl\sdl_mutex.h + "SDL_stdinc.h" + "SDL_error.h" + "begin_code.h" + "close_code.h" + +1325742239 c:\users\henri\desktop\workspace-jeuc\lemeilleurjeudumonde\libs\sdl-1.2.15\include\sdl\sdl_thread.h + "SDL_stdinc.h" + "SDL_error.h" + "SDL_mutex.h" + "begin_code.h" + <process.h> + "close_code.h" + +1325742239 c:\users\henri\desktop\workspace-jeuc\lemeilleurjeudumonde\libs\sdl-1.2.15\include\sdl\sdl_rwops.h + "SDL_stdinc.h" + "SDL_error.h" + "begin_code.h" + "close_code.h" + +1325742239 c:\users\henri\desktop\workspace-jeuc\lemeilleurjeudumonde\libs\sdl-1.2.15\include\sdl\sdl_cdrom.h + "SDL_stdinc.h" + "SDL_error.h" + "begin_code.h" + "close_code.h" + +1325742239 c:\users\henri\desktop\workspace-jeuc\lemeilleurjeudumonde\libs\sdl-1.2.15\include\sdl\sdl_cpuinfo.h + "SDL_stdinc.h" + "begin_code.h" + "close_code.h" + +1325742239 c:\users\henri\desktop\workspace-jeuc\lemeilleurjeudumonde\libs\sdl-1.2.15\include\sdl\sdl_events.h + "SDL_stdinc.h" + "SDL_error.h" + "SDL_active.h" + "SDL_keyboard.h" + "SDL_mouse.h" + "SDL_joystick.h" + "SDL_quit.h" + "begin_code.h" + "close_code.h" + +1325742239 c:\users\henri\desktop\workspace-jeuc\lemeilleurjeudumonde\libs\sdl-1.2.15\include\sdl\sdl_active.h + "SDL_stdinc.h" + "SDL_error.h" + "begin_code.h" + "close_code.h" + +1325742239 c:\users\henri\desktop\workspace-jeuc\lemeilleurjeudumonde\libs\sdl-1.2.15\include\sdl\sdl_keyboard.h + "SDL_stdinc.h" + "SDL_error.h" + "SDL_keysym.h" + "begin_code.h" + "close_code.h" + +1325742239 c:\users\henri\desktop\workspace-jeuc\lemeilleurjeudumonde\libs\sdl-1.2.15\include\sdl\sdl_keysym.h + +1325742239 c:\users\henri\desktop\workspace-jeuc\lemeilleurjeudumonde\libs\sdl-1.2.15\include\sdl\sdl_mouse.h + "SDL_stdinc.h" + "SDL_error.h" + "SDL_video.h" + "begin_code.h" + "close_code.h" + +1325742239 c:\users\henri\desktop\workspace-jeuc\lemeilleurjeudumonde\libs\sdl-1.2.15\include\sdl\sdl_video.h + "SDL_stdinc.h" + "SDL_error.h" + "SDL_rwops.h" + "begin_code.h" + "close_code.h" + +1325742239 c:\users\henri\desktop\workspace-jeuc\lemeilleurjeudumonde\libs\sdl-1.2.15\include\sdl\sdl_joystick.h + "SDL_stdinc.h" + "SDL_error.h" + "begin_code.h" + "close_code.h" + +1325742239 c:\users\henri\desktop\workspace-jeuc\lemeilleurjeudumonde\libs\sdl-1.2.15\include\sdl\sdl_quit.h + "SDL_stdinc.h" + "SDL_error.h" + +1325742239 c:\users\henri\desktop\workspace-jeuc\lemeilleurjeudumonde\libs\sdl-1.2.15\include\sdl\sdl_loadso.h + "SDL_stdinc.h" + "SDL_error.h" + "begin_code.h" + "close_code.h" + +1325742239 c:\users\henri\desktop\workspace-jeuc\lemeilleurjeudumonde\libs\sdl-1.2.15\include\sdl\sdl_timer.h + "SDL_stdinc.h" + "SDL_error.h" + "begin_code.h" + "close_code.h" + +1325742239 c:\users\henri\desktop\workspace-jeuc\lemeilleurjeudumonde\libs\sdl-1.2.15\include\sdl\sdl_version.h + "SDL_stdinc.h" + "begin_code.h" + "close_code.h" + +1462286133 c:\users\henri\desktop\workspace-jeuc\lemeilleurjeudumonde\src\sdl.h + +1461519337 c:\users\henri\desktop\workspace-jeuc\lemeilleurjeudumonde\src\controleursdl.h + +1462138721 source:c:\users\henri\desktop\workspace-jeuc\lemeilleurjeudumonde\src\deplacements.c + <stdio.h> + <stdlib.h> + "structures.h" + "case.h" + "personnage.h" + "deplacements.h" + +1462138721 source:c:\users\henri\desktop\workspace-jeuc\lemeilleurjeudumonde\src\interface.c + <stdio.h> + <stdlib.h> + <roxml.h> + "Interface.h" + "structures.h" + +1462138721 c:\users\henri\desktop\workspace-jeuc\lemeilleurjeudumonde\src\interface.h + <roxml.h> + "structures.h" + +1459762040 source:c:\users\henri\desktop\workspace-jeuc\lemeilleurjeudumonde\src\joueur.c + <stdio.h> + <stdlib.h> + <string.h> + "structures.h" + "joueur.h" + +1459765527 source:c:\users\henri\desktop\workspace-jeuc\lemeilleurjeudumonde\src\joueurlist.c + <stdio.h> + <stdlib.h> + "structures.h" + "joueurList.h" + +1462279594 source:c:\users\henri\desktop\workspace-jeuc\lemeilleurjeudumonde\src\main.c + <stdio.h> + <stdlib.h> + "structures.h" + "classe.h" + "case.h" + "terrain.h" + "SDL.h" + "roxml.h" + "carte.h" + "Interface.h" + +1461253159 source:c:\users\henri\desktop\workspace-jeuc\lemeilleurjeudumonde\src\mainpartieconsole.c + <stdlib.h> + <stdio.h> + <string.h> + "structures.h" + "controleur.h" + "partie.h" + "personnage.h" + "joueurList.h" + "joueur.h" + "affichageConsole2.h" + +1460725190 c:\users\henri\desktop\workspace-jeuc\lemeilleurjeudumonde\src\controleur.h + "structures.h" + +1462278681 source:c:\users\henri\desktop\workspace-jeuc\lemeilleurjeudumonde\src\partie.c + <stdio.h> + <stdlib.h> + "structures.h" + "partie.h" + "joueurList.h" + "joueur.h" + "case.h" + +1461274925 source:c:\users\henri\desktop\workspace-jeuc\lemeilleurjeudumonde\src\personnage.c + <stdio.h> + <stdlib.h> + "structures.h" + "case.h" + "personnage.h" + "deplacements.h" + +1461253159 source:c:\users\henri\desktop\workspace-jeuc\lemeilleurjeudumonde\src\resultat_aleatoire.c + <time.h> + <stdio.h> + +1462278681 source:c:\users\henri\desktop\workspace-jeuc\lemeilleurjeudumonde\src\sdl.c + <stdlib.h> + <SDL/SDL.h> + "structures.h" + "partie.h" + "joueur.h" + "joueurList.h" + "personnage.h" + "case.h" + "deplacements.h" + "SDL.h" + "controleurSDL.h" + +1462286071 source:c:\users\henri\desktop\workspace-jeuc\lemeilleurjeudumonde\src\sdl_bis.c + <stdio.h> + <stdlib.h> + <SDL/SDL.h> + <SDL/SDL_ttf.h> + "SDL.h" + +1325818393 c:\users\henri\desktop\workspace-jeuc\lemeilleurjeudumonde\libs\sdl-1.2.15\include\sdl\sdl_ttf.h + "SDL.h" + "begin_code.h" + "close_code.h" + +1462138721 source:c:\users\henri\desktop\workspace-jeuc\lemeilleurjeudumonde\src\terrain.c + <stdio.h> + <stdlib.h> + <string.h> + "terrain.h" + "case.h" + +1462138721 source:c:\users\henri\desktop\workspace-jeuc\lemeilleurjeudumonde\src\terrainsxml.c + <stdio.h> + <stdlib.h> + <roxml.h> + "structures.h" + "terrain.h" + "TerrainsXML.h" + "structures.h" + diff --git a/src/SDL.dll b/EII_jeu/SDL.dll similarity index 100% rename from src/SDL.dll rename to EII_jeu/SDL.dll diff --git a/EII_jeu/SDL_ttf.dll b/EII_jeu/SDL_ttf.dll new file mode 100644 index 0000000000000000000000000000000000000000..a8f1bcc1b08316b5a8866726a958a8a370bb9d4f Binary files /dev/null and b/EII_jeu/SDL_ttf.dll differ diff --git a/EII_jeu/Terrains_XML_log b/EII_jeu/Terrains_XML_log new file mode 100644 index 0000000000000000000000000000000000000000..7e3ed10f27e4d985af593f54fcaf970863b222a3 --- /dev/null +++ b/EII_jeu/Terrains_XML_log @@ -0,0 +1,47 @@ +Fichier decrivant le deroulement de la procedure d'acquisition des Terrains + +I) Chargement du fichier Terrains XML - Definition des noeuds +Le fichier contient 4 terrains +II) Chargement des terrains +1) Memoire allouee avec succes +La memoire allouee fait 352 octets + +Chargement du terrain numero 1 +Id : G_PLAIN +Nom : Plaine +FR : 1 +FRS : 1 +PDR : 1 +DESC : Plaine de bon sens +Texture : ../resources/Skins/plaine.bmp +Insertion du terrain 1 dans le tableau + +Chargement du terrain numero 2 +Id : G_RIVER +Nom : Riviere +FR : 0 +FRS : 1 +PDR : 1 +DESC : River, arrete de river +Texture : ../resources/Skins/eau.bmp +Insertion du terrain 2 dans le tableau + +Chargement du terrain numero 3 +Id : G_FOREST +Nom : Foret +FR : 1 +FRS : 1 +PDR : 2 +DESC : Le frère de Fopart +Texture : ../resources/Skins/foret.bmp +Insertion du terrain 3 dans le tableau + +Chargement du terrain numero 4 +Id : G_MOUNT +Nom : Montagne +FR : 0 +FRS : 0 +PDR : 0 +DESC : Montagne est plus haut que tontagne +Texture : ../resources/Skins/montagne.bmp +Insertion du terrain 4 dans le tableau diff --git a/EII_jeu/bin/Debug/SDL.dll b/EII_jeu/bin/Debug/SDL.dll new file mode 100644 index 0000000000000000000000000000000000000000..781b54d6ee5d89abc7e26f8405ef29f99ee68c2f Binary files /dev/null and b/EII_jeu/bin/Debug/SDL.dll differ diff --git a/EII_jeu/bin/Debug/SDL_ttf.dll b/EII_jeu/bin/Debug/SDL_ttf.dll new file mode 100644 index 0000000000000000000000000000000000000000..a8f1bcc1b08316b5a8866726a958a8a370bb9d4f Binary files /dev/null and b/EII_jeu/bin/Debug/SDL_ttf.dll differ diff --git a/EII_jeu/bin/Debug/libfreetype-6.dll b/EII_jeu/bin/Debug/libfreetype-6.dll new file mode 100644 index 0000000000000000000000000000000000000000..3b2e69dfa9a7e55c7c27b7feb64a4c71f345aca1 Binary files /dev/null and b/EII_jeu/bin/Debug/libfreetype-6.dll differ diff --git a/EII_jeu/bin/Debug/libroxml.dll b/EII_jeu/bin/Debug/libroxml.dll new file mode 100644 index 0000000000000000000000000000000000000000..40468f6d55be39c78ca832566d612e2000069ba7 Binary files /dev/null and b/EII_jeu/bin/Debug/libroxml.dll differ diff --git a/EII_jeu/bin/Debug/zlib1.dll b/EII_jeu/bin/Debug/zlib1.dll new file mode 100644 index 0000000000000000000000000000000000000000..53f3376a6635b0f6bc4227181fd46087f1d0324a Binary files /dev/null and b/EII_jeu/bin/Debug/zlib1.dll differ diff --git a/EII_jeu/libfreetype-6.dll b/EII_jeu/libfreetype-6.dll new file mode 100644 index 0000000000000000000000000000000000000000..3b2e69dfa9a7e55c7c27b7feb64a4c71f345aca1 Binary files /dev/null and b/EII_jeu/libfreetype-6.dll differ diff --git a/EII_jeu/libroxml.dll b/EII_jeu/libroxml.dll new file mode 100644 index 0000000000000000000000000000000000000000..40468f6d55be39c78ca832566d612e2000069ba7 Binary files /dev/null and b/EII_jeu/libroxml.dll differ diff --git a/EII_jeu/zlib1.dll b/EII_jeu/zlib1.dll new file mode 100644 index 0000000000000000000000000000000000000000..53f3376a6635b0f6bc4227181fd46087f1d0324a Binary files /dev/null and b/EII_jeu/zlib1.dll differ diff --git a/ElderInternalIgnition/ElderInternalIgnition.cbp b/ElderInternalIgnition/ElderInternalIgnition.cbp index 10dd3bb8b8c7fe57734807dc1e10a6fb3ffa6a36..56520dfaa58138ae57b7978784464ed603115081 100644 --- a/ElderInternalIgnition/ElderInternalIgnition.cbp +++ b/ElderInternalIgnition/ElderInternalIgnition.cbp @@ -14,6 +14,10 @@ <Compiler> <Add option="-g" /> </Compiler> + <Linker> + <Add library="..\Libs\SDL-1.2.15\lib\SDL_ttf.lib" /> + <Add directory="../Libs/SDL-1.2.15" /> + </Linker> </Target> <Target title="Release"> <Option output="./../build/bin/Release/ElderInternalIgnition" prefix_auto="1" extension_auto="1" /> @@ -38,6 +42,7 @@ <Add library="..\Libs\libroxml-2.3.0\Build\libroxml.dll" /> <Add library=".\..\Libs\SDL-1.2.15\bin\SDL.dll" /> <Add library="..\Libs\cmocka-1.0.0\lib\cmocka.dll.a" /> + <Add library="..\Libs\SDL-1.2.15\lib\SDL_ttf.lib" /> <Add directory="./../Libs" /> <Add directory="../Libs/cmocka-1.0.0/lib" /> </Linker> diff --git a/ElderInternalIgnition/SDL_ttf.dll b/ElderInternalIgnition/SDL_ttf.dll new file mode 100644 index 0000000000000000000000000000000000000000..a8f1bcc1b08316b5a8866726a958a8a370bb9d4f Binary files /dev/null and b/ElderInternalIgnition/SDL_ttf.dll differ diff --git a/ElderInternalIgnition/libfreetype-6.dll b/ElderInternalIgnition/libfreetype-6.dll new file mode 100644 index 0000000000000000000000000000000000000000..3b2e69dfa9a7e55c7c27b7feb64a4c71f345aca1 Binary files /dev/null and b/ElderInternalIgnition/libfreetype-6.dll differ diff --git a/ElderInternalIgnition/zlib1.dll b/ElderInternalIgnition/zlib1.dll new file mode 100644 index 0000000000000000000000000000000000000000..53f3376a6635b0f6bc4227181fd46087f1d0324a Binary files /dev/null and b/ElderInternalIgnition/zlib1.dll differ diff --git a/Libs/SDL-1.2.15/include/SDL/SDL_ttf.h b/Libs/SDL-1.2.15/include/SDL/SDL_ttf.h new file mode 100644 index 0000000000000000000000000000000000000000..5ae5bea743867b67bfc89db56e6160112f2256c9 --- /dev/null +++ b/Libs/SDL-1.2.15/include/SDL/SDL_ttf.h @@ -0,0 +1,249 @@ +/* + SDL_ttf: A companion library to SDL for working with TrueType (tm) fonts + Copyright (C) 2001-2012 Sam Lantinga <slouken@libsdl.org> + + This software is provided 'as-is', without any express or implied + warranty. In no event will the authors be held liable for any damages + arising from the use of this software. + + Permission is granted to anyone to use this software for any purpose, + including commercial applications, and to alter it and redistribute it + freely, subject to the following restrictions: + + 1. The origin of this software must not be misrepresented; you must not + claim that you wrote the original software. If you use this software + in a product, an acknowledgment in the product documentation would be + appreciated but is not required. + 2. Altered source versions must be plainly marked as such, and must not be + misrepresented as being the original software. + 3. This notice may not be removed or altered from any source distribution. +*/ + +/* This library is a wrapper around the excellent FreeType 2.0 library, + available at: + http://www.freetype.org/ +*/ + +#ifndef _SDL_TTF_H +#define _SDL_TTF_H + +#include "SDL.h" +#include "begin_code.h" + +/* Set up for C function definitions, even when using C++ */ +#ifdef __cplusplus +extern "C" { +#endif + +/* Printable format: "%d.%d.%d", MAJOR, MINOR, PATCHLEVEL +*/ +#define SDL_TTF_MAJOR_VERSION 2 +#define SDL_TTF_MINOR_VERSION 0 +#define SDL_TTF_PATCHLEVEL 11 + +/* This macro can be used to fill a version structure with the compile-time + * version of the SDL_ttf library. + */ +#define SDL_TTF_VERSION(X) \ +{ \ + (X)->major = SDL_TTF_MAJOR_VERSION; \ + (X)->minor = SDL_TTF_MINOR_VERSION; \ + (X)->patch = SDL_TTF_PATCHLEVEL; \ +} + +/* Backwards compatibility */ +#define TTF_MAJOR_VERSION SDL_TTF_MAJOR_VERSION +#define TTF_MINOR_VERSION SDL_TTF_MINOR_VERSION +#define TTF_PATCHLEVEL SDL_TTF_PATCHLEVEL +#define TTF_VERSION(X) SDL_TTF_VERSION(X) + +/* This function gets the version of the dynamically linked SDL_ttf library. + it should NOT be used to fill a version structure, instead you should + use the SDL_TTF_VERSION() macro. + */ +extern DECLSPEC const SDL_version * SDLCALL TTF_Linked_Version(void); + +/* ZERO WIDTH NO-BREAKSPACE (Unicode byte order mark) */ +#define UNICODE_BOM_NATIVE 0xFEFF +#define UNICODE_BOM_SWAPPED 0xFFFE + +/* This function tells the library whether UNICODE text is generally + byteswapped. A UNICODE BOM character in a string will override + this setting for the remainder of that string. +*/ +extern DECLSPEC void SDLCALL TTF_ByteSwappedUNICODE(int swapped); + +/* The internal structure containing font information */ +typedef struct _TTF_Font TTF_Font; + +/* Initialize the TTF engine - returns 0 if successful, -1 on error */ +extern DECLSPEC int SDLCALL TTF_Init(void); + +/* Open a font file and create a font of the specified point size. + * Some .fon fonts will have several sizes embedded in the file, so the + * point size becomes the index of choosing which size. If the value + * is too high, the last indexed size will be the default. */ +extern DECLSPEC TTF_Font * SDLCALL TTF_OpenFont(const char *file, int ptsize); +extern DECLSPEC TTF_Font * SDLCALL TTF_OpenFontIndex(const char *file, int ptsize, long index); +extern DECLSPEC TTF_Font * SDLCALL TTF_OpenFontRW(SDL_RWops *src, int freesrc, int ptsize); +extern DECLSPEC TTF_Font * SDLCALL TTF_OpenFontIndexRW(SDL_RWops *src, int freesrc, int ptsize, long index); + +/* Set and retrieve the font style */ +#define TTF_STYLE_NORMAL 0x00 +#define TTF_STYLE_BOLD 0x01 +#define TTF_STYLE_ITALIC 0x02 +#define TTF_STYLE_UNDERLINE 0x04 +#define TTF_STYLE_STRIKETHROUGH 0x08 +extern DECLSPEC int SDLCALL TTF_GetFontStyle(const TTF_Font *font); +extern DECLSPEC void SDLCALL TTF_SetFontStyle(TTF_Font *font, int style); +extern DECLSPEC int SDLCALL TTF_GetFontOutline(const TTF_Font *font); +extern DECLSPEC void SDLCALL TTF_SetFontOutline(TTF_Font *font, int outline); + +/* Set and retrieve FreeType hinter settings */ +#define TTF_HINTING_NORMAL 0 +#define TTF_HINTING_LIGHT 1 +#define TTF_HINTING_MONO 2 +#define TTF_HINTING_NONE 3 +extern DECLSPEC int SDLCALL TTF_GetFontHinting(const TTF_Font *font); +extern DECLSPEC void SDLCALL TTF_SetFontHinting(TTF_Font *font, int hinting); + +/* Get the total height of the font - usually equal to point size */ +extern DECLSPEC int SDLCALL TTF_FontHeight(const TTF_Font *font); + +/* Get the offset from the baseline to the top of the font + This is a positive value, relative to the baseline. + */ +extern DECLSPEC int SDLCALL TTF_FontAscent(const TTF_Font *font); + +/* Get the offset from the baseline to the bottom of the font + This is a negative value, relative to the baseline. + */ +extern DECLSPEC int SDLCALL TTF_FontDescent(const TTF_Font *font); + +/* Get the recommended spacing between lines of text for this font */ +extern DECLSPEC int SDLCALL TTF_FontLineSkip(const TTF_Font *font); + +/* Get/Set whether or not kerning is allowed for this font */ +extern DECLSPEC int SDLCALL TTF_GetFontKerning(const TTF_Font *font); +extern DECLSPEC void SDLCALL TTF_SetFontKerning(TTF_Font *font, int allowed); + +/* Get the number of faces of the font */ +extern DECLSPEC long SDLCALL TTF_FontFaces(const TTF_Font *font); + +/* Get the font face attributes, if any */ +extern DECLSPEC int SDLCALL TTF_FontFaceIsFixedWidth(const TTF_Font *font); +extern DECLSPEC char * SDLCALL TTF_FontFaceFamilyName(const TTF_Font *font); +extern DECLSPEC char * SDLCALL TTF_FontFaceStyleName(const TTF_Font *font); + +/* Check wether a glyph is provided by the font or not */ +extern DECLSPEC int SDLCALL TTF_GlyphIsProvided(const TTF_Font *font, Uint16 ch); + +/* Get the metrics (dimensions) of a glyph + To understand what these metrics mean, here is a useful link: + http://freetype.sourceforge.net/freetype2/docs/tutorial/step2.html + */ +extern DECLSPEC int SDLCALL TTF_GlyphMetrics(TTF_Font *font, Uint16 ch, + int *minx, int *maxx, + int *miny, int *maxy, int *advance); + +/* Get the dimensions of a rendered string of text */ +extern DECLSPEC int SDLCALL TTF_SizeText(TTF_Font *font, const char *text, int *w, int *h); +extern DECLSPEC int SDLCALL TTF_SizeUTF8(TTF_Font *font, const char *text, int *w, int *h); +extern DECLSPEC int SDLCALL TTF_SizeUNICODE(TTF_Font *font, const Uint16 *text, int *w, int *h); + +/* Create an 8-bit palettized surface and render the given text at + fast quality with the given font and color. The 0 pixel is the + colorkey, giving a transparent background, and the 1 pixel is set + to the text color. + This function returns the new surface, or NULL if there was an error. +*/ +extern DECLSPEC SDL_Surface * SDLCALL TTF_RenderText_Solid(TTF_Font *font, + const char *text, SDL_Color fg); +extern DECLSPEC SDL_Surface * SDLCALL TTF_RenderUTF8_Solid(TTF_Font *font, + const char *text, SDL_Color fg); +extern DECLSPEC SDL_Surface * SDLCALL TTF_RenderUNICODE_Solid(TTF_Font *font, + const Uint16 *text, SDL_Color fg); + +/* Create an 8-bit palettized surface and render the given glyph at + fast quality with the given font and color. The 0 pixel is the + colorkey, giving a transparent background, and the 1 pixel is set + to the text color. The glyph is rendered without any padding or + centering in the X direction, and aligned normally in the Y direction. + This function returns the new surface, or NULL if there was an error. +*/ +extern DECLSPEC SDL_Surface * SDLCALL TTF_RenderGlyph_Solid(TTF_Font *font, + Uint16 ch, SDL_Color fg); + +/* Create an 8-bit palettized surface and render the given text at + high quality with the given font and colors. The 0 pixel is background, + while other pixels have varying degrees of the foreground color. + This function returns the new surface, or NULL if there was an error. +*/ +extern DECLSPEC SDL_Surface * SDLCALL TTF_RenderText_Shaded(TTF_Font *font, + const char *text, SDL_Color fg, SDL_Color bg); +extern DECLSPEC SDL_Surface * SDLCALL TTF_RenderUTF8_Shaded(TTF_Font *font, + const char *text, SDL_Color fg, SDL_Color bg); +extern DECLSPEC SDL_Surface * SDLCALL TTF_RenderUNICODE_Shaded(TTF_Font *font, + const Uint16 *text, SDL_Color fg, SDL_Color bg); + +/* Create an 8-bit palettized surface and render the given glyph at + high quality with the given font and colors. The 0 pixel is background, + while other pixels have varying degrees of the foreground color. + The glyph is rendered without any padding or centering in the X + direction, and aligned normally in the Y direction. + This function returns the new surface, or NULL if there was an error. +*/ +extern DECLSPEC SDL_Surface * SDLCALL TTF_RenderGlyph_Shaded(TTF_Font *font, + Uint16 ch, SDL_Color fg, SDL_Color bg); + +/* Create a 32-bit ARGB surface and render the given text at high quality, + using alpha blending to dither the font with the given color. + This function returns the new surface, or NULL if there was an error. +*/ +extern DECLSPEC SDL_Surface * SDLCALL TTF_RenderText_Blended(TTF_Font *font, + const char *text, SDL_Color fg); +extern DECLSPEC SDL_Surface * SDLCALL TTF_RenderUTF8_Blended(TTF_Font *font, + const char *text, SDL_Color fg); +extern DECLSPEC SDL_Surface * SDLCALL TTF_RenderUNICODE_Blended(TTF_Font *font, + const Uint16 *text, SDL_Color fg); + +/* Create a 32-bit ARGB surface and render the given glyph at high quality, + using alpha blending to dither the font with the given color. + The glyph is rendered without any padding or centering in the X + direction, and aligned normally in the Y direction. + This function returns the new surface, or NULL if there was an error. +*/ +extern DECLSPEC SDL_Surface * SDLCALL TTF_RenderGlyph_Blended(TTF_Font *font, + Uint16 ch, SDL_Color fg); + +/* For compatibility with previous versions, here are the old functions */ +#define TTF_RenderText(font, text, fg, bg) \ + TTF_RenderText_Shaded(font, text, fg, bg) +#define TTF_RenderUTF8(font, text, fg, bg) \ + TTF_RenderUTF8_Shaded(font, text, fg, bg) +#define TTF_RenderUNICODE(font, text, fg, bg) \ + TTF_RenderUNICODE_Shaded(font, text, fg, bg) + +/* Close an opened font file */ +extern DECLSPEC void SDLCALL TTF_CloseFont(TTF_Font *font); + +/* De-initialize the TTF engine */ +extern DECLSPEC void SDLCALL TTF_Quit(void); + +/* Check if the TTF engine is initialized */ +extern DECLSPEC int SDLCALL TTF_WasInit(void); + +/* Get the kerning size of two glyphs */ +extern DECLSPEC int TTF_GetFontKerningSize(TTF_Font *font, int prev_index, int index); + +/* We'll use SDL for reporting errors */ +#define TTF_SetError SDL_SetError +#define TTF_GetError SDL_GetError + +/* Ends C function definitions when using C++ */ +#ifdef __cplusplus +} +#endif +#include "close_code.h" + +#endif /* _SDL_TTF_H */ diff --git a/Libs/SDL-1.2.15/lib/LICENSE.freetype.txt b/Libs/SDL-1.2.15/lib/LICENSE.freetype.txt new file mode 100644 index 0000000000000000000000000000000000000000..2122ec7c4e4fa15e34a9833022fcaa7b2e91fda6 --- /dev/null +++ b/Libs/SDL-1.2.15/lib/LICENSE.freetype.txt @@ -0,0 +1,173 @@ +The source code to this library used with SDL_ttf can be found here: +http://www.libsdl.org/projects/SDL_ttf/libs/ +--- + + The FreeType Project LICENSE + ---------------------------- + + 2006-Jan-27 + + Copyright 1996-2002, 2006 by + David Turner, Robert Wilhelm, and Werner Lemberg + + + +Introduction +============ + + The FreeType Project is distributed in several archive packages; + some of them may contain, in addition to the FreeType font engine, + various tools and contributions which rely on, or relate to, the + FreeType Project. + + This license applies to all files found in such packages, and + which do not fall under their own explicit license. The license + affects thus the FreeType font engine, the test programs, + documentation and makefiles, at the very least. + + This license was inspired by the BSD, Artistic, and IJG + (Independent JPEG Group) licenses, which all encourage inclusion + and use of free software in commercial and freeware products + alike. As a consequence, its main points are that: + + o We don't promise that this software works. However, we will be + interested in any kind of bug reports. (`as is' distribution) + + o You can use this software for whatever you want, in parts or + full form, without having to pay us. (`royalty-free' usage) + + o You may not pretend that you wrote this software. If you use + it, or only parts of it, in a program, you must acknowledge + somewhere in your documentation that you have used the + FreeType code. (`credits') + + We specifically permit and encourage the inclusion of this + software, with or without modifications, in commercial products. + We disclaim all warranties covering The FreeType Project and + assume no liability related to The FreeType Project. + + + Finally, many people asked us for a preferred form for a + credit/disclaimer to use in compliance with this license. We thus + encourage you to use the following text: + + """ + Portions of this software are copyright © <year> The FreeType + Project (www.freetype.org). All rights reserved. + """ + + Please replace <year> with the value from the FreeType version you + actually use. + + +Legal Terms +=========== + +0. Definitions +-------------- + + Throughout this license, the terms `package', `FreeType Project', + and `FreeType archive' refer to the set of files originally + distributed by the authors (David Turner, Robert Wilhelm, and + Werner Lemberg) as the `FreeType Project', be they named as alpha, + beta or final release. + + `You' refers to the licensee, or person using the project, where + `using' is a generic term including compiling the project's source + code as well as linking it to form a `program' or `executable'. + This program is referred to as `a program using the FreeType + engine'. + + This license applies to all files distributed in the original + FreeType Project, including all source code, binaries and + documentation, unless otherwise stated in the file in its + original, unmodified form as distributed in the original archive. + If you are unsure whether or not a particular file is covered by + this license, you must contact us to verify this. + + The FreeType Project is copyright (C) 1996-2000 by David Turner, + Robert Wilhelm, and Werner Lemberg. All rights reserved except as + specified below. + +1. No Warranty +-------------- + + THE FREETYPE PROJECT IS PROVIDED `AS IS' WITHOUT WARRANTY OF ANY + KIND, EITHER EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, + WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + PURPOSE. IN NO EVENT WILL ANY OF THE AUTHORS OR COPYRIGHT HOLDERS + BE LIABLE FOR ANY DAMAGES CAUSED BY THE USE OR THE INABILITY TO + USE, OF THE FREETYPE PROJECT. + +2. Redistribution +----------------- + + This license grants a worldwide, royalty-free, perpetual and + irrevocable right and license to use, execute, perform, compile, + display, copy, create derivative works of, distribute and + sublicense the FreeType Project (in both source and object code + forms) and derivative works thereof for any purpose; and to + authorize others to exercise some or all of the rights granted + herein, subject to the following conditions: + + o Redistribution of source code must retain this license file + (`FTL.TXT') unaltered; any additions, deletions or changes to + the original files must be clearly indicated in accompanying + documentation. The copyright notices of the unaltered, + original files must be preserved in all copies of source + files. + + o Redistribution in binary form must provide a disclaimer that + states that the software is based in part of the work of the + FreeType Team, in the distribution documentation. We also + encourage you to put an URL to the FreeType web page in your + documentation, though this isn't mandatory. + + These conditions apply to any software derived from or based on + the FreeType Project, not just the unmodified files. If you use + our work, you must acknowledge us. However, no fee need be paid + to us. + +3. Advertising +-------------- + + Neither the FreeType authors and contributors nor you shall use + the name of the other for commercial, advertising, or promotional + purposes without specific prior written permission. + + We suggest, but do not require, that you use one or more of the + following phrases to refer to this software in your documentation + or advertising materials: `FreeType Project', `FreeType Engine', + `FreeType library', or `FreeType Distribution'. + + As you have not signed this license, you are not required to + accept it. However, as the FreeType Project is copyrighted + material, only this license, or another one contracted with the + authors, grants you the right to use, distribute, and modify it. + Therefore, by using, distributing, or modifying the FreeType + Project, you indicate that you understand and accept all the terms + of this license. + +4. Contacts +----------- + + There are two mailing lists related to FreeType: + + o freetype@nongnu.org + + Discusses general use and applications of FreeType, as well as + future and wanted additions to the library and distribution. + If you are looking for support, start in this list if you + haven't found anything to help you in the documentation. + + o freetype-devel@nongnu.org + + Discusses bugs, as well as engine internals, design issues, + specific licenses, porting, etc. + + Our home page can be found at + + http://www.freetype.org + + +--- end of FTL.TXT --- diff --git a/Libs/SDL-1.2.15/lib/LICENSE.zlib.txt b/Libs/SDL-1.2.15/lib/LICENSE.zlib.txt new file mode 100644 index 0000000000000000000000000000000000000000..ecd619ee9ae1aebe494f84976d90938819825733 --- /dev/null +++ b/Libs/SDL-1.2.15/lib/LICENSE.zlib.txt @@ -0,0 +1,31 @@ +The source code to this library used with SDL_ttf can be found here: +http://www.libsdl.org/projects/SDL_ttf/libs/ +--- + +Copyright notice: + + (C) 1995-2010 Jean-loup Gailly and Mark Adler + + This software is provided 'as-is', without any express or implied + warranty. In no event will the authors be held liable for any damages + arising from the use of this software. + + Permission is granted to anyone to use this software for any purpose, + including commercial applications, and to alter it and redistribute it + freely, subject to the following restrictions: + + 1. The origin of this software must not be misrepresented; you must not + claim that you wrote the original software. If you use this software + in a product, an acknowledgment in the product documentation would be + appreciated but is not required. + 2. Altered source versions must be plainly marked as such, and must not be + misrepresented as being the original software. + 3. This notice may not be removed or altered from any source distribution. + + Jean-loup Gailly Mark Adler + jloup@gzip.org madler@alumni.caltech.edu + +If you use the zlib library in a product, we would appreciate *not* receiving +lengthy legal documents to sign. The sources are provided for free but without +warranty of any kind. The library has been entirely written by Jean-loup +Gailly and Mark Adler; it does not include third-party code. diff --git a/Libs/SDL-1.2.15/lib/SDL_ttf.dll b/Libs/SDL-1.2.15/lib/SDL_ttf.dll new file mode 100644 index 0000000000000000000000000000000000000000..a8f1bcc1b08316b5a8866726a958a8a370bb9d4f Binary files /dev/null and b/Libs/SDL-1.2.15/lib/SDL_ttf.dll differ diff --git a/Libs/SDL-1.2.15/lib/SDL_ttf.lib b/Libs/SDL-1.2.15/lib/SDL_ttf.lib new file mode 100644 index 0000000000000000000000000000000000000000..a44d887885efbe8c3b0bd97555f799bdf88ff29a Binary files /dev/null and b/Libs/SDL-1.2.15/lib/SDL_ttf.lib differ diff --git a/Libs/SDL-1.2.15/lib/libfreetype-6.dll b/Libs/SDL-1.2.15/lib/libfreetype-6.dll new file mode 100644 index 0000000000000000000000000000000000000000..3b2e69dfa9a7e55c7c27b7feb64a4c71f345aca1 Binary files /dev/null and b/Libs/SDL-1.2.15/lib/libfreetype-6.dll differ diff --git a/Libs/SDL-1.2.15/lib/zlib1.dll b/Libs/SDL-1.2.15/lib/zlib1.dll new file mode 100644 index 0000000000000000000000000000000000000000..53f3376a6635b0f6bc4227181fd46087f1d0324a Binary files /dev/null and b/Libs/SDL-1.2.15/lib/zlib1.dll differ diff --git a/resources/Arbres de talents/Thumbs.db b/resources/Arbres de talents/Thumbs.db new file mode 100644 index 0000000000000000000000000000000000000000..8b6d169239ff97061dff26e6914289a16af36bb6 Binary files /dev/null and b/resources/Arbres de talents/Thumbs.db differ diff --git a/resources/Cases terrain/Thumbs.db b/resources/Cases terrain/Thumbs.db index f5dd34a94264d5aad0330b8f2c49b32935681475..1c72436d7f2912912c0324ffb5f701d69e24e08a 100644 Binary files a/resources/Cases terrain/Thumbs.db and b/resources/Cases terrain/Thumbs.db differ diff --git a/resources/Skins/Thumbs.db b/resources/Skins/Thumbs.db new file mode 100644 index 0000000000000000000000000000000000000000..6d334ef44a7ef941c697f5e81b9c9721cb367cdf Binary files /dev/null and b/resources/Skins/Thumbs.db differ diff --git a/resources/Skins/logo.bmp b/resources/Skins/logo.bmp new file mode 100644 index 0000000000000000000000000000000000000000..44376cb96c9b8cc68aca6edf546d14ce3dbd37a0 Binary files /dev/null and b/resources/Skins/logo.bmp differ diff --git a/resources/fonts/ARIALN.TTF b/resources/fonts/ARIALN.TTF new file mode 100644 index 0000000000000000000000000000000000000000..94907a3dfc67bedb2ba9f245afe628ae98c07f1f Binary files /dev/null and b/resources/fonts/ARIALN.TTF differ diff --git a/resources/fonts/ARIALNB.TTF b/resources/fonts/ARIALNB.TTF new file mode 100644 index 0000000000000000000000000000000000000000..62437f02f8888fc54432c67a468ec71e7b917b67 Binary files /dev/null and b/resources/fonts/ARIALNB.TTF differ diff --git a/resources/fonts/ARIALNBI.TTF b/resources/fonts/ARIALNBI.TTF new file mode 100644 index 0000000000000000000000000000000000000000..d3f019a3690fc48beffd8a95cad555233e254395 Binary files /dev/null and b/resources/fonts/ARIALNBI.TTF differ diff --git a/resources/fonts/ARIALNI.TTF b/resources/fonts/ARIALNI.TTF new file mode 100644 index 0000000000000000000000000000000000000000..4acd4685f526df0f12a26235531fe4ae57c5913f Binary files /dev/null and b/resources/fonts/ARIALNI.TTF differ diff --git a/resources/fonts/arial.ttf b/resources/fonts/arial.ttf new file mode 100644 index 0000000000000000000000000000000000000000..a7bfef2367d344ece509d1932c7dbecdb9a49fb1 Binary files /dev/null and b/resources/fonts/arial.ttf differ diff --git a/resources/fonts/arialbd.ttf b/resources/fonts/arialbd.ttf new file mode 100644 index 0000000000000000000000000000000000000000..b6754e261d9604152ffcbdbf6403dd4f87ac58ac Binary files /dev/null and b/resources/fonts/arialbd.ttf differ diff --git a/resources/fonts/arialbi.ttf b/resources/fonts/arialbi.ttf new file mode 100644 index 0000000000000000000000000000000000000000..58ffa1ddb44ba5204cbafb4835b0031b90d3665a Binary files /dev/null and b/resources/fonts/arialbi.ttf differ diff --git a/resources/fonts/ariali.ttf b/resources/fonts/ariali.ttf new file mode 100644 index 0000000000000000000000000000000000000000..86aaaebb35bc4aed969c1fba88918a1429d0716d Binary files /dev/null and b/resources/fonts/ariali.ttf differ diff --git a/resources/fonts/ariblk.ttf b/resources/fonts/ariblk.ttf new file mode 100644 index 0000000000000000000000000000000000000000..56292eac932972f775def7cf3f63466cb66e9b33 Binary files /dev/null and b/resources/fonts/ariblk.ttf differ diff --git a/src/SDL.h b/src/SDL.h index 482dc8c364be81e96a553fb264e0af9fe2223ab2..71100461896e7b874091e459f7938ed37c113644 100644 --- a/src/SDL.h +++ b/src/SDL.h @@ -16,6 +16,6 @@ #define LARGEUR_BOUTON 115 int main_SDL(char* Map); - +int SDL_bis(); #endif diff --git a/src/SDL_bis.c b/src/SDL_bis.c new file mode 100644 index 0000000000000000000000000000000000000000..f0d612a35094ed5ac7e0868e8deb0543feb6eef5 --- /dev/null +++ b/src/SDL_bis.c @@ -0,0 +1,72 @@ +#include <stdio.h> +#include <stdlib.h> +#include <SDL/SDL.h> +#include <SDL/SDL_ttf.h> +#include "SDL.h" + + +int SDL_bis() +{ int quitter=0; + SDL_Surface* ecran=NULL; + SDL_Event event; + SDL_Surface* logo = NULL; + SDL_Surface* texte = NULL; + SDL_Rect pos_logo; + SDL_Rect pos_texte; + TTF_Font *police = NULL; + + if ( SDL_Init( SDL_INIT_VIDEO ) < 0 ) + { + printf( "Unable to init SDL: %s\n", SDL_GetError() ); + return 1; + } + + if(TTF_Init() == -1) + { + fprintf(stderr, "Erreur d'initialisation de TTF_Init : %s\n", TTF_GetError()); + exit(EXIT_FAILURE); + } + + police=TTF_OpenFont("../resources/fonts/arial.ttf",26); + SDL_Color couleurNoire = {0, 0, 0}; + SDL_Color couleurBlanche = {255, 255, 255}; + + ecran = SDL_SetVideoMode(LARGEUR_CARTE*(LARGEUR_CASE+1), HAUTEUR_CARTE*(HAUTEUR_CASE+2), 32, SDL_HWSURFACE|SDL_DOUBLEBUF); + if (ecran == NULL) // Si l'ouverture a échoué, on le note et on arrête + { + fprintf(stderr, "Impossible de charger le mode vidéo : %s\n", SDL_GetError()); + exit(EXIT_FAILURE); + } + + SDL_WM_SetCaption("Elder Internal Ignition",NULL); + + texte = TTF_RenderText_Shaded(police, "Entrez le nom du joueur 1", couleurBlanche,couleurNoire); + + SDL_FillRect(ecran,NULL,SDL_MapRGB(ecran->format,0,0,0)); + + logo = SDL_LoadBMP("../resources/Skins/logo.bmp"); + if (!logo) + { + printf("Unable to load bitmap: %s\n", SDL_GetError()); + return 1; + } + pos_logo.x=0; + pos_logo.y=0; + pos_texte.x=(ecran->w-texte->w)/2; + pos_texte.y=ecran->h-200; + while(quitter==0) + { + SDL_WaitEvent(&event); + switch(event.type) + { + case SDL_QUIT: + quitter=1; + break; + } + SDL_BlitSurface(texte,NULL,ecran,&pos_texte); + SDL_BlitSurface(logo,NULL,ecran,&pos_logo); + SDL_Flip(ecran); + } + return 0; + +} diff --git a/src/main.c b/src/main.c index 878ce8311bac3f6ea57b6414487d7ed5ee83b575..50b221dd0ef2e69a05b107be8d40ada2570fbf06 100644 --- a/src/main.c +++ b/src/main.c @@ -145,7 +145,7 @@ Pack_A.GUI_Package = GUI_Pack; /* -------------------------------------*/ //main_SDL(Map_ANCIENNE_VERSION); - + SDL_bis(); Test_Competences();