extern struct ichrstr *whatitem(s_char *ptr, s_char *prompt);
-extern int itm_maxno;
-
#endif /* _ITEM_H_ */
#define MAP_HIGH bit(3)
#define MAP_ALL MAP_SHIP | MAP_LAND | MAP_PLANE
-struct mapstr {
- short ef_type;
- coord map_x;
- coord map_y;
- s_char map_des;
-};
-
#endif /* _MAP_H_ */
#define MI_DSUPPORT 7
#define MI_OSUPPORT 8
-/* The following "missions" do not need to be set--they are automatic */
-#define MI_FINTERDICT 9 /* forts interdicting ships */
-#define MI_MINTERDICT 10 /* missiles interdicting ships or land units */
-#define MI_MINTERCEPT 11 /* missile interception */
-#define MI_SINTERCEPT 12 /* sattelite interception */
-#define MI_PINTERCEPT 13 /* intercept planes */
-#define MI_SAM 14 /* SAM interception */
-#define MI_LREACT 15 /* land units react */
-#define MI_MAX 15
-
struct genlist {
struct emp_qelem queue; /* list of units */
int type; /* type of unit */
#ifndef _NAT_H_
#define _NAT_H_
-#include "mission.h"
#include "sect.h"
#define MAXNOR 50 /* max # realms */
float nat_level[4]; /* technology, etc */
struct boundstr nat_b[MAXNOR]; /* realm bounds */
short nat_relate[MAXNOC];
- short nat_contact[MAXNOC]; /* short for everyone */
+ short nat_contact[MAXNOC];
short nat_rejects[(MAXNOC + 3) / 4]; /* four bits for each country */
s_char nat_priorities[SCT_MAXDEF + 8]; /* priority for each SCT_MAXDEF+8 */
long nat_flags; /* nation flags */
- s_char nat_mission_trigger[MI_MAX]; /* not used -- relation to trig */
+ char nat_spare[15];
};
/* Priorities */
#define NAT_ELEV 2
#define NAT_HLEV 3
-#define NF_CHAR 1
-#define NF_UCHAR 2
-#define NF_SHORT 3
-#define NF_LONG 4
-#define NF_STRING 5
-#define NF_FLOAT 6
-#define NF_DOUBLE 7
-#define NF_BOUND 8
-
-#define NF_NOTIFY 1
-#define NF_PRIVATE 2
-
-#define NF_NATID NF_UCHAR
-#define NF_COORD NF_SHORT
-
#define FOUND_FLY 3 /* Number of updates contact lasts */
#define FOUND_LOOK 5 /* These are only useful with the */
#define FOUND_SPY 6 /* LOSE_CONTACT option (and HIDDEN) */
-#define FOUND_MAP 6
#define FOUND_TELE 3
#define FOUND_COAST 3
-struct fixnat {
- s_char *name;
- int type;
- int index;
- int notify;
- int offset;
-};
-
extern s_char *relates[];
/* procedures relating to nation stuff */
extern void putcontact(struct natstr *np, natid them, int contact);
extern void agecontact(struct natstr *np);
+/* nation flags */
#define NF_INFORM bit(0) /* Inform me of telegrams right away */
#define NF_FLASH bit(1) /* Allow other players to flash me (sicko :) */
#define NF_BEEP bit(2) /* Make beeping sounds when appropriate */
extern struct rptstr rpt[];
extern s_char *page_headings[];
-extern int nws_maxno;
#endif /* _NEWS_H_ */
extern struct castr trade_ca[];
extern struct castr loan_ca[];
extern struct castr genitem_ca[];
-extern struct castr map_ca[];
extern struct castr lost_ca[];
extern struct castr commodity_ca[];
extern struct tchrstr tchr[];
-extern int trt_maxno;
-
#endif /* _TREATY_H_ */
{'r', V_RAD, 150, 1, 8, {1, 10, 1, 1}, "radioactive materials"},
{0, 0, 0, 0, 0, {0, 0, 0, 0}, 0}
};
-
-int itm_maxno = (sizeof(ichr) / sizeof(struct ichrstr)) - 1;
{-2, N_FRONT, {"mercenaries board one of %s's land units",
/* 82*/ "elite forces board %s land unit"}}
};
-
-int nws_maxno = (sizeof(rpt) / sizeof(struct rptstr)) - 1;
/* {NSC_LONG | NSC_OFF | fldoff(natstr, nat_flags),"flags",0}, */
{0, 0, 0}
};
-
-struct castr map_ca[] = {
- {NSC_XCOORD | NSC_OFF | fldoff(mapstr, map_x), "x", 0},
- {NSC_YCOORD | NSC_OFF | fldoff(mapstr, map_y), "y", 0},
- {NSC_CHAR | NSC_OFF | fldoff(mapstr, map_des), "des", 0},
- {0, 0, 0}
-};
{TRTENL, "no enlistment"},
{0, 0}
};
-
-int trt_maxno = (sizeof(tchr) / sizeof(struct tchrstr)) - 1;