Skip to content
Snippets Groups Projects
Commit 7a0047f8 authored by llebasca's avatar llebasca
Browse files

All DS positions and Doxygen correction prof/personnage.c

parent a76fe7cf
No related branches found
No related tags found
4 merge requests!8Modele,!7Modele,!6Modele,!5Modele Version 1
......@@ -5,7 +5,7 @@
/*!
* \file DS.c
* \brief Exam Source File
* \authors Lucile
* \authors Lucile, Tin
* \version 1
* \date 02/03/2021
*
......@@ -14,6 +14,8 @@
*/
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <SDL2/SDL.h>
#include <SDL2/SDL_image.h>
#include "DS.h"
......@@ -62,6 +64,7 @@ void init_DS(DS * exam, int door_DS, char * path){
exam->larg_DS= 24;
exam->long_DS= 14;
break;
case 6:
exam->x_DS = 237;
exam->y_DS= 98;
......@@ -75,6 +78,7 @@ void init_DS(DS * exam, int door_DS, char * path){
exam->larg_DS= 12;
exam->long_DS= 17;
break;
case 8:
exam->x_DS = 75;
exam->y_DS= 172;
......@@ -95,140 +99,143 @@ void init_DS(DS * exam, int door_DS, char * path){
exam->larg_DS= 20;
exam->long_DS= 10;
break;
case 11:
exam->x_DS = 197;
exam->y_DS= 208;
exam->larg_DS= 10;
exam->long_DS= 3;
exam->x_DS = 191;
exam->y_DS= 203;
exam->larg_DS= 22;
exam->long_DS= 11;
break;
case 12:
exam->x_DS = 549;
exam->y_DS= 205;
exam->larg_DS= 5;
exam->long_DS= 12;
exam->x_DS = 544;
exam->y_DS= 201;
exam->larg_DS= 14;
exam->long_DS= 24;
break;
case 13:
exam->x_DS = 637;
exam->y_DS= 185;
exam->larg_DS= 5;
exam->long_DS= 14;
exam->x_DS = 632;
exam->y_DS= 181;
exam->larg_DS= 14;
exam->long_DS= 23;
break;
case 14:
exam->x_DS = 235;
exam->y_DS= 269;
exam->larg_DS= 4;
exam->long_DS= 11;
exam->x_DS = 228;
exam->y_DS= 263;
exam->larg_DS= 14;
exam->long_DS= 20;
break;
case 15:
exam->x_DS = 320;
exam->y_DS= 267;
exam->larg_DS= 8;
exam->long_DS= 4;
exam->x_DS = 314;
exam->y_DS= 261;
exam->larg_DS= 21;
exam->long_DS= 14;
break;
case 16:
exam->x_DS = 88;
exam->y_DS= 361;
exam->larg_DS= 3;
exam->long_DS= 15;
exam->x_DS = 82;
exam->y_DS= 356;
exam->larg_DS= 16;
exam->long_DS= 24;
break;
case 17:
exam->x_DS = 149;
exam->y_DS= 54;
exam->larg_DS= 12;
exam->long_DS= 5;
exam->x_DS = 493;
exam->y_DS= 319;
exam->larg_DS= 16;
exam->long_DS= 21;
break;
case 18:
exam->x_DS = 149;
exam->y_DS= 54;
exam->larg_DS= 12;
exam->long_DS= 5;
exam->x_DS = 600;
exam->y_DS= 308;
exam->larg_DS= 13;
exam->long_DS= 20;
break;
case 19:
exam->x_DS = 499;
exam->y_DS= 324;
exam->larg_DS= 12;
exam->long_DS= 5;
exam->x_DS = 194;
exam->y_DS= 414;
exam->larg_DS= 21;
exam->long_DS= 13;
break;
case 20:
exam->x_DS = 149;
exam->y_DS= 54;
exam->x_DS = 553;
exam->y_DS= 392;
exam->larg_DS= 12;
exam->long_DS= 5;
exam->long_DS= 20;
break;
case 21:
exam->x_DS = 149;
exam->y_DS= 54;
exam->larg_DS= 12;
exam->long_DS= 5;
exam->x_DS = 654;
exam->y_DS= 407;
exam->larg_DS= 20;
exam->long_DS= 12;
break;
case 22:
exam->x_DS = 149;
exam->y_DS= 54;
exam->larg_DS= 12;
exam->long_DS= 5;
exam->x_DS = 349;
exam->y_DS= 434;
exam->larg_DS= 22;
exam->long_DS= 12;
break;
case 23:
exam->x_DS = 149;
exam->y_DS= 54;
exam->larg_DS= 12;
exam->long_DS= 5;
exam->x_DS = 269;
exam->y_DS= 467;
exam->larg_DS= 16;
exam->long_DS= 20;
break;
case 24:
exam->x_DS = 149;
exam->y_DS= 54;
exam->larg_DS= 12;
exam->long_DS= 5;
exam->x_DS = 461;
exam->y_DS= 507;
exam->larg_DS= 24;
exam->long_DS= 14;
break;
case 25:
exam->x_DS = 149;
exam->y_DS= 54;
exam->larg_DS= 12;
exam->long_DS= 5;
exam->x_DS = 637;
exam->y_DS= 513;
exam->larg_DS= 13;
exam->long_DS= 24;
break;
case 26:
exam->x_DS = 149;
exam->y_DS= 54;
exam->larg_DS= 12;
exam->long_DS= 5;
exam->x_DS = 32;
exam->y_DS= 556;
exam->larg_DS= 26;
exam->long_DS= 13;
break;
case 27:
exam->x_DS = 149;
exam->y_DS= 54;
exam->larg_DS= 12;
exam->long_DS= 5;
exam->x_DS = 192;
exam->y_DS= 614;
exam->larg_DS= 18;
exam->long_DS= 24;
break;
case 28:
exam->x_DS = 149;
exam->y_DS= 54;
exam->larg_DS= 12;
exam->long_DS= 5;
exam->x_DS = 238;
exam->y_DS= 653;
exam->larg_DS= 14;
exam->long_DS= 20;
break;
case 29:
exam->x_DS = 149;
exam->y_DS= 54;
exam->larg_DS= 12;
exam->long_DS= 5;
exam->x_DS = 501;
exam->y_DS= 651;
exam->larg_DS= 14;
exam->long_DS= 21;
break;
case 30:
exam->x_DS = 149;
exam->y_DS= 54;
exam->larg_DS= 12;
exam->long_DS= 5;
exam->x_DS = 553;
exam->y_DS= 662;
exam->larg_DS= 17;
exam->long_DS= 23;
break;
}
......
......@@ -33,6 +33,7 @@
* \param [in] y the character's ordinate
* \param [in] length the character's length
* \param [in] width the character's width
* \param [in] speed the character's speed
* \param [in] path the path to the character's image
* \return 1 if the initialization went right.
*/
......
......@@ -8,7 +8,7 @@
/*!
* \file prof.c
* \brief Teacher Source File
* \authors corto
* \authors Corto
* \version 1
* \date 02/03/2021
*
......@@ -17,6 +17,8 @@
*/
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <SDL2/SDL.h>
#include <SDL2/SDL_image.h>
#include "prof.h"
......@@ -30,6 +32,7 @@
* \param [in] y the Teacher's ordinate
* \param [in] length the Teacher's length
* \param [in] width the Teacher's width
* \param [in] speed the Teacher's speed
* \param [in] path the path to the Teacher's image
* \return 1 if the initialization went right.
*/
......
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