/*
* Empire - A multi-player, client/server Internet based war game.
- * Copyright (C) 1986-2000, Dave Pare, Jeff Bailey, Thomas Ruschak,
+ * Copyright (C) 1986-2008, 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.
*
* ---
*
* Steve McClure, 1997
*/
-#ifndef _LOST_H_
-#define _LOST_H_
+#ifndef LOST_H
+#define LOST_H
+
+#include <time.h>
+#include "types.h"
+
struct loststr {
- short ef_type;
- natid lost_owner; /* Who lost it */
- int lost_uid; /* This lost # */
- char lost_type; /* Type of thing (ship, plane, nuke, land, sector) */
- short lost_id; /* ID of thing */
- coord lost_x;
- coord lost_y;
- time_t lost_timestamp; /* When it was lost */
+ /* initial part must match struct empobj */
+ short ef_type;
+ natid lost_owner; /* Who lost it */
+ /* end of part matching struct empobj */
+ int lost_uid; /* lost ID (assigned, otherwise unused) */
+ short lost_type; /* Type of thing (ship, plane, nuke, land, sector) */
+ short lost_id; /* ID of lost thing */
+ coord lost_x;
+ coord lost_y;
+ time_t lost_timestamp; /* When it was lost */
};
-#define getlost(n, p) ef_read(EF_LOST, n, (caddr_t)p)
-#define putlost(n, p) ef_write(EF_LOST, n, (caddr_t)p)
+#define getlost(n, p) ef_read(EF_LOST, (n), (p))
+#define putlost(n, p) ef_write(EF_LOST, (n), (p))
/* src/lib/subs/lostsub.c */
-extern int findlost(char , natid , short , coord , coord , int );
-extern void makelost(char , natid , short , coord , coord );
-extern void makenotlost(char , natid , short , coord , coord );
-#endif /* _LOST_H_ */
+extern void makelost(short, natid, short, coord, coord);
+extern void makenotlost(short, natid, short, coord, coord);
+#endif