forked from andbof/yastg
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathciv.h
More file actions
29 lines (23 loc) · 618 Bytes
/
civ.h
File metadata and controls
29 lines (23 loc) · 618 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
#ifndef _HAS_CIV_H
#define _HAS_CIV_H
#include "parseconfig.h"
#include "list.h"
#include "ptrlist.h"
struct universe;
struct civ {
char* name;
struct system* home;
int power;
struct ptrlist presystems;
struct ptrlist availnames;
struct ptrlist systems;
struct ptrlist border_systems;
struct list_head list;
struct list_head growing;
};
void loadciv(struct civ *c, const struct list_head * const config_root);
void civ_init(struct civ *c);
int load_civs_from_file(const char * const file, struct universe * const universe);
void civ_spawncivs(struct universe *u);
void civ_free(struct civ *civ);
#endif