(fltelemstr, fltheadstr): Move from ship.h to sail.c.
This commit is contained in:
parent
198b7760d8
commit
10dd9aea11
2 changed files with 21 additions and 21 deletions
|
@ -110,27 +110,6 @@ struct shpstr {
|
||||||
char shp_rpath[RET_LEN]; /* retreat path */
|
char shp_rpath[RET_LEN]; /* retreat path */
|
||||||
};
|
};
|
||||||
|
|
||||||
struct fltelemstr {
|
|
||||||
int num;
|
|
||||||
int own;
|
|
||||||
double mobil, mobcost;
|
|
||||||
struct fltelemstr *next;
|
|
||||||
};
|
|
||||||
|
|
||||||
struct fltheadstr {
|
|
||||||
int leader;
|
|
||||||
signed char real_q;
|
|
||||||
/* defines for the real_q member */
|
|
||||||
#define LEADER_VIRTUAL 0
|
|
||||||
#define LEADER_REAL 1
|
|
||||||
#define LEADER_WRONGSECT 2
|
|
||||||
coord x, y;
|
|
||||||
natid own;
|
|
||||||
unsigned maxmoves;
|
|
||||||
struct fltelemstr *head;
|
|
||||||
struct fltheadstr *next;
|
|
||||||
};
|
|
||||||
|
|
||||||
struct mchrstr {
|
struct mchrstr {
|
||||||
short m_item[I_MAX+1]; /* load limit */
|
short m_item[I_MAX+1]; /* load limit */
|
||||||
int m_lcm; /* units of lcm to build */
|
int m_lcm; /* units of lcm to build */
|
||||||
|
|
|
@ -43,6 +43,27 @@
|
||||||
#include "empobj.h"
|
#include "empobj.h"
|
||||||
#include "unit.h"
|
#include "unit.h"
|
||||||
|
|
||||||
|
struct fltelemstr {
|
||||||
|
int num;
|
||||||
|
int own;
|
||||||
|
double mobil, mobcost;
|
||||||
|
struct fltelemstr *next;
|
||||||
|
};
|
||||||
|
|
||||||
|
struct fltheadstr {
|
||||||
|
int leader;
|
||||||
|
signed char real_q;
|
||||||
|
/* defines for the real_q member */
|
||||||
|
#define LEADER_VIRTUAL 0
|
||||||
|
#define LEADER_REAL 1
|
||||||
|
#define LEADER_WRONGSECT 2
|
||||||
|
coord x, y;
|
||||||
|
natid own;
|
||||||
|
unsigned maxmoves;
|
||||||
|
struct fltelemstr *head;
|
||||||
|
struct fltheadstr *next;
|
||||||
|
};
|
||||||
|
|
||||||
static void fltp_to_list(struct fltheadstr *, struct emp_qelem *);
|
static void fltp_to_list(struct fltheadstr *, struct emp_qelem *);
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue