-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathdata.h
180 lines (153 loc) · 3.74 KB
/
data.h
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
#ifndef DATA_H
#define DATA_H
#include "openbor.h"
typedef struct {
Script* script;
char* path;
char* name;
} s_script_and_path_and_name;
extern const s_script_and_path_and_name script_and_path_and_name[];
extern const int script_and_path_and_name_itemcount;
typedef struct {
int mp[11];
int hp[11];
int ld[11];
} s_color_tables;
extern s_color_tables color_tables;
extern s_barstatus loadingbarstatus;
extern s_barstatus lbarstatus;
extern s_barstatus olbarstatus;
extern s_barstatus mpbarstatus;
typedef struct {
int* target;
char* fn;
char ofsx;
char ofsy;
} s_special_sprite;
extern const int special_sprites_init_itemcount;
extern const s_special_sprite special_sprites_init[];
// -------dynamic animation indexes-------
typedef struct {
int *animdowns;
int *animups;
int *animbackwalks;
int *animwalks;
int *animidles;
int *animpains;
int *animdies;
int *animfalls;
int *animrises;
int *animriseattacks;
int *animblkpains;
int *animattacks;
int *animfollows;
int *animspecials;
} s_dynamic_animation_indexes;
typedef struct {
const int *animdowns;
const int *animups;
const int *animbackwalks;
const int *animwalks;
const int *animidles;
const int *animpains;
const int *animdies;
const int *animfalls;
const int *animrises;
const int *animriseattacks;
const int *animblkpains;
const int *animattacks;
const int *animfollows;
const int *animspecials;
} s_const_dynamic_animation_indexes;
typedef struct {
char animdowns;
char animups;
char animbackwalks;
char animwalks;
char animidles;
char animpains;
char animdies;
char animfalls;
char animrises;
char animriseattacks;
char animblkpains;
char animattacks;
char animfollows;
char animspecials;
} s_dynamic_animation_indexes_default_sizes;
extern s_dynamic_animation_indexes dyn_anims;
extern const s_dynamic_animation_indexes_default_sizes default_dyn_anims_sizes;
extern const s_const_dynamic_animation_indexes default_dyn_anims;
extern const int dyn_anim_itemcount;
typedef struct {
int max_downs;
int max_ups;
int max_backwalks;
int max_walks;
int max_idles;
int max_attack_types;
int max_freespecials;
int max_follows;
int max_attacks;
int max_animations;
} s_dyn_anim_custom_maxvalues;
extern const s_dyn_anim_custom_maxvalues dyn_anim_default_custom_maxvalues;
extern s_dyn_anim_custom_maxvalues dyn_anim_custom_maxvalues;
extern const s_const_dynamic_animation_indexes dyn_anim_custom_max_ptr;
// -----------------------------
typedef struct {
char obligatory;
char* path;
} s_font_init;
extern const s_font_init font_init[];
extern const int font_init_itemcount;
typedef enum {
VTC_VIDEO = 0,
VTC_SCENES,
VTC_BACKGROUNDS,
VTC_LEVELS,
VTC_MODELS,
VTC_COLOURDEPTH,
VTC_FORCEMODE,
VTC_MAX
} VIDEO_TXT_COMMANDS;
extern const char* video_txt_commands_strings[];
extern char** video_txt_commands_dest[];
extern const s_colors_rgb default_colors;
typedef struct {
char* moveup;
char* movedown;
char* moveleft;
char* moveright;
char* attack;
char* attack2;
char* attack3;
char* attack4;
char* jump;
char* special;
char* start;
char* screenshot;
} s_button_names;
typedef struct {
const char* moveup;
const char* movedown;
const char* moveleft;
const char* moveright;
const char* attack;
const char* attack2;
const char* attack3;
const char* attack4;
const char* jump;
const char* special;
const char* start;
const char* screenshot;
} s_button_names_const;
extern const s_button_names default_button_names;
extern const s_button_names_const config_button_names;
extern s_button_names buttonnames;
extern const s_savedata savedata_default;
extern const s_videomodes videomodes_init_data[];
extern const s_player_min_max_z_bgheight player_min_max_z_bgheight_init_data[];
extern const s_drawmethod plainmethod;
extern const s_attack emptyattack;
#endif