2015-01-30 20:37:14 +01:00
|
|
|
/*
|
2010-08-08 10:06:34 +02:00
|
|
|
+-------------------+ Christian Schlittchen <corwin@amber.kn-bremen.de>
|
|
|
|
| | Enno Rehling <enno@eressea.de>
|
|
|
|
| Eressea PBEM host | Katja Zedel <katze@felidae.kn-bremen.de>
|
|
|
|
| (c) 1998 - 2003 | Henning Peters <faroul@beyond.kn-bremen.de>
|
|
|
|
| | Ingo Wilken <Ingo.Wilken@informatik.uni-oldenburg.de>
|
|
|
|
+-------------------+ Stefan Reich <reich@halbling.de>
|
|
|
|
|
2015-01-30 20:37:14 +01:00
|
|
|
This program may not be used, modified or distributed
|
2010-08-08 10:06:34 +02:00
|
|
|
without prior permission by the authors of Eressea.
|
2015-01-30 20:37:14 +01:00
|
|
|
*/
|
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;
|
|
|
|
int bonus;
|
|
|
|
int subscription;
|
|
|
|
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);
|
|
|
|
extern int fix_demand(struct region *r);
|
|
|
|
extern const struct terrain_type *random_terrain(const struct terrain_type
|
|
|
|
*terrains[], int distribution[], int size);
|
2010-08-08 10:06:34 +02:00
|
|
|
|
2015-01-30 20:37:14 +01:00
|
|
|
extern int seed_adamantium(struct region *r, int base);
|
2015-06-02 15:29:21 +02:00
|
|
|
extern int build_island_e3(newfaction **players, int x, int y, int numfactions, int minsize);
|
2010-08-08 10:06:34 +02:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#endif
|