2 * Empire - A multi-player, client/server Internet based war game.
3 * Copyright (C) 1986-2000, 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 * treaty.h: Definitions for treaties
30 * Known contributors to this file:
39 natid trt_cna; /* proposer */
40 natid trt_cnb; /* acceptor */
41 s_char trt_status; /* treaty status */
43 short trt_acond; /* conditions for proposer */
44 short trt_bcond; /* conditions for accepter */
45 float trt_bond; /* amount of bond involved */
46 time_t trt_exp; /* expiration date */
50 int t_cond; /* bit to indicate this clause */
51 s_char *t_name; /* description of clause */
59 #define LNDATT bit(0) /* no attacks on land units */
60 #define SEAATT bit(1) /* no attacks on ships */
61 #define SEAFIR bit(2) /* no shelling ships */
62 #define LANATT bit(3) /* no attacks on sectors */
63 #define LANFIR bit(4) /* no shelling sectors */
64 #define NEWSHP bit(5) /* no new ships */
65 #define NEWNUK bit(6) /* no new nuclear weapons */
66 #define NEWPLN bit(7) /* no new planes */
67 #define NEWLND bit(8) /* no new land units */
68 #define TRTENL bit(9) /* no enlistment */
69 #define SUBFIR bit(10) /* no depth-charging submarines */
71 /* global treaty variables */
73 #define gettre(n, p) \
74 ef_read(EF_TREATY, n, (caddr_t)p)
75 #define puttre(n, p) \
76 ef_write(EF_TREATY, n, (caddr_t)p)
78 (struct trtstr *) ef_ptr(EF_TREATY, n)
80 extern struct tchrstr tchr[];
84 #endif /* _TREATY_H_ */