/* vi: set ts=2: +-------------------+ Christian Schlittchen | | Enno Rehling | Eressea PBEM host | Katja Zedel | (c) 1998 - 2003 | Henning Peters | | Ingo Wilken +-------------------+ Stefan Reich This program may not be used, modified or distributed without prior permission by the authors of Eressea. */ #ifndef UGROUP_H #define UGROUP_H #ifdef __cplusplus extern "C" { #endif /* Globale Liste ugroups. Bei jeder unit u->ugroup zeigt auf aktuelle Gruppe. Gruppen mit members <= 1 werden vor den Reports aufgelöst. */ typedef struct ugroup { struct ugroup *next; int id; int members; struct unit **unit_array; } ugroup; boolean is_ugroupleader(const struct unit *u, const struct ugroup *ug); ugroup *findugroupid(const struct faction *f, int id); ugroup *findugroup(const struct unit *u); void ugroups(void); #ifdef __cplusplus } #endif #endif