forked from github/server
8823db9702
- Bugfix to P_BERSERK
39 lines
1.1 KiB
C
39 lines
1.1 KiB
C
/* vi: set ts=2:
|
|
+-------------------+ Christian Schlittchen <corwin@amber.kn-bremen.de>
|
|
| | Enno Rehling <enno@eressea-pbem.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>
|
|
|
|
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
|