-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtemplate.h
More file actions
25 lines (20 loc) · 929 Bytes
/
template.h
File metadata and controls
25 lines (20 loc) · 929 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#ifndef TEMPLATE_H_INCLUDED
#define TEMPLATE_H_INCLUDED
#include "Aetoile.h"
typedef struct t_data
{
char** lab;
char* map;
int line;//coordones y du jouer (lignes)
int column;//coordones x du jouer (colonnes)
int energy;
int line_treas;
int column_treas;
}t_data;
t_case Start;// Position du depart
t_pos Treasure;// Coordonnees du Tresor
void update_lab(t_move move,t_data* data,int sizeX,int sizeY);// Fonction de mise à jour du labyrinthe
int move_player(t_data* data,t_move* move,int *jouer ,int sizeX,int sizeY,t_typeMove move_to_do);//Fonction de deplacement avec rand
t_typeMove* tab_moves(t_data data,t_pos start,t_pos treasure,int line,int column,int* found_path,int* path_index);//cette fonction retourne un tableau avec les mouvement à faire pour arriver au tresor
void print_laby2(t_data data,int sizeX,int sizeY);//fonction d'affichage du labyrinthe
#endif // TEMPLATE_H_INCLUDED