]> git.pond.sub.org Git - empserver/blobdiff - include/empobj.h
Fix generation numbers for autonav
[empserver] / include / empobj.h
index 514154a959fbcaf2636aff1812be15aacb34fb3c..3906c13a639d280f3cb3185b737057b7aa065a77 100644 (file)
@@ -1,6 +1,6 @@
 /*
  *  Empire - A multi-player, client/server Internet based war game.
- *  Copyright (C) 1986-2008, Dave Pare, Jeff Bailey, Thomas Ruschak,
+ *  Copyright (C) 1986-2009, Dave Pare, Jeff Bailey, Thomas Ruschak,
  *                           Ken Stevens, Steve McClure
  *
  *  This program is free software; you can redistribute it and/or modify
  *  ---
  *
  *  empobj.h: General empire objects.
- * 
+ *
  *  Known contributors to this file:
  *     Ron Koenderink, 2006
- *     Markus Armbruster, 2006
+ *     Markus Armbruster, 2006-2008
  */
 
 #ifndef EMPOBJ_H
@@ -57,6 +57,9 @@ struct empobj {
      */
     short ef_type;
     short uid;
+    unsigned seqno;
+    unsigned generation;
+    time_t timestamp;
     /* end of part matching struct emptypedstr */
     natid own;         /* valid if EFF_OWNER is in table's flags */
     coord x;           /* valid if EFF_XY    is in table's flags */
@@ -66,7 +69,7 @@ struct empobj {
     signed char effic;
     signed char mobil;
     unsigned char off;
-    short tech;        
+    short tech;
     char group;                /* valid if EFF_GROUP is in table's flags */
     coord opx, opy;
     short mission;
@@ -81,7 +84,7 @@ union empobj_storage {
     struct lndstr land;
     struct lonstr loan;
     struct loststr lost;
-    struct natstr nat; 
+    struct natstr nat;
     struct nwsstr news;
     struct nukstr nuke;
     struct plnstr plane;
@@ -100,7 +103,7 @@ struct empobj_chr;
 
 extern char *obj_nameof(struct empobj *gp);
 extern struct empobj_chr *get_empobj_chr(struct empobj *gp);
-extern char *emp_obj_chr_name(struct empobj *gp);
+extern char *empobj_chr_name(struct empobj *gp);
 extern int get_empobj_mob_max(int type);
 
 #endif