2 stringswitch_enumerator_default_member_name(lcm_cmdhostile
),
3 stringswitch_enumerator_member_name(lcm_cmdhostile
, npc
),
4 stringswitch_enumerator_member_name(lcm_cmdhostile
, shot
),
5 stringswitch_enumerator_member_name(lcm_cmdhostile
, enemy
),
6 stringswitch_enumerator_member_name(lcm_cmdhostile
, player
),
7 stringswitch_enumerator_member_name(lcm_cmdhostile
, obstacle
),
8 } stringswitch_enumerator_name(lcm_cmdhostile
);
10 static int stringswitch_enumerator_eval_func(lcm_cmdhostile
) (char* str
, size_t l
) {
13 if(str
[0]!='n') goto main_default
;
14 if(str
[1]!='p') goto main_default
;
15 if(str
[2]!='c') goto main_default
;
16 return stringswitch_enumerator_member_name(lcm_cmdhostile
, npc
);
18 if(str
[0]!='s') goto main_default
;
19 if(str
[1]!='h') goto main_default
;
20 if(str
[2]!='o') goto main_default
;
21 if(str
[3]!='t') goto main_default
;
22 return stringswitch_enumerator_member_name(lcm_cmdhostile
, shot
);
24 if(str
[0]!='e') goto main_default
;
25 if(str
[1]!='n') goto main_default
;
26 if(str
[2]!='e') goto main_default
;
27 if(str
[3]!='m') goto main_default
;
28 if(str
[4]!='y') goto main_default
;
29 return stringswitch_enumerator_member_name(lcm_cmdhostile
, enemy
);
31 if(str
[0]!='p') goto main_default
;
32 if(str
[1]!='l') goto main_default
;
33 if(str
[2]!='a') goto main_default
;
34 if(str
[3]!='y') goto main_default
;
35 if(str
[4]!='e') goto main_default
;
36 if(str
[5]!='r') goto main_default
;
37 return stringswitch_enumerator_member_name(lcm_cmdhostile
, player
);
39 if(str
[0]!='o') goto main_default
;
40 if(str
[1]!='b') goto main_default
;
41 if(str
[2]!='s') goto main_default
;
42 if(str
[3]!='t') goto main_default
;
43 if(str
[4]!='a') goto main_default
;
44 if(str
[5]!='c') goto main_default
;
45 if(str
[6]!='l') goto main_default
;
46 if(str
[7]!='e') goto main_default
;
47 return stringswitch_enumerator_member_name(lcm_cmdhostile
, obstacle
);
50 return stringswitch_enumerator_default_member_name(lcm_cmdhostile
);