]> git.pond.sub.org Git - empserver/blob - src/lib/global/file.c
Update copyright notice.
[empserver] / src / lib / global / file.c
1 /*
2  *  Empire - A multi-player, client/server Internet based war game.
3  *  Copyright (C) 1986-2004, Dave Pare, Jeff Bailey, Thomas Ruschak,
4  *                           Ken Stevens, Steve McClure
5  *
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.
10  *
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.
15  *
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
19  *
20  *  ---
21  *
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.
25  *
26  *  ---
27  *
28  *  fileglb.c: Empire selection global structures.
29  * 
30  *  Known contributors to this file:
31  *     
32  */
33
34 #include <stddef.h>
35 #include "misc.h"
36 #include "var.h"
37 #include "xy.h"
38 #include "loan.h"
39 #include "nsc.h"
40 #include "nuke.h"
41 #include "plane.h"
42 #include "ship.h"
43 #include "land.h"
44 #include "sect.h"
45 #include "trade.h"
46 #include "treaty.h"
47 #include "file.h"
48 #include "power.h"
49 #include "news.h"
50 #include "nat.h"
51 #include "lost.h"
52 #include "optlist.h"
53
54 #include "gamesdef.h"
55 #include "commodity.h"
56
57 struct empfile empfile[] = {
58     {"sect", EMPDIR "/data/sector", EFF_COM | EFF_XY | EFF_OWNER,
59      0, sizeof(struct sctstr), 0, 0, 0, offsetof(struct sctstr, sct_item),
60      -1, -1, 0, 0, 0, 0, 0},
61     {"ship", EMPDIR "/data/ship", EFF_COM | EFF_XY | EFF_OWNER | EFF_GROUP,
62      0, sizeof(struct shpstr), 0, 0, 0, offsetof(struct shpstr, shp_item),
63      -1, -1, 0, 0, 0, 0, 0},
64     {"plane", EMPDIR "/data/plane", EFF_XY | EFF_OWNER | EFF_GROUP,
65      0, sizeof(struct plnstr), 0, 0, 0, 0,
66      -1, -1, 0, 0, 0, 0, 0},
67     {"land", EMPDIR "/data/land", EFF_COM | EFF_XY | EFF_OWNER | EFF_GROUP,
68      0, sizeof(struct lndstr), 0, 0, 0, offsetof(struct lndstr, lnd_item),
69      -1, -1, 0, 0, 0, 0, 0},
70     {"nuke", EMPDIR "/data/nuke", EFF_XY | EFF_OWNER,
71      0, sizeof(struct nukstr), 0, 0, 0, 0,
72      -1, -1, 0, 0, 0, 0, 0},
73     {"news", EMPDIR "/data/news", 0,
74      0, sizeof(struct nwsstr), 0, 0, 0, 0,
75      -1, -1, 0, 0, 0, 0, 0},
76     {"treaty", EMPDIR "/data/treaty", 0,
77      0, sizeof(struct trtstr), 0, 0, 0, 0,
78      -1, -1, 0, 0, 0, 0, 0},
79     {"trade", EMPDIR "/data/trade", 0,
80      0, sizeof(struct trdstr), 0, 0, 0, 0,
81      -1, -1, 0, 0, 0, 0, 0},
82     {"pow", EMPDIR "/data/power", 0,
83      0, sizeof(struct powstr), 0, 0, 0, 0,
84      -1, -1, 0, 0, 0, 0, 0},
85     {"nat", EMPDIR "/data/nation", 0,
86      0, sizeof(struct natstr), 0, 0, 0, 0,
87      -1, -1, 0, 0, 0, 0, 0},
88     {"loan", EMPDIR "/data/loan", 0,
89      0, sizeof(struct lonstr), 0, 0, 0, 0,
90      -1, -1, 0, 0, 0, 0, 0},
91     {"map", EMPDIR "/data/map", 0,
92      0, DEF_WORLD_X * DEF_WORLD_Y / 2, 0, 0, 0, 0,
93      -1, -1, 0, 0, 0, 0, 0},
94     {"bmap", EMPDIR "/data/bmap", 0,
95      0, DEF_WORLD_X * DEF_WORLD_Y / 2, 0, 0, 0, 0,
96      -1, -1, 0, 0, 0, 0, 0},
97     {"commodity", EMPDIR "/data/commodity", 0,
98      0, sizeof(struct comstr), 0, 0, 0, 0,
99      -1, -1, 0, 0, 0, 0, 0},
100     {"lost", EMPDIR "/data/lostitems", 0, 0,
101      sizeof(struct loststr), 0, 0, 0, 0,
102      -1, -1, 0, 0, 0, 0, 0}
103 };