Remove duplicate date_to_str declaration
[neverball] / ball / demo.h
1 #ifndef DEMO_H
2 #define DEMO_H
3
4 #include <time.h>
5
6 #include "level.h"
7
8 /*---------------------------------------------------------------------------*/
9
10 struct demo
11 {
12     char   name[PATHMAX];     /* demo basename    */
13     char   filename[MAXSTR];  /* demo path        */
14
15     char   player[MAXNAM];
16     time_t date;
17
18     int    timer;
19     int    coins;
20     int    status;
21     int    mode;
22
23     char   shot[PATHMAX];   /* image filename */
24     char   file[PATHMAX];   /* level filename */
25
26     int    time;            /* time limit        */
27     int    goal;            /* coin limit        */
28     int    goal_e;          /* goal enabled flag */
29     int    score;           /* total coins       */
30     int    balls;           /* number of balls   */
31     int    times;           /* total time        */
32 };
33
34 /*---------------------------------------------------------------------------*/
35
36 #define MAXDEMO 256
37
38 int                demo_scan(void);
39 const char        *demo_pick(void);
40 const struct demo *demo_get(int);
41
42 int  demo_exists(const char *);
43
44 const char *demo_format_name(const char *fmt,
45                              const char *set,
46                              const char *level);
47
48 /*---------------------------------------------------------------------------*/
49
50 int  demo_play_init(const char *, const struct level *,
51                     int, int, int, int, int, int, int);
52 void demo_play_step(void);
53 void demo_play_stat(int, int, int);
54 void demo_play_stop(void);
55
56 int  demo_saved (void);
57 void demo_rename(const char *);
58
59 void demo_rename_player(const char *name, const char *player);
60
61 /*---------------------------------------------------------------------------*/
62
63 int  demo_replay_init(const char *, int *, int *, int *, int *, int *);
64 int  demo_replay_step(float);
65 void demo_replay_stop(int);
66 void demo_replay_dump_info(void);
67
68 const struct demo *curr_demo_replay(void);
69
70 /*---------------------------------------------------------------------------*/
71
72 #endif