10 /*---------------------------------------------------------------------------*/
14 char name[PATHMAX]; /* demo basename */
15 char filename[MAXSTR]; /* demo path */
25 char shot[PATHMAX]; /* image filename */
26 char file[PATHMAX]; /* level filename */
28 int time; /* time limit */
29 int goal; /* coin limit */
30 int goal_e; /* goal enabled flag */
31 int score; /* total coins */
32 int balls; /* number of balls */
33 int times; /* total time */
36 /*---------------------------------------------------------------------------*/
38 struct demo *demo_load(const char *);
39 void demo_free(struct demo *);
41 int demo_exists(const char *);
43 const char *demo_format_name(const char *fmt,
47 /*---------------------------------------------------------------------------*/
49 int demo_play_init(const char *, const struct level *,
50 int, int, int, int, int, int, int);
51 void demo_play_step(void);
52 void demo_play_stat(int, int, int);
53 void demo_play_stop(void);
55 int demo_saved (void);
56 void demo_rename(const char *);
58 void demo_rename_player(const char *name, const char *player);
60 /*---------------------------------------------------------------------------*/
62 int demo_replay_init(const char *, int *, int *, int *, int *, int *);
63 int demo_replay_step(float);
64 void demo_replay_stop(int);
66 const struct demo *curr_demo_replay(void);
68 /*---------------------------------------------------------------------------*/
70 fs_file demo_file(void);
72 /*---------------------------------------------------------------------------*/