extern long initialise(void);
extern int action(command_t command);
extern void state_change(obj_t, int);
-
+extern bool is_valid(struct game_t *valgame);
void bug(enum bugtype, const char *) __attribute__((__noreturn__));
if labels:
global statedefines
statedefines += "/* States for %s */\n" % item[0]
- for (j, label) in enumerate(labels):
- statedefines += "#define %s\t%d\n" % (label, j)
+ for (n, label) in enumerate(labels):
+ statedefines += "#define %s\t%d\n" % (label, n)
statedefines += "\n"
sounds_str = ""
if attr.get("sounds") == None:
return restore(fp);
}
-bool is_valid(struct game_t*);
-
int restore(FILE* fp)
{
/* Read and restore game state from file, assuming