00001 /* Definitions for players in Xconq. 00002 Copyright (C) 1992, 1993, 1994, 1996, 1999 Stanley T. Shebs. 00003 00004 Xconq is free software; you can redistribute it and/or modify 00005 it under the terms of the GNU General Public License as published by 00006 the Free Software Foundation; either version 2, or (at your option) 00007 any later version. See the file COPYING. */ 00008 00017 typedef struct a_player { 00018 short id; 00019 char *name; 00020 char *configname; 00021 char *displayname; 00022 char *aitypename; 00023 short advantage; 00024 char *remotewanted; 00025 char *password; 00026 int rid; 00027 struct a_side *side; 00028 struct a_player *next; 00029 } Player; 00030 00034 typedef struct { 00035 struct a_side *side; 00036 struct a_player *player; 00037 int locked; 00038 } Assign; 00039 00045 #define for_all_players(v) \ 00046 for (v = playerlist; v != NULL; v = v->next) 00047 00049 extern Player *playerlist; 00051 extern Player *last_player; 00052 00054 extern Assign *assignments; 00055 00056 extern Player *add_player(void); 00057 extern Player *find_player(int n); 00058 extern void canonicalize_player(Player *player); 00059 extern char *player_desig(Player *player);