diff options
-rw-r--r-- | actions.c | 1 | ||||
-rw-r--r-- | blits.c | 19 | ||||
-rw-r--r-- | jouer.c | 4 | ||||
-rw-r--r-- | magies.c | 4 | ||||
-rw-r--r-- | main.c | 5 | ||||
-rw-r--r-- | menuchoixpersos.c | 2 | ||||
-rw-r--r-- | menuoptions.c | 3 | ||||
-rw-r--r-- | prototypes.h | 2 |
8 files changed, 36 insertions, 4 deletions
@@ -152,7 +152,6 @@ void Fselectionnermagienoire(SURFACES *surfaces,POSITIONS *positions,PERSONNAGES SDL_Event event; unsigned int continuer=1; int nbactions=5; - unsigned int element; int page=0; int selection=0; @@ -11,6 +11,10 @@ void Fblitterennemis (SURFACES *surfaces, POSITIONS *positions,ENNEMIS ennemis[],int Vnbennemis) { int i; + + /* TODO understand if this is needed or not */ + (void) ennemis; + Finitialiserpositionsennemis (surfaces,positions,Vnbennemis); for (i = 0;i <= Vnbennemis;i++) SDL_BlitSurface (surfaces->Tennemi[i],NULL,surfaces->Pecran,&positions->Vpositionennemis[i]); @@ -70,6 +74,9 @@ void Fchangercurseurennemis (SURFACES *surfaces, POSITIONS *positions,int select void Fchangercurseurpersos (SURFACES *surfaces, POSITIONS *positions,int selection,PERSONNAGES persos[]) { + /* TODO undestand if this is needed or not */ + (void) persos; + SDL_BlitSurface (surfaces->Pfondjeu,&positions->Vpositioncurseurallies,surfaces->Pecran,&positions->Vpositioncurseurallies); SDL_Flip (surfaces->Pecran); SELECTION (0,ALLIE) @@ -213,6 +220,10 @@ void Fafficherdegats (SURFACES *surfaces, POSITIONS *positions, int degats,int c void Faffichersoins (SURFACES *surfaces, POSITIONS *positions, int degats,int clan, int cible,PERSONNAGES persos[]) { char chaine[10]; + + /* TODO understand if this is needed or not */ + (void) persos; + TTF_Font *police = NULL; SDL_Color fg = {80,255,80,0}; @@ -350,7 +361,7 @@ void Fblitterfond(SURFACES* surfaces) SDL_Flip(surfaces->Pecran); } -void Fcolourselection(SURFACES* surfaces, PERSONNAGES persos[],int Vtourallie,POSITIONS* positions) +void Fcolourselection(SURFACES* surfaces, PERSONNAGES persos[], int Vtourallie, POSITIONS* positions) { int x=0; int i; @@ -359,6 +370,12 @@ void Fcolourselection(SURFACES* surfaces, PERSONNAGES persos[],int Vtourallie,PO Uint32 pixel; Uint8 r,g,b,a; int ajout=30; + + /* TODO understand if these are needed or not */ + (void) persos; + (void) Vtourallie; + (void) positions; + for(i=0;i<3;i++) { tampon=0; @@ -145,6 +145,10 @@ void Fchoisirtypeennemis (PERSONNAGES persos[],SURFACES *surfaces,ENNEMIS ennemi { int moyenne=0; int i; + + /* TODO understand why this is needed */ + (void) surfaces; + for (i=0;i<3;i++) moyenne+=persos[i].nv; moyenne/=3; @@ -250,6 +250,10 @@ int Fcalculersoins(PERSONNAGES persos[],int *Vtourallie,int *min,ENNEMIS ennemis int max; int taux; + /* TODO understand why these variables were passed to the function */ + (void) ennemis; + (void) selection; + soins=persos[*Vtourallie].magie*20; taux=soins/4; max=soins+taux; @@ -13,6 +13,11 @@ int main (int argc, char *argv[]) srand (time(NULL)); SURFACES surfaces; POSITIONS positions; + + /* XXX argc and argv are required in some implementations of the SDL library */ + (void) argc; + (void) argv; + Finitialisersurfaces (&surfaces); if (SDL_Init (SDL_INIT_VIDEO) == -1) { diff --git a/menuchoixpersos.c b/menuchoixpersos.c index a137611..325eadc 100644 --- a/menuchoixpersos.c +++ b/menuchoixpersos.c @@ -9,8 +9,6 @@ void Fmenuchoixpersos (SURFACES *surfaces, POSITIONS *positions) { - - int nbpersos = 0; TTF_Font *police = NULL; int Vchoix = 0; SDL_Color vert; diff --git a/menuoptions.c b/menuoptions.c index 95da338..2f781ce 100644 --- a/menuoptions.c +++ b/menuoptions.c @@ -5,6 +5,9 @@ void Foptions (SURFACES *surfaces, POSITIONS *positions) { + /* TODO */ + (void) surfaces; + (void) positions; } diff --git a/prototypes.h b/prototypes.h index 4a75197..b6401b9 100644 --- a/prototypes.h +++ b/prototypes.h @@ -59,4 +59,6 @@ void Fchargersurfaces_map (SURFACES *surfaces,POSITIONS*positions); void Fblittermap (SURFACES*surfaces,POSITIONS*positions,int map[][11]); void Fdechargersurfaces_map(SURFACES*surfaces); +void Foptions(SURFACES *surface, POSITIONS *positions); + #endif |