]> git.pond.sub.org Git - empserver/blobdiff - include/product.h
Update copyright notice
[empserver] / include / product.h
index 5330265731cf930a7000b7663124e7caab730ae3..10cc6e3b5a30a2d168ffa2e6ae0b2cf5bcf584a5 100644 (file)
@@ -1,6 +1,6 @@
 /*
  *  Empire - A multi-player, client/server Internet based war game.
- *  Copyright (C) 1986-2005, Dave Pare, Jeff Bailey, Thomas Ruschak,
+ *  Copyright (C) 1986-2010, Dave Pare, Jeff Bailey, Thomas Ruschak,
  *                           Ken Stevens, Steve McClure
  *
  *  This program is free software; you can redistribute it and/or modify
  *
  *  ---
  *
- *  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.
+ *  See files README, COPYING and CREDITS in the root of the source
+ *  tree for related information and legal notices.  It is expected
+ *  that future projects/authors will amend these files as needed.
  *
  *  ---
  *
  *  product.h: Definitions for things having to do with products
- * 
+ *
  *  Known contributors to this file:
- * 
+ *
  */
 
-#ifndef _PRODUCT_H_
-#define _PRODUCT_H_
+#ifndef PRODUCT_H
+#define PRODUCT_H
 
 #include "item.h"
 
@@ -43,8 +43,9 @@
 enum { MAXPRCON = 3 };
 
 struct pchrstr {
+    int p_uid;
     i_type p_ctype[MAXPRCON];  /* constituent types */
-    u_short p_camt[MAXPRCON];  /* constituent amounts */
+    unsigned short p_camt[MAXPRCON]; /* constituent amounts */
     i_type p_type;             /* product item type, or I_NONE if level */
     int p_level;               /* level index (NAT_?LEV), or -1 if item */
     int p_cost;                        /* dollars / product unit */
@@ -53,30 +54,12 @@ struct pchrstr {
     int p_nlndx;               /* index (NAT_?LEV) affecting production */
     int p_nlmin;               /* minimum lvl required */
     int p_nllag;               /* lag, mul by (lvl-nlmin)/(lvl-nlmin+nllag) */
-    int p_effic;               /* process efficiency, mult by p_effic/100 */
     char *p_name;              /* name of product */
     char *p_sname;             /* short (7 char or less) name of product */
 };
 
-#define        P_SHELL 1
-#define        P_GUN   2
-#define        P_PETROL        3
-#define        P_IRON  4
-#define        P_DUST  5
-#define        P_BAR   6
-#define        P_FOOD  7
-#define        P_OIL   8
-#define        P_LCM   9
-#define        P_HCM   10
-#define        P_TLEV  11
-#define        P_RLEV  12
-#define        P_ELEV  13
-#define        P_HLEV  14
-#define P_URAN 15
-#define P_MDUST        16
-
-extern struct pchrstr pchr[];
+#define P_MAX 22
 
-extern int prd_maxno;
+extern struct pchrstr pchr[P_MAX + 2];
 
-#endif /* _PRODUCT_H_ */
+#endif