2010-08-08 10:06:34 +02:00
|
|
|
#ifndef _REGIONLIST_H
|
|
|
|
#define _REGIONLIST_H
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2015-01-30 20:37:14 +01:00
|
|
|
struct newfaction;
|
2011-03-07 08:02:35 +01:00
|
|
|
|
2015-01-30 20:37:14 +01:00
|
|
|
typedef struct newfaction {
|
|
|
|
struct newfaction *next;
|
|
|
|
char *email;
|
|
|
|
char *password;
|
|
|
|
const struct locale *lang;
|
|
|
|
const struct race *race;
|
|
|
|
bool oldregions;
|
|
|
|
struct alliance *allies;
|
|
|
|
} newfaction;
|
2010-08-08 10:06:34 +02:00
|
|
|
|
|
|
|
#define ISLANDSIZE 20
|
|
|
|
#define TURNS_PER_ISLAND 5
|
|
|
|
|
2015-01-30 20:37:14 +01:00
|
|
|
extern int autoseed(newfaction ** players, int nsize, int max_agediff);
|
|
|
|
extern newfaction *read_newfactions(const char *filename);
|
2010-08-08 10:06:34 +02:00
|
|
|
|
2019-04-05 17:14:28 +02:00
|
|
|
extern int build_island(int x, int y, int minsize, newfaction **players, int numfactions);
|
2010-08-08 10:06:34 +02:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#endif
|