Import of Empire 4.2.12
This commit is contained in:
commit
d8b7fdfae1
817 changed files with 126589 additions and 0 deletions
79
include/nuke.h
Normal file
79
include/nuke.h
Normal file
|
@ -0,0 +1,79 @@
|
|||
/*
|
||||
* Empire - A multi-player, client/server Internet based war game.
|
||||
* Copyright (C) 1986-2000, Dave Pare, Jeff Bailey, Thomas Ruschak,
|
||||
* Ken Stevens, Steve McClure
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
*
|
||||
* ---
|
||||
*
|
||||
* See the "LEGAL", "LICENSE", "CREDITS" and "README" files for all the
|
||||
* related information and legal notices. It is expected that any future
|
||||
* projects/authors will amend these files as needed.
|
||||
*
|
||||
* ---
|
||||
*
|
||||
* nuke.h: Definitions for things having to do with nukes
|
||||
*
|
||||
* Known contributors to this file:
|
||||
* Dave Pare, 1986
|
||||
*/
|
||||
|
||||
#ifndef _NUKE_H_
|
||||
#define _NUKE_H_
|
||||
|
||||
#define N_MAXNUKE 15
|
||||
|
||||
struct nukstr {
|
||||
short ef_type;
|
||||
natid nuk_own;
|
||||
short nuk_uid;
|
||||
coord nuk_x; /* current loc of device */
|
||||
coord nuk_y;
|
||||
s_char nuk_n; /* number of nukes in list */
|
||||
short nuk_ship; /* currently aboard ship */
|
||||
short nuk_trade; /* index into trade file */
|
||||
short nuk_types[N_MAXNUKE]; /* # of nukes in sector of given type */
|
||||
time_t nuk_timestamp; /* Last time this nuke was touched */
|
||||
};
|
||||
|
||||
struct nchrstr {
|
||||
s_char *n_name; /* warhead unit name */
|
||||
int n_lcm; /* costs to build */
|
||||
int n_hcm;
|
||||
int n_oil;
|
||||
int n_rad;
|
||||
int n_blast; /* blast radius */
|
||||
int n_dam; /* damage at center */
|
||||
int n_cost;
|
||||
int n_tech; /* tech needed to build */
|
||||
int n_weight;
|
||||
int n_flags; /* description of capability */
|
||||
};
|
||||
|
||||
#define N_NEUT bit(0) /* Neutron bomb (low damage, high fallout) */
|
||||
|
||||
#define getnuke(n, p) \
|
||||
ef_read(EF_NUKE, n, (caddr_t)p)
|
||||
#define putnuke(n, p) \
|
||||
ef_write(EF_NUKE, n, (caddr_t)p)
|
||||
#define getnukep(n) \
|
||||
(struct nukstr *) ef_ptr(EF_NUKE, n)
|
||||
|
||||
extern struct nchrstr nchr[];
|
||||
|
||||
extern int nuk_maxno;
|
||||
|
||||
#endif /* _NUKE_H_ */
|
Loading…
Add table
Add a link
Reference in a new issue