2 * Empire - A multi-player, client/server Internet based war game.
3 * Copyright (C) 1986-2005, Dave Pare, Jeff Bailey, Thomas Ruschak,
4 * Ken Stevens, Steve McClure
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
22 * See the "LEGAL", "LICENSE", "CREDITS" and "README" files for all the
23 * related information and legal notices. It is expected that any future
24 * projects/authors will amend these files as needed.
28 * news.h: Definitions for Empire News
30 * Known contributors to this file:
37 * News codes for new options are not #ifdefed, since defining maxverb
38 * would be a pain, and it doesn't hurt to leave them in --ts
46 natid nws_ano; /* "actor" country # */
48 s_char nws_vrb; /* action (verb) */
49 natid nws_vno; /* "victim" country # */
50 s_char nws_ntm; /* number of times */
51 time_t nws_when; /* time of action */
54 #define NUM_RPTS 2 /* number of story alternates */
58 int r_good_will; /* how "nice" the action is */
59 int r_newspage; /* which page this item belongs on */
60 char *r_newstory[NUM_RPTS]; /* texts for fmt( */
70 #define N_REPAY_LOAN 7
72 #define N_OVFLY_SECT 9
73 #define N_SCT_SHELL 10
74 #define N_SHP_SHELL 11
75 #define N_TOOK_UNOCC 12
76 #define N_TORP_SHIP 13
77 #define N_FIRE_BACK 14
78 #define N_BROKE_SANCT 15
81 #define N_BOARD_SHIP 18
84 #define N_SEIZE_SECT 21
85 #define N_HONOR_TRE 22
89 #define N_DECL_ALLY 26
94 #define N_OUT_PLAGUE 31
95 #define N_DIE_PLAGUE 32
96 #define N_NAME_CHNG 33
97 #define N_DIE_FAMINE 34
99 #define N_DOWN_PLANE 36
101 #define N_FREEDOM_FIGHT 38
102 #define N_SHOOT_CIV 39
104 #define N_SAT_KILL 41
109 #define N_NUKE_STOP 46
110 #define N_SCT_MISS 47
111 #define N_SHP_MISS 48
113 #define N_PIRATE_TRADE 50
114 #define N_PIRATE_KEEP 51
115 #define N_SHIP_TORP 52
116 #define N_SUB_BOMB 53
118 #define N_UNIT_BOMB 55
119 #define N_LHIT_MINE 56
120 #define N_FIRE_F_ATTACK 57
121 #define N_FIRE_L_ATTACK 58
122 #define N_FIRE_S_ATTACK 59
123 #define N_SACK_CAP 60
124 #define N_UP_FRIENDLY 61
125 #define N_DOWN_FRIENDLY 62
126 #define N_UP_NEUTRAL 63
127 #define N_DOWN_NEUTRAL 64
128 #define N_UP_HOSTILE 65
129 #define N_DOWN_HOSTILE 66
130 #define N_SCT_SMISS 67
131 #define N_SHP_SMISS 68
132 #define N_START_COL 69
133 #define N_NUKE_SSTOP 70
134 #define N_LND_MISS 71
135 #define N_LND_SMISS 72
136 #define N_AWON_SECT 73
137 #define N_PWON_SECT 74
138 #define N_PARA_UNOCC 75
139 #define N_ALOSE_SCT 76
140 #define N_PLOSE_SCT 77
143 #define N_WELCH_DEAL 80
144 #define N_LND_LOSE 81
145 #define N_BOARD_LAND 82
146 #define N_MAX_VERB 82
159 #define N_MAX_PAGE 11
161 #define getnews(n, p) \
162 ef_read(EF_NEWS, n, p)
163 #define putnews(n, p) \
164 ef_write(EF_NEWS, n, p)
165 #define getnewsp(n) \
166 (struct nwsstr *) ef_ptr(EF_NEWS, n)
168 extern struct rptstr rpt[N_MAX_VERB + 2];
169 extern char *page_headings[N_MAX_PAGE + 1];