fork/slippc

git clone https://git.julia.blue/fork/slippc

Patrick CrainMerging cbartsch's changes into testing branch70d249b

compression
41.6 KiB1487 linesraw
1#ifndef ENUMS_H_
2#define ENUMS_H_
3
4#include <string>
5
6//Frame count starts at -123, so there are 123 startup frames
7const int LOAD_FRAME     = -123;
8//First playable frame is -39, according to Fizzi's parser
9const int PLAYABLE_FRAME = -39;
10//First actionable frame of the match (0-indexed, assuming frame 0 == internal frame -123)
11const int FIRST_FRAME    = (PLAYABLE_FRAME-LOAD_FRAME);
12
13// Info
14//   https://docs.google.com/spreadsheets/d/1JX2w-r2fuvWuNgGb6D3Cs4wHQKLFegZe2jhbBuIhCG8/edit#gid=20
15//   https://docs.google.com/spreadsheets/d/1JX2w-r2fuvWuNgGb6D3Cs4wHQKLFegZe2jhbBuIhCG8/edit#gid=13
16//   https://smashboards.com/threads/official-ask-anyone-frame-things-thread.313889/page-20#post-18643652
17
18//.slp file event payloads
19namespace Event {
20  enum {
21    EV_PAYLOADS = 0x35,
22    GAME_START  = 0x36,
23    PRE_FRAME   = 0x37,
24    POST_FRAME  = 0x38,
25    GAME_END    = 0x39,
26    FRAME_START = 0x3A,
27    ITEM_UPDATE = 0x3B,
28    BOOKEND     = 0x3C,
29    GECKO_LIST  = 0x3D,
30    SPLIT_MSG   = 0x10,
31    __LAST      = 0xFF
32  };
33
34  const std::string name[__LAST] = {
35    "EV_PAYLOADS",
36    "GAME_START",
37    "PRE_FRAME",
38    "POST_FRAME",
39    "GAME_END"
40  };
41}
42
43//Directions (for blastzones, stick positions, momentum, or whatever else)
44namespace Dir {
45  enum {
46    NEUT      = 0,
47    UP        = 1,
48    RIGHT     = 2,
49    DOWN      = 3,
50    LEFT      = 4,
51    UPRIGHT   = 5,
52    UPLEFT    = 6,
53    DOWNRIGHT = 7,
54    DOWNLEFT  = 8,
55    __LAST    = 9
56  };
57
58  const std::string name[__LAST] = {
59    "NEUT",
60    "UP",
61    "RIGHT",
62    "DOWN",
63    "LEFT",
64    "UPRIGHT",
65    "UPLEFT",
66    "DOWNRIGHT",
67    "DOWNLEFT"
68  };
69}
70
71//Various types of canceling for moves
72//TODO: technically some of these can be combined (e.g., DJC and EC); implement later
73namespace Cancel {
74    enum {
75        _NONE  = 0,
76        L      = 1, // L-cancel
77        AUTO   = 2, // Autocancel
78        TEETER = 3, // Teeter cancel
79        EDGE   = 4, // Edge / ledge cancel
80        JUMP   = 5, // Jump cancel (for grabs / smashes)
81        DJ     = 6, // Double jump cancel
82        FLOAT  = 7, // Float cancel
83        __LAST = 8, //
84    };
85
86    const std::string name[__LAST] = {
87        "",
88        "L-canceled",
89        "Autocanceled",
90        "Teeter-canceled",
91        "Edge-canceled",
92        "Jump-canceled",
93        "Double-jump-canceled",
94        "Float-canceled",
95    };
96
97    const std::string shortname[__LAST] = {
98        "",
99        "LC",
100        "AC",
101        "TC",
102        "EC",
103        "JC",
104        "DJC",
105        "FC",
106    };
107}
108
109//Move IDs (from Fizzi's node.js parser -> moves.js)
110namespace Move {
111  enum {
112    _NONE  = 0,
113    MISC   = 1,
114    JAB    = 2,
115    JAB2   = 3,
116    JAB3   = 4,
117    RJAB   = 5,
118    DASH   = 6,
119    FTILT  = 7,
120    UTILT  = 8,
121    DTILT  = 9,
122    FSMASH = 10,
123    USMASH = 11,
124    DSMASH = 12,
125    NAIR   = 13,
126    FAIR   = 14,
127    BAIR   = 15,
128    UAIR   = 16,
129    DAIR   = 17,
130    NSPEC  = 18,
131    SSPEC  = 19,
132    USPEC  = 20,
133    DSPEC  = 21,
134    //...unused 22-49
135    FGETUP = 50,
136    SGETUP = 51,
137    PUMMEL = 52,
138    FTHROW = 53,
139    BTHROW = 54,
140    UTHROW = 55,
141    DTHROW = 56,
142    //...unused 57-60
143    SEDGE  = 61,
144    FEDGE  = 62,
145    //...unknown 63 onwards
146    BUBBLE = 255, //Bubble damage
147    __LAST = 256,
148  };
149
150  const std::string name[__LAST] = {
151    "0",
152    "Miscellaneous", //Fizzi: "This includes all thrown items, zair, luigi's taunt, samus bombs, etc"
153    "Jab 1",
154    "Jab 2",
155    "Jab 3",
156    "Rapid Jab",
157    "Dash Attack",
158    "Forward Tilt",
159    "Up Tilt",
160    "Down Tilt",
161    "Forward Smash",
162    "Up Smash",
163    "Down Smash",
164    "Neutral Air",
165    "Forward Air",
166    "Back Air",
167    "Up Air",
168    "Down Air",
169    "Neutral Special",
170    "Side Special",
171    "Up Special",
172    "Down Special",                                    //21
173    "22","23","24","25","26","27","28","29","30","31",
174    "32","33","34","35","36","37","38","39","40","41",
175    "42","43","44","45","46","47","48","49",
176    "Fast Getup",                                      //50
177    "Slow Getup",
178    "Pummel",
179    "Forward Throw",
180    "Back Throw",
181    "Up Throw",
182    "Down Throw",                                      //56
183    "57","58","59","60",
184    "Slow Edge",                                       //61
185    "Fast Edge",                                       //62
186    "63","64","65","6","67","68","69","70",
187    "71","72","73","74","75","76","77","78","79","80",
188    "81","82","83","84","85","86","87","88","89","90",
189    "91","92","93","94","95","96","97","98","99","100",
190    "101","102","103","104","105","106","107","108","109","110",
191    "111","112","113","114","115","116","117","118","119","120",
192    "121","122","123","124","125","126","127","128","129","130",
193    "131","132","133","134","135","136","137","138","139","140",
194    "141","142","143","144","145","146","147","148","149","150",
195    "151","152","153","154","155","156","157","158","159","160",
196    "161","162","163","164","165","166","167","168","169","170",
197    "171","172","173","174","175","176","177","178","179","180",
198    "181","182","183","184","185","186","187","188","189","190",
199    "191","192","193","194","195","196","197","198","199","200",
200    "201","202","203","204","205","206","207","208","209","210",
201    "211","212","213","214","215","216","217","218","219","220",
202    "221","222","223","224","225","226","227","228","229","230",
203    "231","232","233","234","235","236","237","238","239","240",
204    "241","242","243","244","245","246","247","248","249","250",
205    "251","252","253","254",
206    "[Bubble]",
207  };
208
209  const std::string shortname[__LAST] = {
210    "0",
211    "Misc.", //Fizzi: "This includes all thrown items, zair, luigi's taunt, samus bombs, etc"
212    "Jab1",
213    "Jab2",
214    "Jab3",
215    "JabM",
216    "Dash",
217    "Ftilt",
218    "Utilt",
219    "Dtilt",
220    "Fsmash",
221    "Usmash",
222    "Dsmash",
223    "Nair",
224    "Fair",
225    "Bair",
226    "Uair",
227    "Dair",
228    "NeutB",
229    "SideB",
230    "UpB",
231    "DownB",                                    //21
232    "22","23","24","25","26","27","28","29","30","31",
233    "32","33","34","35","36","37","38","39","40","41",
234    "42","43","44","45","46","47","48","49",
235    "GetupF",                                      //50
236    "GetupS",
237    "Pummel",
238    "Fthrow",
239    "Bthrow",
240    "Uthrow",
241    "Dthrow",                                      //56
242    "57","58","59","60",
243    "LedgeS",                                       //61
244    "LedgeF",                                       //62
245    "63","64","65","6","67","68","69","70",
246    "71","72","73","74","75","76","77","78","79","80",
247    "81","82","83","84","85","86","87","88","89","90",
248    "91","92","93","94","95","96","97","98","99","100",
249    "101","102","103","104","105","106","107","108","109","110",
250    "111","112","113","114","115","116","117","118","119","120",
251    "121","122","123","124","125","126","127","128","129","130",
252    "131","132","133","134","135","136","137","138","139","140",
253    "141","142","143","144","145","146","147","148","149","150",
254    "151","152","153","154","155","156","157","158","159","160",
255    "161","162","163","164","165","166","167","168","169","170",
256    "171","172","173","174","175","176","177","178","179","180",
257    "181","182","183","184","185","186","187","188","189","190",
258    "191","192","193","194","195","196","197","198","199","200",
259    "201","202","203","204","205","206","207","208","209","210",
260    "211","212","213","214","215","216","217","218","219","220",
261    "221","222","223","224","225","226","227","228","229","230",
262    "231","232","233","234","235","236","237","238","239","240",
263    "241","242","243","244","245","246","247","248","249","250",
264    "251","252","253","254",
265    "(o)",
266  };
267}
268
269//External character IDs
270namespace CharExt {
271  enum {
272    FALCON  = 0X00,
273    KONG    = 0X01,
274    FOX     = 0X02,
275    WATCH   = 0X03,
276    KIRBY   = 0X04,
277    BOWSER  = 0X05,
278    LINK    = 0X06,
279    LUIGI   = 0X07,
280    MARIO   = 0X08,
281    MARTH   = 0X09,
282    MEWTWO  = 0X0A,
283    NESS    = 0X0B,
284    PEACH   = 0X0C,
285    PIKACHU = 0X0D,
286    CLIMBER = 0X0E,
287    JIGGLY  = 0X0F,
288    SAMUS   = 0X10,
289    YOSHI   = 0X11,
290    ZELDA   = 0X12,
291    SHEIK   = 0X13,
292    FALCO   = 0X14,
293    YOUNG   = 0X15,
294    DOCTOR  = 0X16,
295    ROY     = 0X17,
296    PICHU   = 0X18,
297    GANON   = 0X19,
298    MASTER  = 0X1A,
299    MALE    = 0X1B,
300    FEMALE  = 0X1C,
301    GIGA    = 0X1D,
302    CRAZY   = 0X1E,
303    SAND    = 0X1F,
304    POPO    = 0X20,
305    USER    = 0X21,
306    __LAST  = 0X22,
307  };
308
309  const std::string name[__LAST] = {
310    "FALCON",
311    "KONG",
312    "FOX",
313    "WATCH",
314    "KIRBY",
315    "BOWSER",
316    "LINK",
317    "LUIGI",
318    "MARIO",
319    "MARTH",
320    "MEWTWO",
321    "NESS",
322    "PEACH",
323    "PIKACHU",
324    "CLIMBER",
325    "JIGGLY",
326    "SAMUS",
327    "YOSHI",
328    "ZELDA",
329    "SHEIK",
330    "FALCO",
331    "YOUNG",
332    "DOCTOR",
333    "ROY",
334    "PICHU",
335    "GANON",
336    "MASTER",
337    "MALE",
338    "FEMALE",
339    "GIGA",
340    "CRAZY",
341    "SAND",
342    "POPO",
343    "USER"
344  };
345
346  //External character special move action state IDs
347  //  (used for tracking when special moves put out hitboxes)
348  const int special[__LAST][70] = {
349    //FALCON: falcon punch (g/a), raptor boost (g/a), falcon dive (g/a), falcon kick (g/a)
350    {0x015B,0x015C,0x015D,0x015F,0x0161,0x0162,0x0165,0x0167},
351    //KONG: punch (early/full, g/a), headbutt (g/a), spinning (g/a), slap
352    {0x0174,0x0175,0x0179,0x017A,0x017B,0x017C,0x017D,0x017E,0x017F},
353    //FOX: blaster (g/a), illusion (g/a), firefox (g/a), shine(g/a)
354    {0x0155,0x0158,0x015B,0x015F,0x0161,0x0162,0x0168,0x016D},
355    //WATCH: jab, jab2, jab3, dtilt, fsmash, nair, bair, upair, chef (g/a), judgment (1-9,g/a), fire (g/a), oil (g/a)
356    {0x0155,0x0156,0x0157,0x0159,0x015A,0x015B,0x015C,0x015D,0x0161,0x0162,0x0163,0x0164,0x0165,0x0166,0x0167,0x0168,0x0169,0x016A,0x016B,0x016C,0x016D,0x016E,0x016F,0x0170,0x0171,0x0172,0x0173,0x0174,0x0175,0x0176,0x0179,0x017C},
357    //KIRBY: dashattack (g/a), swallow (g/a), hammer (g/a), cutter (g/a), stone (g/a), mario (g/a), link (g/a), samus (g/a), yoshi (g/a), fox (g/a), pikachu (g/a), luigi (g/a), falcon (g/a), ness (g/a), bowser (g/a), peach (g/a), ice climbers (g/a), dk (early/full,g/a), zelda (g/a), sheik (g/a), jigglypuff (g/a), marth (early/full,g/a), mewtwo (g/a), g&w (g/a), doc (g/a), younglink (g/a), falco (g/a), pichu (g/a), ganon (g/a), roy (early/full,g/a)
358    {0x015F,0x0160,0x0161,0x0173,0x017F,0x0180,0x0181,0x0185,0x0189,0x018C,0x018F,0x0190,0x0193,0x0196,0x019A,0x019C,0x019D,0x01A2,0x01A7,0x01AA,0x01AD,0x01AE,0x01AF,0x01B0,0x01B1,0x01B2,0x01B3,0x01B7,0x01BB,0x01BE,0x01C1,0x01C3,0x01C5,0x01C6,0x01CA,0x01CB,0x01CF,0x01D0,0x01D1,0x01D2,0x01D6,0x01DA,0x01DF,0x01E7,0x01EE,0x01EF,0x01F2,0x01F3,0x01F8,0x01FD,0x01FE,0x01FF,0x0200,0x0201,0x0204,0x0207,0x0208,0x020B,0x020E,0x020F,0x0210,0x0211,0x0214,0x0215,0x0218,0x0219},
359    //BOWSER: fire (g/a), koopa klaw (pummel/fthrow/bthrow,g/a), whirling fortress (g/a), bowser bomb
360    {0x0155,0x0158,0x015B,0x015D,0x015F,0x0160,0x0161,0x0163,0x0165,0x0166,0x0167,0x0168,0x016A},
361    //LINK: fsmash2, bow (g/a), boomerang (g/a), spin attack (g/a), bomb (g/a), zair
362    {0x0155,0x015A,0x015D,0x015E,0x0161,0x0164,0x0165,0x0166,0x0167,0x0168},
363    //LUIGI: fireball (g/a), green missile (normal/misfire,g/a), super jump punch (g/a), cyclone (g/a)
364    {0x0155,0x0156,0x015B,0x015C,0x0161,0x0162,0x0163,0x0164,0x0165,0x0166},
365    //MARIO: fireball (g/a), cape (g/a), super jump punch (g/a), tornado (g/a)
366    {0x0157,0x0158,0x0159,0x015A,0x015B,0x015C,0x015D,0x015E},
367    //MARTH: shield breaker (early/full,g/a), dancing blade (all variations, g/a), dolphin slash (g/a), counter (g/a)
368    {0x0157,0x0158,0x015B,0x015C,0x015D,0x015E,0x015F,0x0160,0x0161,0x0162,0x0163,0x0164,0x0165,0x0166,0x0167,0x0168,0x0169,0x016A,0x016B,0x016C,0x016D,0x016E,0x016F,0x0170,0x0171,0x0173},
369    //MEWTWO: shadow ball (g/a), confusion (g/a), disable (g/a),
370    {0x0159,0x015E,0x015F,0x0160,0x0167,0x0168},
371    //NESS: fsmash, upsmash, dsmash, PK Flash (g/a), PK Fire (g/a), PK Thunder (1/2,g/a)
372    {0x0155,0x0156,0x0159,0x015C,0x0160,0x0164,0x0165,0x0166,0x0169,0x016B,0x016D},
373    //PEACH: float nair/fair/bair/upair/dair, fsmash golf/pan/racket, veggie (g/a), bomber (g/a), parasol (g/a), toad (g/a)
374    {0x0158,0x0159,0x015A,0x015B,0x015C,0x015D,0x015E,0x015F,0x0160,0x0161,0x0162,0x0165,0x0169,0x016B,0x016F,0x016F},
375    //PIKACHU: jolt (g/a), skull bash (g/a), quick attack (g/a), thunder (g/a)
376    {0x0155,0x0156,0x015B,0x0160,0x0162,0x0165,0x0167,0x016B},
377    //CLIMBER: ice shot (g/a), popo hammer (solo/duo,g/a), belay (g/a), blizzard (g/a), nana hammer (g/a)
378    {0x0155,0x0156,0x0157,0x0158,0x0159,0x015A,0x015C,0x0161,0x0165,0x0166,0x0167,0x0168},
379    //JIGGLY: rollout (g/a), pound (g/a), rest (g/a,l/r)
380    {0x015E,0x0166,0x016B,0x016C,0x0171,0x0172,0x0173,0x0174},
381    //SAMUS: charge shot (g/a), missile (regular/smash,g/a), bomb (g/a), zair
382    {0x015A,0x015C,0x015D,0x015E,0x015F,0x0160,0x0161,0x0162,0x0163,0x0164,0x0165},
383    //YOSHI: egg lay (g/a), egg roll (g/a), egg throw (g/a), bomb
384    {0x015A,0x015F,0x0164,0x0168,0x016C,0x016D,0x0170},
385    //ZELDA: nayru's (g/a), din's (g/a), farore's (g/a)
386    {0x0155,0x0156,0x0157,0x015A,0x015D,0x0160},
387    //SHEIK: needles (g/a), chain (g/a), vanish (g/a)
388    {0x0158,0x015C,0x015D,0x0160,0x0163,0x0166},
389    //FALCO: blaster (g/a), phantasm (g/a), firebird (g/a), shine (g/a)
390    {0x0155,0x0158,0x015B,0x015E,0x0161,0x0162,0x0168,0x016D},
391    //YOUNG: fsmash 2, bow (g/a), boomerang (g/a), spin attack (g/a), bomb (g/a), zair
392    {0x0155,0x015A,0x015D,0x015E,0x0161,0x0164,0x0165,0x0166,0x0167,0x0168},
393    //DOCTOR: pill (g/a), cape (g/a), super jump punch (g/a), tornado (g/a)
394    {0x0157,0x0158,0x0159,0x015A,0x015B,0x015C,0x015D,0x015E},
395    //ROY: flare blade (early/full,g/a), double edge dance (all variations, g/a), blazer (g/a), counter (g/a)
396    {0x0157,0x0158,0x015B,0x015C,0x015D,0x015E,0x015F,0x0160,0x0161,0x0162,0x0163,0x0164,0x0165,0x0166,0x0167,0x0168,0x0169,0x016A,0x016B,0x016C,0x016D,0x016E,0x016F,0x0170,0x0171,0x0173},
397    //PICHU: jolt (g/a), skull bash (g/a), agility (g/a), thunder (g/a)
398    {0x0155,0x0156,0x015B,0x0160,0x0162,0x0165,0x0167,0x016B},
399    //GANON: warlock punch (g/a), gerudo dragon (g/a), dark dive (g/a), wizard's foot (g/a)
400    {0x015B,0x015C,0x015D,0x015F,0x0161,0x0162,0x0165,0x0167},
401    //MASTER
402    {},
403    //MALE
404    {},
405    //FEMALE
406    {},
407    //GIGA
408    {},
409    //CRAZY
410    {},
411    //SAND
412    {},
413    //POPO
414    {},
415    //USER
416    {}
417  };
418}
419
420//Internal character IDs
421namespace CharInt {
422  enum {
423    MARIO   = 0X00,
424    FOX     = 0X01,
425    FALCON  = 0X02,
426    KONG    = 0X03,
427    KIRBY   = 0X04,
428    BOWSER  = 0X05,
429    LINK    = 0X06,
430    SHEIK   = 0X07,
431    NESS    = 0X08,
432    PEACH   = 0X09,
433    POPO    = 0X0A,
434    NANA    = 0X0B,
435    PIKACHU = 0X0C,
436    SAMUS   = 0X0D,
437    YOSHI   = 0X0E,
438    JIGGLY  = 0X0F,
439    MEWTWO  = 0X10,
440    LUIGI   = 0X11,
441    MARTH   = 0X12,
442    ZELDA   = 0X13,
443    YOUNG   = 0X14,
444    DOCTOR  = 0X15,
445    FALCO   = 0X16,
446    PICHU   = 0X17,
447    WATCH   = 0X18,
448    GANON   = 0X19,
449    ROY     = 0X1A,
450    _NONE1  = 0X1B,
451    _NONE2  = 0X1C,
452    MALE    = 0X1D,
453    FEMALE  = 0X1E,
454    GIGA    = 0X1F,
455    SANDBAG = 0X20,
456    __LAST  = 0X21
457  };
458
459  const std::string name[__LAST] = {
460    "MARIO",
461    "FOX",
462    "FALCON",
463    "KONG",
464    "KIRBY",
465    "BOWSER",
466    "LINK",
467    "SHEIK",
468    "NESS",
469    "PEACH",
470    "POPO",
471    "NANA",
472    "PIKACHU",
473    "SAMUS",
474    "YOSHI",
475    "JIGGLY",
476    "MEWTWO",
477    "LUIGI",
478    "MARTH",
479    "ZELDA",
480    "YOUNG",
481    "DOCTOR",
482    "FALCO",
483    "PICHU",
484    "WATCH",
485    "GANON",
486    "ROY",
487    "_NONE1",
488    "_NONE2",
489    "MALE",
490    "FEMALE",
491    "GIGA",
492    "SANDBAG"
493  };
494}
495
496//Stage IDs
497namespace Stage {
498  enum {
499    DUMMY     = 0X00,
500    TEST      = 0X01,
501    IZUMI     = 0X02,
502    PSTADIUM  = 0X03,
503    CASTLE    = 0X04,
504    KONGO     = 0X05,
505    ZEBES     = 0X06,
506    CORNERIA  = 0X07,
507    STORY     = 0X08,
508    ONETT     = 0X09,
509    MUTECITY  = 0X0A,
510    RCRUISE   = 0X0B,
511    GARDEN    = 0X0C,
512    GREATBAY  = 0X0D,
513    SHRINE    = 0X0E,
514    KRAID     = 0X0F,
515    YOSTER    = 0X10,
516    GREENS    = 0X11,
517    FOURSIDE  = 0X12,
518    INISHIE1  = 0X13,
519    INISHIE2  = 0X14,
520    AKANEIA   = 0X15,
521    VENOM     = 0X16,
522    PURA      = 0X17,
523    BIGBLUE   = 0X18,
524    ICEMT     = 0X19,
525    ICETOP    = 0X1A,
526    FLATZONE  = 0X1B,
527    OLD_PPP   = 0X1C,
528    OLD_YOSH  = 0X1D,
529    OLD_KONG  = 0X1E,
530    BATTLE    = 0X1F,
531    LAST      = 0X20,
532    __LAST    = 0X21
533  };
534
535  const std::string name[__LAST] = {
536    "DUMMY"   ,
537    "TEST"    ,
538    "IZUMI"   ,
539    "PSTADIUM",
540    "CASTLE"  ,
541    "KONGO"   ,
542    "ZEBES"   ,
543    "CORNERIA",
544    "STORY"   ,
545    "ONETT"   ,
546    "MUTECITY",
547    "RCRUISE" ,
548    "GARDEN"  ,
549    "GREATBAY",
550    "SHRINE"  ,
551    "KRAID"   ,
552    "YOSTER"  ,
553    "GREENS"  ,
554    "FOURSIDE",
555    "INISHIE1",
556    "INISHIE2",
557    "AKANEIA" ,
558    "VENOM"   ,
559    "PURA"    ,
560    "BIGBLUE" ,
561    "ICEMT"   ,
562    "ICETOP"  ,
563    "FLATZONE",
564    "OLD PPP" ,
565    "OLD YOSH",
566    "OLD KONG",
567    "BATTLE"  ,
568    "LAST"
569  };
570
571  //X positions of right ledges for each tournament legal stage
572  //  Left ledges are symmetrical, so we can just negate those
573  //From: https://smashboards.com/threads/official-ask-anyone-frame-things-thread.313889/page-20#post-18643652
574  const float ledge[__LAST] = {
575        0.0f, //DUMMY
576        0.0f, //TEST
577      63.35f, //FOUNTAIN
578      87.75f, //STADIUM
579        0.0f, //CASTLE
580        0.0f, //JUNGLE
581        0.0f, //BRINSTAR
582        0.0f, //CORNERIA
583       56.0f, //STORY
584        0.0f, //ONETT
585        0.0f, //MUTE
586        0.0f, //RAINBOW
587        0.0f, //JAPES
588        0.0f, //BAY
589        0.0f, //TEMPLE
590        0.0f, //DEPTHS
591        0.0f, //ISLAND
592        0.0f, //GREENS
593        0.0f, //FOURSIDE
594        0.0f, //KINGDOM1
595        0.0f, //KINGDOM2
596        0.0f, //AKANEIA
597        0.0f, //VENOM
598        0.0f, //FLOATS
599        0.0f, //_NONE1
600        0.0f, //_NONE2
601        0.0f, //ICETOP
602        0.0f, //FLATZONE
603      77.27f, //DREAMLAND
604        0.0f, //ISLAND64
605        0.0f, //JUNGLE64
606       68.4f, //BATTLE
607    85.5606f  //FINAL
608  };
609
610  //Y positions of top platforms for each tournament legal stage
611  //From: https://smashboards.com/threads/official-ask-anyone-frame-things-thread.313889/page-20#post-18643652
612  const float topplat[__LAST] = {
613        0.0f, //DUMMY
614        0.0f, //TEST
615      42.75f, //FOUNTAIN
616        0.0f, //STADIUM
617        0.0f, //CASTLE
618        0.0f, //JUNGLE
619        0.0f, //BRINSTAR
620        0.0f, //CORNERIA
621       42.0f, //STORY
622        0.0f, //ONETT
623        0.0f, //MUTE
624        0.0f, //RAINBOW
625        0.0f, //JAPES
626        0.0f, //BAY
627        0.0f, //TEMPLE
628        0.0f, //DEPTHS
629        0.0f, //ISLAND
630        0.0f, //GREENS
631        0.0f, //FOURSIDE
632        0.0f, //KINGDOM1
633        0.0f, //KINGDOM2
634        0.0f, //AKANEIA
635        0.0f, //VENOM
636        0.0f, //FLOATS
637        0.0f, //_NONE1
638        0.0f, //_NONE2
639        0.0f, //ICETOP
640        0.0f, //FLATZONE
641    51.4264f, //DREAMLAND
642        0.0f, //ISLAND64
643        0.0f, //JUNGLE64
644       54.4f, //BATTLE
645        0.0f  //FINAL
646  };
647}
648
649//Action state IDs
650namespace Action {
651  enum {
652    DeadDown                = 0x0000,
653    DeadLeft                = 0x0001,
654    DeadRight               = 0x0002,
655    DeadUp                  = 0x0003,
656    DeadUpStar              = 0x0004,
657    DeadUpStarIce           = 0x0005,
658    _NONE1                  = 0x0006,
659    DeadUpFallHitCamera     = 0x0007,
660    DeadUpFallHitCameraFlat = 0x0008,
661    DeadUpFallIce           = 0x0009,
662    DeadUpFallHitCameraIce  = 0x000A,
663    Sleep                   = 0x000B,
664    Rebirth                 = 0x000C,
665    RebirthWait             = 0x000D,
666    Wait                    = 0x000E,
667    WalkSlow                = 0x000F,
668    WalkMiddle              = 0x0010,
669    WalkFast                = 0x0011,
670    Turn                    = 0x0012,
671    TurnRun                 = 0x0013,
672    Dash                    = 0x0014,
673    Run                     = 0x0015,
674    RunDirect               = 0x0016,
675    RunBrake                = 0x0017,
676    KneeBend                = 0x0018,
677    JumpF                   = 0x0019,
678    JumpB                   = 0x001A,
679    JumpAerialF             = 0x001B,
680    JumpAerialB             = 0x001C,
681    Fall                    = 0x001D,
682    FallF                   = 0x001E,
683    FallB                   = 0x001F,
684    FallAerial              = 0x0020,
685    FallAerialF             = 0x0021,
686    FallAerialB             = 0x0022,
687    FallSpecial             = 0x0023,
688    FallSpecialF            = 0x0024,
689    FallSpecialB            = 0x0025,
690    DamageFall              = 0x0026,
691    Squat                   = 0x0027,
692    SquatWait               = 0x0028,
693    SquatRv                 = 0x0029,
694    Landing                 = 0x002A,
695    LandingFallSpecial      = 0x002B,
696    Attack11                = 0x002C,
697    Attack12                = 0x002D,
698    Attack13                = 0x002E,
699    Attack100Start          = 0x002F,
700    Attack100Loop           = 0x0030,
701    Attack100End            = 0x0031,
702    AttackDash              = 0x0032,
703    AttackS3Hi              = 0x0033,
704    AttackS3HiS             = 0x0034,
705    AttackS3S               = 0x0035,
706    AttackS3LwS             = 0x0036,
707    AttackS3Lw              = 0x0037,
708    AttackHi3               = 0x0038,
709    AttackLw3               = 0x0039,
710    AttackS4Hi              = 0x003A,
711    AttackS4HiS             = 0x003B,
712    AttackS4S               = 0x003C,
713    AttackS4LwS             = 0x003D,
714    AttackS4Lw              = 0x003E,
715    AttackHi4               = 0x003F,
716    AttackLw4               = 0x0040,
717    AttackAirN              = 0x0041,
718    AttackAirF              = 0x0042,
719    AttackAirB              = 0x0043,
720    AttackAirHi             = 0x0044,
721    AttackAirLw             = 0x0045,
722    LandingAirN             = 0x0046,
723    LandingAirF             = 0x0047,
724    LandingAirB             = 0x0048,
725    LandingAirHi            = 0x0049,
726    LandingAirLw            = 0x004A,
727    DamageHi1               = 0x004B,
728    DamageHi2               = 0x004C,
729    DamageHi3               = 0x004D,
730    DamageN1                = 0x004E,
731    DamageN2                = 0x004F,
732    DamageN3                = 0x0050,
733    DamageLw1               = 0x0051,
734    DamageLw2               = 0x0052,
735    DamageLw3               = 0x0053,
736    DamageAir1              = 0x0054,
737    DamageAir2              = 0x0055,
738    DamageAir3              = 0x0056,
739    DamageFlyHi             = 0x0057,
740    DamageFlyN              = 0x0058,
741    DamageFlyLw             = 0x0059,
742    DamageFlyTop            = 0x005A,
743    DamageFlyRoll           = 0x005B,
744    LightGet                = 0x005C,
745    HeavyGet                = 0x005D,
746    LightThrowF             = 0x005E,
747    LightThrowB             = 0x005F,
748    LightThrowHi            = 0x0060,
749    LightThrowLw            = 0x0061,
750    LightThrowDash          = 0x0062,
751    LightThrowDrop          = 0x0063,
752    LightThrowAirF          = 0x0064,
753    LightThrowAirB          = 0x0065,
754    LightThrowAirHi         = 0x0066,
755    LightThrowAirLw         = 0x0067,
756    HeavyThrowF             = 0x0068,
757    HeavyThrowB             = 0x0069,
758    HeavyThrowHi            = 0x006A,
759    HeavyThrowLw            = 0x006B,
760    LightThrowF4            = 0x006C,
761    LightThrowB4            = 0x006D,
762    LightThrowHi4           = 0x006E,
763    LightThrowLw4           = 0x006F,
764    LightThrowAirF4         = 0x0070,
765    LightThrowAirB4         = 0x0071,
766    LightThrowAirHi4        = 0x0072,
767    LightThrowAirLw4        = 0x0073,
768    HeavyThrowF4            = 0x0074,
769    HeavyThrowB4            = 0x0075,
770    HeavyThrowHi4           = 0x0076,
771    HeavyThrowLw4           = 0x0077,
772    SwordSwing1             = 0x0078,
773    SwordSwing3             = 0x0079,
774    SwordSwing4             = 0x007A,
775    SwordSwingDash          = 0x007B,
776    BatSwing1               = 0x007C,
777    BatSwing3               = 0x007D,
778    BatSwing4               = 0x007E,
779    BatSwingDash            = 0x007F,
780    ParasolSwing1           = 0x0080,
781    ParasolSwing3           = 0x0081,
782    ParasolSwing4           = 0x0082,
783    ParasolSwingDash        = 0x0083,
784    HarisenSwing1           = 0x0084,
785    HarisenSwing3           = 0x0085,
786    HarisenSwing4           = 0x0086,
787    HarisenSwingDash        = 0x0087,
788    StarRodSwing1           = 0x0088,
789    StarRodSwing3           = 0x0089,
790    StarRodSwing4           = 0x008A,
791    StarRodSwingDash        = 0x008B,
792    LipStickSwing1          = 0x008C,
793    LipStickSwing3          = 0x008D,
794    LipStickSwing4          = 0x008E,
795    LipStickSwingDash       = 0x008F,
796    ItemParasolOpen         = 0x0090,
797    ItemParasolFall         = 0x0091,
798    ItemParasolFallSpecial  = 0x0092,
799    ItemParasolDamageFall   = 0x0093,
800    LGunShoot               = 0x0094,
801    LGunShootAir            = 0x0095,
802    LGunShootEmpty          = 0x0096,
803    LGunShootAirEmpty       = 0x0097,
804    FireFlowerShoot         = 0x0098,
805    FireFlowerShootAir      = 0x0099,
806    ItemScrew               = 0x009A,
807    ItemScrewAir            = 0x009B,
808    DamageScrew             = 0x009C,
809    DamageScrewAir          = 0x009D,
810    ItemScopeStart          = 0x009E,
811    ItemScopeRapid          = 0x009F,
812    ItemScopeFire           = 0x00A0,
813    ItemScopeEnd            = 0x00A1,
814    ItemScopeAirStart       = 0x00A2,
815    ItemScopeAirRapid       = 0x00A3,
816    ItemScopeAirFire        = 0x00A4,
817    ItemScopeAirEnd         = 0x00A5,
818    ItemScopeStartEmpty     = 0x00A6,
819    ItemScopeRapidEmpty     = 0x00A7,
820    ItemScopeFireEmpty      = 0x00A8,
821    ItemScopeEndEmpty       = 0x00A9,
822    ItemScopeAirStartEmpty  = 0x00AA,
823    ItemScopeAirRapidEmpty  = 0x00AB,
824    ItemScopeAirFireEmpty   = 0x00AC,
825    ItemScopeAirEndEmpty    = 0x00AD,
826    LiftWait                = 0x00AE,
827    LiftWalk1               = 0x00AF,
828    LiftWalk2               = 0x00B0,
829    LiftTurn                = 0x00B1,
830    GuardOn                 = 0x00B2,
831    Guard                   = 0x00B3,
832    GuardOff                = 0x00B4,
833    GuardSetOff             = 0x00B5,
834    GuardReflect            = 0x00B6,
835    DownBoundU              = 0x00B7,
836    DownWaitU               = 0x00B8,
837    DownDamageU             = 0x00B9,
838    DownStandU              = 0x00BA,
839    DownAttackU             = 0x00BB,
840    DownFowardU             = 0x00BC,
841    DownBackU               = 0x00BD,
842    DownSpotU               = 0x00BE,
843    DownBoundD              = 0x00BF,
844    DownWaitD               = 0x00C0,
845    DownDamageD             = 0x00C1,
846    DownStandD              = 0x00C2,
847    DownAttackD             = 0x00C3,
848    DownFowardD             = 0x00C4,
849    DownBackD               = 0x00C5,
850    DownSpotD               = 0x00C6,
851    Passive                 = 0x00C7,
852    PassiveStandF           = 0x00C8,
853    PassiveStandB           = 0x00C9,
854    PassiveWall             = 0x00CA,
855    PassiveWallJump         = 0x00CB,
856    PassiveCeil             = 0x00CC,
857    ShieldBreakFly          = 0x00CD,
858    ShieldBreakFall         = 0x00CE,
859    ShieldBreakDownU        = 0x00CF,
860    ShieldBreakDownD        = 0x00D0,
861    ShieldBreakStandU       = 0x00D1,
862    ShieldBreakStandD       = 0x00D2,
863    FuraFura                = 0x00D3,
864    Catch                   = 0x00D4,
865    CatchPull               = 0x00D5,
866    CatchDash               = 0x00D6,
867    CatchDashPull           = 0x00D7,
868    CatchWait               = 0x00D8,
869    CatchAttack             = 0x00D9,
870    CatchCut                = 0x00DA,
871    ThrowF                  = 0x00DB,
872    ThrowB                  = 0x00DC,
873    ThrowHi                 = 0x00DD,
874    ThrowLw                 = 0x00DE,
875    CapturePulledHi         = 0x00DF,
876    CaptureWaitHi           = 0x00E0,
877    CaptureDamageHi         = 0x00E1,
878    CapturePulledLw         = 0x00E2,
879    CaptureWaitLw           = 0x00E3,
880    CaptureDamageLw         = 0x00E4,
881    CaptureCut              = 0x00E5,
882    CaptureJump             = 0x00E6,
883    CaptureNeck             = 0x00E7,
884    CaptureFoot             = 0x00E8,
885    EscapeF                 = 0x00E9,
886    EscapeB                 = 0x00EA,
887    Escape                  = 0x00EB,
888    EscapeAir               = 0x00EC,
889    ReboundStop             = 0x00ED,
890    Rebound                 = 0x00EE,
891    ThrownF                 = 0x00EF,
892    ThrownB                 = 0x00F0,
893    ThrownHi                = 0x00F1,
894    ThrownLw                = 0x00F2,
895    ThrownLwWomen           = 0x00F3,
896    Pass                    = 0x00F4,
897    Ottotto                 = 0x00F5,
898    OttottoWait             = 0x00F6,
899    FlyReflectWall          = 0x00F7,
900    FlyReflectCeil          = 0x00F8,
901    StopWall                = 0x00F9,
902    StopCeil                = 0x00FA,
903    MissFoot                = 0x00FB,
904    CliffCatch              = 0x00FC,
905    CliffWait               = 0x00FD,
906    CliffClimbSlow          = 0x00FE,
907    CliffClimbQuick         = 0x00FF,
908    CliffAttackSlow         = 0x0100,
909    CliffAttackQuick        = 0x0101,
910    CliffEscapeSlow         = 0x0102,
911    CliffEscapeQuick        = 0x0103,
912    CliffJumpSlow1          = 0x0104,
913    CliffJumpSlow2          = 0x0105,
914    CliffJumpQuick1         = 0x0106,
915    CliffJumpQuick2         = 0x0107,
916    AppealR                 = 0x0108,
917    AppealL                 = 0x0109,
918    ShoulderedWait          = 0x010A,
919    ShoulderedWalkSlow      = 0x010B,
920    ShoulderedWalkMiddle    = 0x010C,
921    ShoulderedWalkFast      = 0x010D,
922    ShoulderedTurn          = 0x010E,
923    ThrownFF                = 0x010F,
924    ThrownFB                = 0x0110,
925    ThrownFHi               = 0x0111,
926    ThrownFLw               = 0x0112,
927    CaptureCaptain          = 0x0113,
928    CaptureYoshi            = 0x0114,
929    YoshiEgg                = 0x0115,
930    CaptureKoopa            = 0x0116,
931    CaptureDamageKoopa      = 0x0117,
932    CaptureWaitKoopa        = 0x0118,
933    ThrownKoopaF            = 0x0119,
934    ThrownKoopaB            = 0x011A,
935    CaptureKoopaAir         = 0x011B,
936    CaptureDamageKoopaAir   = 0x011C,
937    CaptureWaitKoopaAir     = 0x011D,
938    ThrownKoopaAirF         = 0x011E,
939    ThrownKoopaAirB         = 0x011F,
940    CaptureKirby            = 0x0120,
941    CaptureWaitKirby        = 0x0121,
942    ThrownKirbyStar         = 0x0122,
943    ThrownCopyStar          = 0x0123,
944    ThrownKirby             = 0x0124,
945    BarrelWait              = 0x0125,
946    Bury                    = 0x0126,
947    BuryWait                = 0x0127,
948    BuryJump                = 0x0128,
949    DamageSong              = 0x0129,
950    DamageSongWait          = 0x012A,
951    DamageSongRv            = 0x012B,
952    DamageBind              = 0x012C,
953    CaptureMewtwo           = 0x012D,
954    CaptureMewtwoAir        = 0x012E,
955    ThrownMewtwo            = 0x012F,
956    ThrownMewtwoAir         = 0x0130,
957    WarpStarJump            = 0x0131,
958    WarpStarFall            = 0x0132,
959    HammerWait              = 0x0133,
960    HammerWalk              = 0x0134,
961    HammerTurn              = 0x0135,
962    HammerKneeBend          = 0x0136,
963    HammerFall              = 0x0137,
964    HammerJump              = 0x0138,
965    HammerLanding           = 0x0139,
966    KinokoGiantStart        = 0x013A,
967    KinokoGiantStartAir     = 0x013B,
968    KinokoGiantEnd          = 0x013C,
969    KinokoGiantEndAir       = 0x013D,
970    KinokoSmallStart        = 0x013E,
971    KinokoSmallStartAir     = 0x013F,
972    KinokoSmallEnd          = 0x0140,
973    KinokoSmallEndAir       = 0x0141,
974    Entry                   = 0x0142,
975    EntryStart              = 0x0143,
976    EntryEnd                = 0x0144,
977    DamageIce               = 0x0145,
978    DamageIceJump           = 0x0146,
979    CaptureMasterhand       = 0x0147,
980    CapturedamageMasterhand = 0x0148,
981    CapturewaitMasterhand   = 0x0149,
982    ThrownMasterhand        = 0x014A,
983    CaptureKirbyYoshi       = 0x014B,
984    KirbyYoshiEgg           = 0x014C,
985    CaptureLeadead          = 0x014D,
986    CaptureLikelike         = 0x014E,
987    DownReflect             = 0x014F,
988    CaptureCrazyhand        = 0x0150,
989    CapturedamageCrazyhand  = 0x0151,
990    CapturewaitCrazyhand    = 0x0152,
991    ThrownCrazyhand         = 0x0153,
992    BarrelCannonWait        = 0x0154,
993    Wait1                   = 0x0155,
994    Wait2                   = 0x0156,
995    Wait3                   = 0x0157,
996    Wait4                   = 0x0158,
997    WaitItem                = 0x0159,
998    SquatWait1              = 0x015A,
999    SquatWait2              = 0x015B,
1000    SquatWaitItem           = 0x015C,
1001    GuardDamage             = 0x015D,
1002    EscapeN                 = 0x015E,
1003    AttackS4Hold            = 0x015F,
1004    HeavyWalk1              = 0x0160,
1005    HeavyWalk2              = 0x0161,
1006    ItemHammerWait          = 0x0162,
1007    ItemHammerMove          = 0x0163,
1008    ItemBlind               = 0x0164,
1009    DamageElec              = 0x0165,
1010    FuraSleepStart          = 0x0166,
1011    FuraSleepLoop           = 0x0167,
1012    FuraSleepEnd            = 0x0168,
1013    WallDamage              = 0x0169,
1014    CliffWait1              = 0x016A,
1015    CliffWait2              = 0x016B,
1016    SlipDown                = 0x016C,
1017    Slip                    = 0x016D,
1018    SlipTurn                = 0x016E,
1019    SlipDash                = 0x016F,
1020    SlipWait                = 0x0170,
1021    SlipStand               = 0x0171,
1022    SlipAttack              = 0x0172,
1023    SlipEscapeF             = 0x0173,
1024    SlipEscapeB             = 0x0174,
1025    AppealS                 = 0x0175,
1026    Zitabata                = 0x0176,
1027    CaptureKoopaHit         = 0x0177,
1028    ThrownKoopaEndF         = 0x0178,
1029    ThrownKoopaEndB         = 0x0179,
1030    CaptureKoopaAirHit      = 0x017A,
1031    ThrownKoopaAirEndF      = 0x017B,
1032    ThrownKoopaAirEndB      = 0x017C,
1033    ThrownKirbyDrinkSShot   = 0x017D,
1034    ThrownKirbySpitSShot    = 0x017E,
1035    __LAST                  = 0x017F
1036  };
1037
1038  const std::string name[__LAST] = {
1039    "DeadDown",
1040    "DeadLeft",
1041    "DeadRight",
1042    "DeadUp",
1043    "DeadUpStar",
1044    "DeadUpStarIce",
1045    "_NONE1",
1046    "DeadUpFallHitCamera",
1047    "DeadUpFallHitCameraFlat",
1048    "DeadUpFallIce",
1049    "DeadUpFallHitCameraIce",
1050    "Sleep",
1051    "Rebirth",
1052    "RebirthWait",
1053    "Wait",
1054    "WalkSlow",
1055    "WalkMiddle",
1056    "WalkFast",
1057    "Turn",
1058    "TurnRun",
1059    "Dash",
1060    "Run",
1061    "RunDirect",
1062    "RunBrake",
1063    "KneeBend",
1064    "JumpF",
1065    "JumpB",
1066    "JumpAerialF",
1067    "JumpAerialB",
1068    "Fall",
1069    "FallF",
1070    "FallB",
1071    "FallAerial",
1072    "FallAerialF",
1073    "FallAerialB",
1074    "FallSpecial",
1075    "FallSpecialF",
1076    "FallSpecialB",
1077    "DamageFall",
1078    "Squat",
1079    "SquatWait",
1080    "SquatRv",
1081    "Landing",
1082    "LandingFallSpecial",
1083    "Attack11",
1084    "Attack12",
1085    "Attack13",
1086    "Attack100Start",
1087    "Attack100Loop",
1088    "Attack100End",
1089    "AttackDash",
1090    "AttackS3Hi",
1091    "AttackS3HiS",
1092    "AttackS3S",
1093    "AttackS3LwS",
1094    "AttackS3Lw",
1095    "AttackHi3",
1096    "AttackLw3",
1097    "AttackS4Hi",
1098    "AttackS4HiS",
1099    "AttackS4S",
1100    "AttackS4LwS",
1101    "AttackS4Lw",
1102    "AttackHi4",
1103    "AttackLw4",
1104    "AttackAirN",
1105    "AttackAirF",
1106    "AttackAirB",
1107    "AttackAirHi",
1108    "AttackAirLw",
1109    "LandingAirN",
1110    "LandingAirF",
1111    "LandingAirB",
1112    "LandingAirHi",
1113    "LandingAirLw",
1114    "DamageHi1",
1115    "DamageHi2",
1116    "DamageHi3",
1117    "DamageN1",
1118    "DamageN2",
1119    "DamageN3",
1120    "DamageLw1",
1121    "DamageLw2",
1122    "DamageLw3",
1123    "DamageAir1",
1124    "DamageAir2",
1125    "DamageAir3",
1126    "DamageFlyHi",
1127    "DamageFlyN",
1128    "DamageFlyLw",
1129    "DamageFlyTop",
1130    "DamageFlyRoll",
1131    "LightGet",
1132    "HeavyGet",
1133    "LightThrowF",
1134    "LightThrowB",
1135    "LightThrowHi",
1136    "LightThrowLw",
1137    "LightThrowDash",
1138    "LightThrowDrop",
1139    "LightThrowAirF",
1140    "LightThrowAirB",
1141    "LightThrowAirHi",
1142    "LightThrowAirLw",
1143    "HeavyThrowF",
1144    "HeavyThrowB",
1145    "HeavyThrowHi",
1146    "HeavyThrowLw",
1147    "LightThrowF4",
1148    "LightThrowB4",
1149    "LightThrowHi4",
1150    "LightThrowLw4",
1151    "LightThrowAirF4",
1152    "LightThrowAirB4",
1153    "LightThrowAirHi4",
1154    "LightThrowAirLw4",
1155    "HeavyThrowF4",
1156    "HeavyThrowB4",
1157    "HeavyThrowHi4",
1158    "HeavyThrowLw4",
1159    "SwordSwing1",
1160    "SwordSwing3",
1161    "SwordSwing4",
1162    "SwordSwingDash",
1163    "BatSwing1",
1164    "BatSwing3",
1165    "BatSwing4",
1166    "BatSwingDash",
1167    "ParasolSwing1",
1168    "ParasolSwing3",
1169    "ParasolSwing4",
1170    "ParasolSwingDash",
1171    "HarisenSwing1",
1172    "HarisenSwing3",
1173    "HarisenSwing4",
1174    "HarisenSwingDash",
1175    "StarRodSwing1",
1176    "StarRodSwing3",
1177    "StarRodSwing4",
1178    "StarRodSwingDash",
1179    "LipStickSwing1",
1180    "LipStickSwing3",
1181    "LipStickSwing4",
1182    "LipStickSwingDash",
1183    "ItemParasolOpen",
1184    "ItemParasolFall",
1185    "ItemParasolFallSpecial",
1186    "ItemParasolDamageFall",
1187    "LGunShoot",
1188    "LGunShootAir",
1189    "LGunShootEmpty",
1190    "LGunShootAirEmpty",
1191    "FireFlowerShoot",
1192    "FireFlowerShootAir",
1193    "ItemScrew",
1194    "ItemScrewAir",
1195    "DamageScrew",
1196    "DamageScrewAir",
1197    "ItemScopeStart",
1198    "ItemScopeRapid",
1199    "ItemScopeFire",
1200    "ItemScopeEnd",
1201    "ItemScopeAirStart",
1202    "ItemScopeAirRapid",
1203    "ItemScopeAirFire",
1204    "ItemScopeAirEnd",
1205    "ItemScopeStartEmpty",
1206    "ItemScopeRapidEmpty",
1207    "ItemScopeFireEmpty",
1208    "ItemScopeEndEmpty",
1209    "ItemScopeAirStartEmpty",
1210    "ItemScopeAirRapidEmpty",
1211    "ItemScopeAirFireEmpty",
1212    "ItemScopeAirEndEmpty",
1213    "LiftWait",
1214    "LiftWalk1",
1215    "LiftWalk2",
1216    "LiftTurn",
1217    "GuardOn",
1218    "Guard",
1219    "GuardOff",
1220    "GuardSetOff",
1221    "GuardReflect",
1222    "DownBoundU",
1223    "DownWaitU",
1224    "DownDamageU",
1225    "DownStandU",
1226    "DownAttackU",
1227    "DownFowardU",
1228    "DownBackU",
1229    "DownSpotU",
1230    "DownBoundD",
1231    "DownWaitD",
1232    "DownDamageD",
1233    "DownStandD",
1234    "DownAttackD",
1235    "DownFowardD",
1236    "DownBackD",
1237    "DownSpotD",
1238    "Passive",
1239    "PassiveStandF",
1240    "PassiveStandB",
1241    "PassiveWall",
1242    "PassiveWallJump",
1243    "PassiveCeil",
1244    "ShieldBreakFly",
1245    "ShieldBreakFall",
1246    "ShieldBreakDownU",
1247    "ShieldBreakDownD",
1248    "ShieldBreakStandU",
1249    "ShieldBreakStandD",
1250    "FuraFura",
1251    "Catch",
1252    "CatchPull",
1253    "CatchDash",
1254    "CatchDashPull",
1255    "CatchWait",
1256    "CatchAttack",
1257    "CatchCut",
1258    "ThrowF",
1259    "ThrowB",
1260    "ThrowHi",
1261    "ThrowLw",
1262    "CapturePulledHi",
1263    "CaptureWaitHi",
1264    "CaptureDamageHi",
1265    "CapturePulledLw",
1266    "CaptureWaitLw",
1267    "CaptureDamageLw",
1268    "CaptureCut",
1269    "CaptureJump",
1270    "CaptureNeck",
1271    "CaptureFoot",
1272    "EscapeF",
1273    "EscapeB",
1274    "Escape",
1275    "EscapeAir",
1276    "ReboundStop",
1277    "Rebound",
1278    "ThrownF",
1279    "ThrownB",
1280    "ThrownHi",
1281    "ThrownLw",
1282    "ThrownLwWomen",
1283    "Pass",
1284    "Ottotto",
1285    "OttottoWait",
1286    "FlyReflectWall",
1287    "FlyReflectCeil",
1288    "StopWall",
1289    "StopCeil",
1290    "MissFoot",
1291    "CliffCatch",
1292    "CliffWait",
1293    "CliffClimbSlow",
1294    "CliffClimbQuick",
1295    "CliffAttackSlow",
1296    "CliffAttackQuick",
1297    "CliffEscapeSlow",
1298    "CliffEscapeQuick",
1299    "CliffJumpSlow1",
1300    "CliffJumpSlow2",
1301    "CliffJumpQuick1",
1302    "CliffJumpQuick2",
1303    "AppealR",
1304    "AppealL",
1305    "ShoulderedWait",
1306    "ShoulderedWalkSlow",
1307    "ShoulderedWalkMiddle",
1308    "ShoulderedWalkFast",
1309    "ShoulderedTurn",
1310    "ThrownFF",
1311    "ThrownFB",
1312    "ThrownFHi",
1313    "ThrownFLw",
1314    "CaptureCaptain",
1315    "CaptureYoshi",
1316    "YoshiEgg",
1317    "CaptureKoopa",
1318    "CaptureDamageKoopa",
1319    "CaptureWaitKoopa",
1320    "ThrownKoopaF",
1321    "ThrownKoopaB",
1322    "CaptureKoopaAir",
1323    "CaptureDamageKoopaAir",
1324    "CaptureWaitKoopaAir",
1325    "ThrownKoopaAirF",
1326    "ThrownKoopaAirB",
1327    "CaptureKirby",
1328    "CaptureWaitKirby",
1329    "ThrownKirbyStar",
1330    "ThrownCopyStar",
1331    "ThrownKirby",
1332    "BarrelWait",
1333    "Bury",
1334    "BuryWait",
1335    "BuryJump",
1336    "DamageSong",
1337    "DamageSongWait",
1338    "DamageSongRv",
1339    "DamageBind",
1340    "CaptureMewtwo",
1341    "CaptureMewtwoAir",
1342    "ThrownMewtwo",
1343    "ThrownMewtwoAir",
1344    "WarpStarJump",
1345    "WarpStarFall",
1346    "HammerWait",
1347    "HammerWalk",
1348    "HammerTurn",
1349    "HammerKneeBend",
1350    "HammerFall",
1351    "HammerJump",
1352    "HammerLanding",
1353    "KinokoGiantStart",
1354    "KinokoGiantStartAir",
1355    "KinokoGiantEnd",
1356    "KinokoGiantEndAir",
1357    "KinokoSmallStart",
1358    "KinokoSmallStartAir",
1359    "KinokoSmallEnd",
1360    "KinokoSmallEndAir",
1361    "Entry",
1362    "EntryStart",
1363    "EntryEnd",
1364    "DamageIce",
1365    "DamageIceJump",
1366    "CaptureMasterhand",
1367    "CapturedamageMasterhand",
1368    "CapturewaitMasterhand",
1369    "ThrownMasterhand",
1370    "CaptureKirbyYoshi",
1371    "KirbyYoshiEgg",
1372    "CaptureLeadead",
1373    "CaptureLikelike",
1374    "DownReflect",
1375    "CaptureCrazyhand",
1376    "CapturedamageCrazyhand",
1377    "CapturewaitCrazyhand",
1378    "ThrownCrazyhand",
1379    "BarrelCannonWait",
1380    "Wait1",
1381    "Wait2",
1382    "Wait3",
1383    "Wait4",
1384    "WaitItem",
1385    "SquatWait1",
1386    "SquatWait2",
1387    "SquatWaitItem",
1388    "GuardDamage",
1389    "EscapeN",
1390    "AttackS4Hold",
1391    "HeavyWalk1",
1392    "HeavyWalk2",
1393    "ItemHammerWait",
1394    "ItemHammerMove",
1395    "ItemBlind",
1396    "DamageElec",
1397    "FuraSleepStart",
1398    "FuraSleepLoop",
1399    "FuraSleepEnd",
1400    "WallDamage",
1401    "CliffWait1",
1402    "CliffWait2",
1403    "SlipDown",
1404    "Slip",
1405    "SlipTurn",
1406    "SlipDash",
1407    "SlipWait",
1408    "SlipStand",
1409    "SlipAttack",
1410    "SlipEscapeF",
1411    "SlipEscapeB",
1412    "AppealS",
1413    "Zitabata",
1414    "CaptureKoopaHit",
1415    "ThrownKoopaEndF",
1416    "ThrownKoopaEndB",
1417    "CaptureKoopaAirHit",
1418    "ThrownKoopaAirEndF",
1419    "ThrownKoopaAirEndB",
1420    "ThrownKirbyDrinkSShot",
1421    "ThrownKirbySpitSShot"
1422  };
1423}
1424
1425//Offensive, neutral, and defensive gameplay dynamics
1426//WARNING: if this is ever updated, offensive and defensive types need to be
1427//  symmetric around neutral (e.g., NEUTRAL muse equal __LAST/2 and PRESSURED must equal __LAST-PRESSURING)
1428namespace Dynamic {
1429  enum {
1430    __FIRST       = 0,
1431    RECOVERING    = 1,
1432    ESCAPING      = 2,
1433    PUNISHED      = 3,
1434    GROUNDING     = 4,
1435    PRESSURED     = 5,
1436    DEFENSIVE     = 6,
1437    TRADING       = 7,
1438    POKING        = 8,
1439    NEUTRAL       = 9,
1440    POSITIONING   = 10,
1441    FOOTSIES      = 11,
1442    OFFENSIVE     = 12,
1443    PRESSURING    = 13,
1444    SHARKING      = 14,
1445    PUNISHING     = 15,
1446    TECHCHASING   = 16,
1447    EDGEGUARDING  = 17,
1448    __LAST        = 18
1449  };
1450
1451  const std::string name[__LAST] = {
1452    "__FIRST",
1453    "RECOVERING",
1454    "ESCAPING",
1455    "PUNISHED",
1456    "GROUNDING",
1457    "PRESSURED",
1458    "DEFENSIVE",
1459    "TRADING",
1460    "POKING",
1461    "NEUTRAL",
1462    "POSITIONING",
1463    "FOOTSIES",
1464    "OFFENSIVE",
1465    "PRESSURING",
1466    "SHARKING",
1467    "PUNISHING",
1468    "TECHCHASING",
1469    "EDGEGUARDING"
1470  };
1471}
1472
1473namespace EndType {
1474  // game end type, dependent on slippi version:
1475  // 0.1.0 -0 = Unresolved, 3 = resolved
1476  // 2.0.0 -1 = TIME!, 2 = GAME!, 7 = No Contest
1477  enum {
1478    UNRESOLVED = 0,
1479    RESOLVED = 3,
1480
1481    TIME = 1,
1482    GAME = 2,
1483    NO_CONTEST = 7
1484  };
1485}
1486
1487#endif /* ENUMS_H_ */