forked from andbof/yastg
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsystem.h
More file actions
33 lines (28 loc) · 662 Bytes
/
system.h
File metadata and controls
33 lines (28 loc) · 662 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#ifndef _HAS_SYSTEM_H
#define _HAS_SYSTEM_H
#include "civ.h"
#include "list.h"
#include "rbtree.h"
#include "ptrlist.h"
#include "universe.h"
struct system {
char *name;
struct civ *owner;
char *gname;
long x, y;
struct rb_node x_rbtree;
unsigned long r;
double phi;
int hab;
unsigned int hablow, habhigh;
struct ptrlist stars;
struct ptrlist planets;
struct ptrlist ports;
struct ptrlist links;
struct list_head list;
};
void system_init(struct system *s);
int system_create(struct system *s, char *name);
void system_free(struct system *s);
unsigned long system_distance(const struct system * const a, const struct system * const b);
#endif