// Gameplan extern Plan plan; // game plan - dynamic /* Resolution variables */ extern Resolution resolution; //x#include "../macros.h" //x#define MAX_NPERSO 20 //x#include "../sprites.h" /*--Structures--*/ /* moved to types.h P.K. typedef struct { int x; int y; }Coord; typedef struct { int type; Sprite *elem; int anim; int frame; int params[260]; // Structure simplifiée par rapport au jeu int nparams; int sol; int fixe; }Case; */ /* not needed P.K. const char legende[]="LÉGENDE : _ sol + mur # bloc T[case] téléportation[case de 0 à 240] O[case] bouton[idem] >[sens] flèche[0:haut, 1:bas, 2:gauche, 3:droite] =[direction] tunnel[0:, 1:<^>, 2:^v>, 3:<^v, 4:<^, 5:^>, 6:, 8:^v, 9:<>, 10:<^v>] * fontaine(régénération)\n"; */ //int NB_PERSO, VITESSE, REGEN, LFLAMMES, NBOMBES, REBOURS, BONUSFREQ; /* not needed anywhere else extern int NB_PERSO, VITESSE, REGEN, LFLAMMES, NBOMBES, REBOURS; //, BONUSFREQ; P.K. float bonus_freq; int pleinecran; extern Uint32 flags; //x char repertoire[256]; // P.K. moved to main.h /* not needed elsewhere char prefixeniv[256], prefixespr[256]; char niv[256]; //x Case pl[18][15]; //x Coord persopos[8]; Coord actif; Sprite *nived; Sprite *elemliste[50]; Sprite *nb[8]; char graphtype[256]; int decl; SDL_Rect tout, plateau, recdroite; SDL_Surface *ecran; Uint8 *clavier; int compteur; int encore; Case elemactif; int *paramsbuf, nparamsbuf; int aleat(int max); void erreur(char message[200], char param[20]); void animsplus(Sprite *sprite, int anim, int vitesse, int duree, int x, int y); void rscaseplus(int x, int y); void rdplateau(void); void blitsprit(Sprite *spr, int anim, int frame, int x, int y); void initliste(void); */