2001-01-25 10:37:55 +01:00
|
|
|
|
/* vi: set ts=2:
|
|
|
|
|
*
|
|
|
|
|
* Eressea PB(E)M host Copyright (C) 1998-2000
|
|
|
|
|
* Christian Schlittchen (corwin@amber.kn-bremen.de)
|
|
|
|
|
* Katja Zedel (katze@felidae.kn-bremen.de)
|
|
|
|
|
* Henning Peters (faroul@beyond.kn-bremen.de)
|
|
|
|
|
* Enno Rehling (enno@eressea-pbem.de)
|
|
|
|
|
* Ingo Wilken (Ingo.Wilken@informatik.uni-oldenburg.de)
|
|
|
|
|
*
|
|
|
|
|
* This program may not be used, modified or distributed without
|
|
|
|
|
* prior permission by the authors of Eressea.
|
|
|
|
|
*/
|
|
|
|
|
#ifndef FACTION_H
|
|
|
|
|
#define FACTION_H
|
|
|
|
|
|
|
|
|
|
typedef struct faction {
|
|
|
|
|
struct faction *next;
|
|
|
|
|
struct faction *nexthash;
|
|
|
|
|
struct region *first;
|
|
|
|
|
struct region *last;
|
|
|
|
|
int no;
|
|
|
|
|
int unique_id;
|
|
|
|
|
unsigned int flags;
|
|
|
|
|
char *name;
|
|
|
|
|
char *banner;
|
|
|
|
|
char *email;
|
|
|
|
|
char *passw;
|
|
|
|
|
struct locale * locale;
|
|
|
|
|
int lastorders; /* enno: short? */
|
|
|
|
|
int age; /* enno: short? */
|
|
|
|
|
ursprung *ursprung;
|
|
|
|
|
race_t race;
|
|
|
|
|
magic_t magiegebiet;
|
|
|
|
|
int newbies;
|
|
|
|
|
int num_migrants; /* Anzahl Migranten */
|
|
|
|
|
int num_people; /* Anzahl Personen */
|
|
|
|
|
int options;
|
|
|
|
|
int no_units;
|
|
|
|
|
int karma;
|
|
|
|
|
struct warning * warnings;
|
|
|
|
|
struct msglevel * msglevels;
|
|
|
|
|
struct ally *allies;
|
|
|
|
|
#ifdef GROUPS
|
|
|
|
|
struct group *groups;
|
|
|
|
|
#endif
|
|
|
|
|
struct strlist *mistakes; /* enno: das mu<6D> irgendwann noch ganz raus */
|
|
|
|
|
boolean alive; /* enno: sollte ein flag werden */
|
|
|
|
|
int nregions;
|
|
|
|
|
int nunits; /* enno: unterschied zu no_units ? */
|
|
|
|
|
int number; /* enno: unterschied zu num_people ? */
|
|
|
|
|
int money;
|
|
|
|
|
int score;
|
|
|
|
|
short index; /* F<>r die Reportgenerierung - enno: wirklich n<>tig? */
|
|
|
|
|
#ifndef FAST_REGION
|
|
|
|
|
vset regions;
|
|
|
|
|
#endif
|
|
|
|
|
struct unit * units;
|
|
|
|
|
struct attrib *attribs;
|
2001-02-24 13:50:51 +01:00
|
|
|
|
struct message_list * msgs;
|
2001-01-25 10:37:55 +01:00
|
|
|
|
struct bmsg {
|
|
|
|
|
struct bmsg * next;
|
|
|
|
|
struct region * r;
|
2001-02-24 13:50:51 +01:00
|
|
|
|
struct message_list * msgs;
|
2001-01-25 10:37:55 +01:00
|
|
|
|
} * battles;
|
|
|
|
|
} faction;
|
|
|
|
|
|
|
|
|
|
extern char * factionname(const struct faction * f);
|
|
|
|
|
extern void * resolve_faction(void * data);
|
|
|
|
|
|
|
|
|
|
#endif
|