Commit 7ce406dc authored by Valentin MEUNIER's avatar Valentin MEUNIER
Browse files

ok

parent ea09c236
#include "colision.h"
int collision_N(int pos_x,int pos_y,int **tab,int taille_cell){
int colli=0;
if (!(tab[pos_x/taille_cell][pos_y/taille_cell]&FLAG_N)){
colli=1;
}
return colli;
}
int collision_S(int pos_x,int pos_y,int **tab,int taille_cell){
int colli=0;
if (!(tab[pos_x/taille_cell][pos_y/taille_cell]&FLAG_S)){
colli=1;
}
return colli;
}
int collision_O(int pos_x,int pos_y,int **tab,int taille_cell){
int colli=0;
if (!(tab[pos_x/taille_cell][pos_y/taille_cell]&FLAG_O)){
colli=1;
}
return colli;
}
int collision_E(int pos_x,int pos_y,int **tab,int taille_cell){
int colli=0;
if (!(tab[pos_x/taille_cell][pos_y/taille_cell]&FLAG_E)){
colli=1;
}
return colli;
}
#ifndef _gard_coll_
#define _gard_coll_
#include "kruskal.h"
#include "main.h"
int collision_N(int pos_x,int pos_y,int **tab,int taille_cell);
int collision_S(int pos_x,int pos_y,int **tab,int taille_cell);
int collision_O(int pos_x,int pos_y,int **tab,int taille_cell);
int collision_E(int pos_x,int pos_y,int **tab,int taille_cell);
#endif
......@@ -4,9 +4,9 @@
#include "tas.h"
#include "graph_aretes_tab.h"
#define N 93
#define P 95
#define N 30
#define P 45
#define TAILLE (N*P)
graph_t * kruskal(graph_t * graph,int noeuds, int nb_aretes,int * cours,double p);
graph_t * Fisher(graph_t * graph, int nb_aretes);
......
File added
File added
File added
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment