forked from github/server
65786fc059
- ALLIANCES define entfernt. Noch immer nicht gleicher Code für eressea wie wdw, wegen der Amulette
51 lines
1.2 KiB
C
51 lines
1.2 KiB
C
/* vi: set ts=2:
|
|
*
|
|
*
|
|
* Eressea PB(E)M host Copyright (C) 1998-2003
|
|
* 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 H_KRNL_ALLIANCE
|
|
#define H_KRNL_ALLIANCE
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
struct plane;
|
|
struct attrib;
|
|
struct unit;
|
|
struct faction;
|
|
struct region;
|
|
struct faction_list;
|
|
|
|
typedef struct alliance {
|
|
struct alliance * next;
|
|
struct faction_list * members;
|
|
unsigned int flags;
|
|
int id;
|
|
char * name;
|
|
} alliance;
|
|
|
|
extern alliance * alliances;
|
|
extern alliance * findalliance(int id);
|
|
extern alliance * makealliance(int id, const char * name);
|
|
extern const char * alliancename(const struct alliance * al);
|
|
extern void setalliance(struct faction * f, alliance * al);
|
|
|
|
extern void alliancejoin(void);
|
|
extern void alliancekick(void);
|
|
extern void alliancevictory(void);
|
|
|
|
extern int victorycondition(const alliance * al, const char * name);
|
|
/* execute commands */
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
#endif
|