fork/slippc

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

Patrick CrainUnify version strings between parser, analyzer, and compressor into SLIPPC_VERSION46ef8c0

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