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 26 27 28 29 30
|
#ifndef _LOADLV_H_
#define _LOADLV_H_
#include <SDL/SDL.h>
#include <stdio.h>
#include <string.h>
#include <ctype.h>
#include <errno.h>
typedef struct _levelentry {
Uint32 time;
char command;
char para1[64];
int para2;
int done;
struct _levelentry *next;
} LEVELENTRY;
#include "support.h"
int loadlv(int level);
char *loadlv_getint(char *c, int *nr);
char *loadlv_getstr(char *c, char *buffer);
void loadlv_serror(char *filename, int line_nr);
void loadlv_addentry(Uint32 time, char command, char *para1, int para2);
void loadlv_freeentry();
#endif
|