]> git.pond.sub.org Git - empserver/blobdiff - include/nsc.h
Update copyright notice.
[empserver] / include / nsc.h
index 090f9fd32cd20ca1360306cdf74ef40fe97b90ff..c666f27f7917b71c2338cb65ac5249ac4941828a 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-2007, Dave Pare, Jeff Bailey, Thomas Ruschak,
  *                           Ken Stevens, Steve McClure
  *
  *  This program is free software; you can redistribute it and/or modify
@@ -19,9 +19,9 @@
  *
  *  ---
  *
- *  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.
  *
  *  ---
  *
  *     Markus Armbruster, 2004
  */
 
-#ifndef _NSC_H_
-#define _NSC_H_
+#ifndef NSC_H
+#define NSC_H
 
 #include <stddef.h>
+#include "misc.h"
 #include "xy.h"
 
 #define NS_LSIZE       128
@@ -48,7 +49,6 @@ typedef enum {
     NSC_LONG,                  /* long */
     NSC_DOUBLE,                        /* double */
     NSC_STRING,                        /* char *, zero-terminated string */
-    NSC_TYPEID,                        /* signed char, index into chr table */
     /* unpromoted types */
     NSC_CHAR,                  /* signed char */
     NSC_UCHAR,                 /* unsigned char */
@@ -57,6 +57,8 @@ typedef enum {
     NSC_INT,                   /* int */
     NSC_XCOORD,                        /* coord that needs x conversion */
     NSC_YCOORD,                        /* coord that needs y conversion */
+    NSC_HIDDEN,                        /* unsigned char in struct natstr that
+                                  may need hiding */
     NSC_TIME,                  /* time_t */
     NSC_FLOAT,                 /* float */
     NSC_STRINGY,               /* char[], zero-terminated string */
@@ -114,7 +116,7 @@ struct valstr {
            char *base;
            size_t maxsz;
        } str;
-       long lng;               /* cat NSC_VAL, type NSC_LONG, NSC_TYPEID */
+       long lng;               /* cat NSC_VAL, type NSC_LONG */
     } val_as;
 };
 
@@ -212,6 +214,8 @@ extern struct castr lost_ca[];
 extern struct castr commodity_ca[];
 extern struct castr trade_ca[];
 extern struct castr nat_ca[];
+extern struct castr cou_ca[];
+extern struct castr realm_ca[];
 extern struct castr intrchr_ca[];
 extern struct castr rpt_ca[];
 extern struct castr empfile_ca[];
@@ -227,8 +231,16 @@ extern struct symbol meta_flags[];
 extern struct symbol missions[];
 extern struct symbol plane_flags[];
 extern struct symbol retreat_flags[];
+extern struct symbol nation_status[];
 extern struct symbol nation_flags[];
+extern struct symbol nation_rejects[];
 extern struct symbol nation_relations[];
+extern struct symbol level[];
+extern struct symbol agreement_statuses[];
+extern struct symbol plague_stages[];
+extern struct symbol packing[];
+extern struct symbol resources[];
+extern struct symbol sector_navigation[];
 
 /* src/lib/subs/nstr.c */
 extern int nstr_comp(struct nscstr *np, int len, int type, char *str);
@@ -236,5 +248,6 @@ extern char *nstr_comp_val(char *, struct valstr*, int);
 extern int nstr_coerce_val(struct valstr *, nsc_type, char *);
 extern int nstr_exec(struct nscstr *, int, void *);
 extern void nstr_exec_val(struct valstr *, natid, void *, nsc_type);
+extern char *symbol_by_value(int, struct symbol *);
 
-#endif /* _NSC_H_ */
+#endif