(empfile,mission_flags,ship_ca,land_ca,plane_ca): Add mission flags table.

This commit is contained in:
Ron Koenderink 2005-11-06 13:43:09 +00:00
parent bee3f4aa88
commit 23f134aa75
4 changed files with 18 additions and 2 deletions

View file

@ -52,6 +52,7 @@
#include "lost.h"
#include "product.h"
#include "file.h"
#include "mission.h"
#define fldoff(str, fld) offsetof(struct str, fld)
@ -184,7 +185,7 @@ struct castr dchr_ca[] = {
{ NSC_CHAR, NSC_EXTRA, 0, fldoff(genitem, group), "group", EF_BAD}, \
{ NSC_XCOORD, 0, 0, fldoff(genitem, opx), "opx", EF_BAD}, \
{ NSC_YCOORD, 0, 0, fldoff(genitem, opy), "opy", EF_BAD}, \
{ NSC_SHORT, 0, 0, fldoff(genitem, mission), "mission", EF_BAD}, \
{ NSC_SHORT, 0, 0, fldoff(genitem, mission), "mission", EF_MISSION_FLAGS}, \
{ NSC_SHORT, 0, 0, fldoff(genitem, radius), "radius", EF_BAD}
struct castr ship_ca[] = {
@ -637,3 +638,14 @@ struct symbol meta_type[] = {
{NSC_STRINGY,"c"},
{NSC_NOTYPE, NULL}
};
struct symbol mission_flags[] = {
{MI_INTERDICT, "interdiction"},
{MI_SUPPORT, "support"},
{MI_RESERVE, "reserve"},
{MI_ESCORT, "escort"},
{MI_AIR_DEFENSE, "air defense"},
{MI_DSUPPORT, "defensive support"},
{MI_OSUPPORT, "offensive support"},
{0, NULL}
};