Skip to content
Snippets Groups Projects
Commit cceb06cc authored by Corto.Cabantous's avatar Corto.Cabantous
Browse files

ajout de prof.h

parents e1ede455 f31f16b0
No related branches found
No related tags found
4 merge requests!8Modele,!7Modele,!6Modele,!5Modele Version 1
Showing
with 880 additions and 8 deletions
......@@ -92,6 +92,7 @@ REPARTITION DES ROLES
*****Réunion du 11/02/2021 à 16h*****
Finalisation du diagramme de Gantt
......@@ -118,4 +119,20 @@ Pour le controleur, plusieurs options : une branche s
*****Réunion du 18/02/2021 à 13h30*****
\ No newline at end of file
*****Réunion du 18/02/2021 à 13h30*****
Répartiton du travail dans chaque sous-équipe
Mise en accord sur les normes (position personnage etc) entre les 2 sous-équipes
=> Prochaine réunion de l'équipe : jeudi 25 février à 13h30
*****Réunion du 25/02/2021 à 13h30*****
Matrice fonctionnelle opérationnelle
Fonctions d'initialisation en cours.
=> Prochaine réunion de l'équipe :
\ No newline at end of file
set(CMAKE_C_COMPILER "C:/TDM-GCC-64/bin/gcc.exe")
set(CMAKE_C_COMPILER_ARG1 "")
set(CMAKE_C_COMPILER_ID "GNU")
set(CMAKE_C_COMPILER_VERSION "9.2.0")
set(CMAKE_C_COMPILER_VERSION_INTERNAL "")
set(CMAKE_C_COMPILER_WRAPPER "")
set(CMAKE_C_STANDARD_COMPUTED_DEFAULT "11")
set(CMAKE_C_COMPILE_FEATURES "c_std_90;c_function_prototypes;c_std_99;c_restrict;c_variadic_macros;c_std_11;c_static_assert")
set(CMAKE_C90_COMPILE_FEATURES "c_std_90;c_function_prototypes")
set(CMAKE_C99_COMPILE_FEATURES "c_std_99;c_restrict;c_variadic_macros")
set(CMAKE_C11_COMPILE_FEATURES "c_std_11;c_static_assert")
set(CMAKE_C_PLATFORM_ID "MinGW")
set(CMAKE_C_SIMULATE_ID "")
set(CMAKE_C_COMPILER_FRONTEND_VARIANT "")
set(CMAKE_C_SIMULATE_VERSION "")
set(CMAKE_AR "C:/TDM-GCC-64/bin/ar.exe")
set(CMAKE_C_COMPILER_AR "C:/TDM-GCC-64/bin/gcc-ar.exe")
set(CMAKE_RANLIB "C:/TDM-GCC-64/bin/ranlib.exe")
set(CMAKE_C_COMPILER_RANLIB "C:/TDM-GCC-64/bin/gcc-ranlib.exe")
set(CMAKE_LINKER "C:/TDM-GCC-64/bin/ld.exe")
set(CMAKE_MT "")
set(CMAKE_COMPILER_IS_GNUCC 1)
set(CMAKE_C_COMPILER_LOADED 1)
set(CMAKE_C_COMPILER_WORKS TRUE)
set(CMAKE_C_ABI_COMPILED TRUE)
set(CMAKE_COMPILER_IS_MINGW 1)
set(CMAKE_COMPILER_IS_CYGWIN )
if(CMAKE_COMPILER_IS_CYGWIN)
set(CYGWIN 1)
set(UNIX 1)
endif()
set(CMAKE_C_COMPILER_ENV_VAR "CC")
if(CMAKE_COMPILER_IS_MINGW)
set(MINGW 1)
endif()
set(CMAKE_C_COMPILER_ID_RUN 1)
set(CMAKE_C_SOURCE_FILE_EXTENSIONS c;m)
set(CMAKE_C_IGNORE_EXTENSIONS h;H;o;O;obj;OBJ;def;DEF;rc;RC)
set(CMAKE_C_LINKER_PREFERENCE 10)
# Save compiler ABI information.
set(CMAKE_C_SIZEOF_DATA_PTR "8")
set(CMAKE_C_COMPILER_ABI "")
set(CMAKE_C_LIBRARY_ARCHITECTURE "")
if(CMAKE_C_SIZEOF_DATA_PTR)
set(CMAKE_SIZEOF_VOID_P "${CMAKE_C_SIZEOF_DATA_PTR}")
endif()
if(CMAKE_C_COMPILER_ABI)
set(CMAKE_INTERNAL_PLATFORM_ABI "${CMAKE_C_COMPILER_ABI}")
endif()
if(CMAKE_C_LIBRARY_ARCHITECTURE)
set(CMAKE_LIBRARY_ARCHITECTURE "")
endif()
set(CMAKE_C_CL_SHOWINCLUDES_PREFIX "")
if(CMAKE_C_CL_SHOWINCLUDES_PREFIX)
set(CMAKE_CL_SHOWINCLUDES_PREFIX "${CMAKE_C_CL_SHOWINCLUDES_PREFIX}")
endif()
set(CMAKE_C_IMPLICIT_INCLUDE_DIRECTORIES "C:/TDM-GCC-64/lib/gcc/x86_64-w64-mingw32/9.2.0/include;C:/TDM-GCC-64/include;C:/TDM-GCC-64/lib/gcc/x86_64-w64-mingw32/9.2.0/include-fixed;C:/TDM-GCC-64/x86_64-w64-mingw32/include")
set(CMAKE_C_IMPLICIT_LINK_LIBRARIES "mingw32;gcc;moldname;mingwex;pthread;advapi32;shell32;user32;kernel32;mingw32;gcc;moldname;mingwex")
set(CMAKE_C_IMPLICIT_LINK_DIRECTORIES "C:/TDM-GCC-64/lib/gcc/x86_64-w64-mingw32/9.2.0;C:/TDM-GCC-64/lib/gcc;C:/TDM-GCC-64/x86_64-w64-mingw32/lib;C:/TDM-GCC-64/lib")
set(CMAKE_C_IMPLICIT_LINK_FRAMEWORK_DIRECTORIES "")
File added
set(CMAKE_RC_COMPILER "C:/TDM-GCC-64/bin/windres.exe")
set(CMAKE_RC_COMPILER_ARG1 "")
set(CMAKE_RC_COMPILER_LOADED 1)
set(CMAKE_RC_SOURCE_FILE_EXTENSIONS rc;RC)
set(CMAKE_RC_OUTPUT_EXTENSION .obj)
set(CMAKE_RC_COMPILER_ENV_VAR "RC")
set(CMAKE_HOST_SYSTEM "Windows-10.0.19041")
set(CMAKE_HOST_SYSTEM_NAME "Windows")
set(CMAKE_HOST_SYSTEM_VERSION "10.0.19041")
set(CMAKE_HOST_SYSTEM_PROCESSOR "AMD64")
set(CMAKE_SYSTEM "Windows-10.0.19041")
set(CMAKE_SYSTEM_NAME "Windows")
set(CMAKE_SYSTEM_VERSION "10.0.19041")
set(CMAKE_SYSTEM_PROCESSOR "AMD64")
set(CMAKE_CROSSCOMPILING "FALSE")
set(CMAKE_SYSTEM_LOADED 1)
This diff is collapsed.
File added
-IC:/Users/Tiny/Desktop/game-insa-project/GAME/include
-lmingw32 -lSDL2main -lSDL2 -lSDL2_image -lkernel32 -luser32 -lgdi32 -lwinspool -lshell32 -lole32 -loleaut32 -luuid -lcomdlg32 -ladvapi32
File added
File added
CMakeFiles/INSAGAME.dir/main.c.obj CMakeFiles/INSAGAME.dir/src/map.c.obj
File added
......@@ -21,9 +21,11 @@
* \brief DS structure
*/
struct DS {
typedef struct {
int door; /**< Integer representing the door number i.e. the DS location. */
char * image_DS; /**< Source image of the DS. */
};
} DS;
int init_DS(DS * exam, int door_DS, char * path);
#endif /*INSAGAME_DS_H*/
......@@ -9,7 +9,7 @@
* \version 1
* \date 25/02/2021
*
* Character structure definiton.
* Character structure and functions definiton.
*
*/
......@@ -21,13 +21,15 @@
* \brief Character structure
*/
struct personnage {
typedef struct {
int x_pers; /**< Position : abscissa */
int y_pers; /**< Position : ordinate */
int long_pers; /**< Size : length */
int larg_pers; /**< Size : width */
int speed_pers; /**< Charater speed */
char * image_pers; /**< Source image of the character. */
};
}Personnage;
int init_pers(Personnage * character, int x, int y, int length, int width, int speed, char * path);
#endif /*GAME_INSA_PROJECT_PERSONNAGE_H*/
......@@ -23,14 +23,14 @@
* \brief Character structure
*/
typedef struct prof {
typedef struct {
int x_prof; /**< Position : abscissa */
int y_prof; /**< Position : ordinate */
int long_porf; /**< Size : length */
int larg_prof; /**< Size : width */
int speed_prof; /**< Charater speed */
char * image_prof; /**< Source image of the character. */
};
} prof;
#endif /*GAME_INSA_PROJECT_Prof_H*/
......
/*
// Created by Lucile on 02/03/2021.
*/
/*!
* \file DS.c
* \brief Exam Source File
* \authors Lucile
* \version 1
* \date 02/03/2021
*
* Character function implementation.
*
*/
#include <stdio.h>
#include <SDL2/SDL.h>
#include <SDL2/SDL_image.h>
#include "DS.h"
/*!
* \fn int init_DS(DS * exam, int door_DS, char * path)
* \brief This function initialize a DS : position (the door number) and the path to the DS's image.
*
* \param [in] exam a DS pointer
* \param [in] door_DS a door number corresponding to the DS location
* \param [in] path the DS image path
* \return 1 if the initialization went right.
*/
int init_DS(DS * exam, int door_DS, char * path){
exam->door=door_DS;
exam->image_DS = malloc(strlen(path));
strcpy(exam->image_DS, path);
return 1;
}
\ No newline at end of file
/*
// Created by Lucile on 25/02/2021.
*/
/*!
* \file personnage.c
* \brief Character Source File
* \authors Lucile
* \version 1
* \date 02/03/2021
*
* Character function implementation.
*
*/
#include <stdio.h>
#include <SDL2/SDL.h>
#include <SDL2/SDL_image.h>
#include "personnage.h"
/*!
* \fn int init_pers(Personnage * character, int x, int y, int length, int width, int speed, char * path)
* \brief This function initialize the character : position of the character's top left corner (x,y), size (length, width), speed and also the path to the character's image.
*
* \param [in] character a pointer on the character
* \param [in] x the character's abscissa
* \param [in] y the character's ordinate
* \param [in] length the character's length
* \param [in] width the character's width
* \param [in] path the path to the character's image
* \return 1 if the initialization went right.
*/
int init_pers(Personnage * character, int x, int y, int length, int width, int speed, char * path){
character->x_pers=x;
character->y_pers=y;
character->long_pers=length;
character->larg_pers=width;
character->speed_pers=speed;
character->image_pers = malloc(strlen(path));
strcpy(character->image_pers, path);
return 1;
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment