1 #ifndef MELEESHIP_H
2 #define MELEESHIP_H
3
4 #include "types.h"
5
6 #if defined(__cplusplus)
7 extern "C" {
8 #endif
9
10 typedef enum MeleeShip {
11 MELEE_ANDROSYNTH,
12 MELEE_ARILOU,
13 MELEE_CHENJESU,
14 MELEE_CHMMR,
15 MELEE_DRUUGE,
16 MELEE_EARTHLING,
17 MELEE_ILWRATH,
18 MELEE_KOHR_AH,
19 MELEE_MELNORME,
20 MELEE_MMRNMHRM,
21 MELEE_MYCON,
22 MELEE_ORZ,
23 MELEE_PKUNK,
24 MELEE_SHOFIXTI,
25 MELEE_SLYLANDRO,
26 MELEE_SPATHI,
27 MELEE_SUPOX,
28 MELEE_SYREEN,
29 MELEE_THRADDASH,
30 MELEE_UMGAH,
31 MELEE_URQUAN,
32 MELEE_UTWIG,
33 MELEE_VUX,
34 MELEE_YEHAT,
35 MELEE_ZOQFOTPIK,
36
37 MELEE_UNSET = ((BYTE) ~0) - 1,
38 // Used with the Update protocol, to register in the sentTeam
39 MELEE_NONE = (BYTE) ~0
40 // Empty fleet position.
41 } MeleeShip;
42 #define NUM_MELEE_SHIPS (MELEE_ZOQFOTPIK + 1)
43
44 static inline bool
MeleeShip_valid(MeleeShip ship)45 MeleeShip_valid (MeleeShip ship)
46 {
47 return (ship < NUM_MELEE_SHIPS) || (ship == MELEE_NONE);
48 }
49
50 #if defined(__cplusplus)
51 }
52 #endif
53
54 #endif /* MELEESHIP_H */
55
56