2022-12-01 23:45:25 +01:00
|
|
|
#include<stdio.h>
|
|
|
|
#include<stdlib.h>
|
|
|
|
#include<graph.h>
|
|
|
|
#include"../include/main.h"
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
zone zone;
|
2022-12-03 20:11:17 +01:00
|
|
|
int displayed, found, loaded, id;
|
2022-12-01 23:45:25 +01:00
|
|
|
char *file;
|
|
|
|
} card;
|
|
|
|
|
|
|
|
card create_card(int x, int y, int L, int H, char *file) {
|
|
|
|
zone zone = {x, y, L, H};
|
|
|
|
card carte = {zone, 0, 0, file};
|
|
|
|
DessinerRectangle(carte.zone.x, carte.zone.y, carte.zone.L, carte.zone.H);
|
|
|
|
return carte;
|
|
|
|
}
|